Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"description": "base project for other configurations.",
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/install/${presetName}",
"generator": "Ninja",
"cacheVariables": {
}
},
{
"name": "win-x64-debug",
"displayName": "Win x64 Debug",
"description": "Sets windows platform and debug build type for x64 arch",
"inherits": "base",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "win-x64-release",
"displayName": "Win x64 Release",
"description": "Sets windows platform and debug build type for x64 arch",
"inherits": "win-x64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "base-android",
"hidden": true,
"inherits": "base",
"environment": {
"ANDROID_NDK_HOME": "$env{NDK}"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake",
"ANDROID_NDK": "$env{ANDROID_NDK_HOME}",
"ANDROID_STL": "c++_shared",
"ANDROID_NATIVE_API_LEVEL": "24",
"ANDROID_ABI": "arm64-v8a",
"CMAKE_ANDROID_ARCH_ABI": "arm64-v8a",
"ANDROID_PLATFORM": "android-24",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_SYSTEM_NAME": "Android"
}
},
{
"name": "android-arm64-debug",
"inherits": "base-android",
"displayName": "Android ARM64 v8a Debug",
"description": "Sets android platform and debug build type for arm64-v8a arch",
"architecture": {
"value": "arm64-v8a",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "android-arm64-release",
"displayName": "Android ARM64 v8a Release",
"description": "Sets android platform and release build type for arm64-v8a arch",
"inherits": "android-arm64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "android-arm-debug",
"inherits": "base-android",
"displayName": "Android ARM eabi v7a Debug",
"description": "Sets android platform and debug build type for armeabi-v7a arch",
"architecture": {
"value": "armeabi-v7a",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"QT_QML_DEBUG": "",
"CMAKE_FIND_ROOT_PATH": "$env{QT_DIR}/android_armv7",
"ANDROID_ABI": "armeabi-v7a",
"VCPKG_TARGET_TRIPLET": "arm-android"
}
},
{
"name": "android-arm-release",
"displayName": "Android ARM eabi v7a Release",
"description": "Sets android platform and release build type for armeabi-v7a arch",
"inherits": "android-arm-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
],
"buildPresets": [
{
"name": "default-build-windows",
"displayName": "Default Windows",
"description": "Vanilla Build Windows",
"configurePreset": "win-x64-debug"
},
{
"name": "android-arm64-debug",
"displayName": "Android ARM64 v8a Debug",
"description": "Vanilla Build Android",
"configurePreset": "android-arm64-debug"
},
{
"name": "android-arm64-release",
"displayName": "Android ARM64 v8a Release",
"description": "Vanilla Build Android",
"configurePreset": "android-arm64-release"
},
{
"name": "android-arm-release",
"displayName": "Android ARM eabi v7a Release",
"description": "Vanilla Build Android",
"configurePreset": "android-arm-release"
},
{
"name": "android-arm-debug",
"displayName": "Android ARM eabi v7a Debug",
"description": "Vanilla Build Android",
"configurePreset": "android-arm-debug"
}
],
"testPresets": [
{
"name": "base-tests",
"hidden": true,
"output": {
"outputOnFailure": true
}
},
{
"name": "windows-tests",
"inherits": "base-tests",
"configurePreset": "win-x64-debug"
}
]
}
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ The Wolf is a comprehensive set of C++ open source libraries for realtime render
- [Perl](https://www.perl.org/get.html) for boringSSL. [Strawberry Perl](https://strawberryperl.com/) is recommended for Windows.
- [Go](https://go.dev/dl/) for boringSSL
- [QT6](https://www.qt.io/download) for wolf render, demos and examples

## CMakePresets

To list configure presets: `cmake . --list-presets`
To list build presets: `cmake --build --list-presets`

### Android
In order to configure, build and test using CMakePresets you must have set the following environment variables:
- NDK (e.g. C:\Android\android-ndk-r25b)

In terminal/command line use presets:
```
cmake . --preset android-arm64-release
cmake --build --preset default-build-android
```

## Recent Sample
<p>Dynamic LOD Generation using <a href="https://www.simplygon.com/" target="_blank">Simplygon</a></p>
Expand Down
Loading