Skip to content

Commit

Permalink
build: add CMakePresets.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriankhl committed Jun 6, 2024
1 parent e41de6b commit 00fe860
Showing 1 changed file with 159 additions and 0 deletions.
159 changes: 159 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
{
"version": 3,
"configurePresets": [
{
"name": "windows-vulkan-debug",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_VULKAN": "ON",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "windows-vulkan-release",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_VULKAN": "ON",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "windows-cpu-debug",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_VULKAN": "OFF",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "windows-cpu-release",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_VULKAN": "OFF",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "linux-vulkan-debug",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_VULKAN": "ON",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "linux-vulkan-release",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_VULKAN": "ON",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "linux-cpu-debug",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_VULKAN": "OFF",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "linux-cpu-release",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_VULKAN": "OFF",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "android-cpu-debug",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_TOOLCHAIN_FILE": "$env{ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake",
"ANDROID_ABI": "arm64-v8a",
"ANDROID_PLATFORM": "android-23",
"CMAKE_C_FLAGS": "-mcpu=generic",
"CMAKE_CXX_FLAGS": "-mcpu=generic",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "android-cpu-release",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_TOOLCHAIN_FILE": "$env{ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake",
"ANDROID_ABI": "arm64-v8a",
"ANDROID_PLATFORM": "android-23",
"CMAKE_C_FLAGS": "-mcpu=generic",
"CMAKE_CXX_FLAGS": "-mcpu=generic",
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "macos-metal-debug",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_METAL": "ON",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "macos-metal-release",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_METAL": "ON",
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "macos-cpu-debug",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_METAL": "OFF",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "macos-cpu-release",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"LLAMA_NATIVE": "OFF",
"LLAMA_METAL": "OFF",
"CMAKE_BUILD_TYPE": "Release"
}
}
]
}

0 comments on commit 00fe860

Please sign in to comment.