mapnik/CMakePresets.json

324 lines
8.8 KiB
JSON
Raw Permalink Normal View History

2021-07-22 22:45:39 +02:00
{
2022-11-21 22:56:50 +01:00
"version": 6,
2021-07-22 22:45:39 +02:00
"cmakeMinimumRequired": {
"major": 3,
2022-11-21 22:56:50 +01:00
"minor": 25,
2021-07-22 22:45:39 +02:00
"patch": 0
},
"configurePresets": [
{
2021-08-25 16:41:57 +02:00
"name": "use-ninja",
"hidden": true,
2022-01-19 12:16:14 +01:00
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
2021-08-25 16:41:57 +02:00
},
{
"name": "default-build-dir",
"hidden": true,
2022-11-28 08:31:25 +01:00
"binaryDir": "${sourceDir}/build"
2021-08-25 16:41:57 +02:00
},
{
"name": "debug-build",
2021-07-22 22:45:39 +02:00
"hidden": true,
2021-08-25 16:41:57 +02:00
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"USE_DEBUG_OUTPUT": "ON",
"USE_LOG": "ON",
"USE_LOG_SEVERITY": "0"
}
},
2022-01-19 12:16:14 +01:00
{
"name": "release-with-debug-build",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"USE_DEBUG_OUTPUT": "OFF",
"USE_LOG": "OFF"
}
},
2021-08-25 16:41:57 +02:00
{
"name": "release-build",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"USE_DEBUG_OUTPUT": "OFF",
"USE_LOG": "OFF"
}
},
{
"name": "use-clang",
"hidden": true,
"inherits": [
"default-build-dir",
"use-ninja"
],
2021-07-22 22:45:39 +02:00
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
2021-07-23 19:34:17 +02:00
"CMAKE_CXX_FLAGS": "-stdlib=libc++",
"CMAKE_EXE_LINKER_FLAGS": "-stdlib=libc++",
"CMAKE_SHARED_LINKER_FLAGS": "-stdlib=libc++"
2021-07-22 22:45:39 +02:00
}
},
{
2021-08-25 16:41:57 +02:00
"name": "use-gcc",
"hidden": true,
"inherits": [
"default-build-dir",
"use-ninja"
],
2021-07-22 22:45:39 +02:00
"cacheVariables": {
2021-08-25 16:41:57 +02:00
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
2021-07-22 22:45:39 +02:00
}
},
{
2021-08-25 16:41:57 +02:00
"name": "use-msvc-cl",
"hidden": true,
"inherits": [
"default-build-dir",
"use-ninja"
],
2021-07-22 22:45:39 +02:00
"cacheVariables": {
2021-08-25 16:41:57 +02:00
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
2021-07-22 22:45:39 +02:00
}
},
{
2021-08-25 16:41:57 +02:00
"name": "use-msvc-clang-cl",
2021-07-22 22:45:39 +02:00
"hidden": true,
2021-08-25 16:41:57 +02:00
"inherits": [
"default-build-dir",
"use-ninja"
],
2021-07-22 22:45:39 +02:00
"cacheVariables": {
2021-08-25 16:41:57 +02:00
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl"
2021-07-22 22:45:39 +02:00
}
},
2021-08-25 16:41:57 +02:00
{
"name": "linux-clang-debug",
"displayName": "Linux clang debug",
"inherits": [
"use-clang",
"debug-build"
]
},
{
"name": "linux-clang-release",
"displayName": "Linux clang release",
"inherits": [
"use-clang",
"release-build"
]
},
2021-07-22 22:45:39 +02:00
{
"name": "linux-gcc-debug",
"displayName": "Linux gcc debug",
2021-08-25 16:41:57 +02:00
"inherits": [
"use-gcc",
"debug-build"
]
2021-07-22 22:45:39 +02:00
},
{
"name": "linux-gcc-release",
"displayName": "Linux gcc release",
2021-08-25 16:41:57 +02:00
"inherits": [
"use-gcc",
"release-build"
]
2021-07-22 22:45:39 +02:00
},
{
2021-08-25 16:41:57 +02:00
"name": "windows-arch-x64",
"hidden": true,
2021-07-22 22:45:39 +02:00
"architecture": {
"value": "x64",
"strategy": "external"
},
"toolset": {
"value": "host=x64",
"strategy": "external"
2021-08-25 16:41:57 +02:00
}
},
{
"name": "windows-default",
"displayName": "Windows x64 Debug",
"hidden": true,
"inherits": [
"use-msvc-cl",
"windows-arch-x64"
],
2021-07-22 22:45:39 +02:00
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [
"Windows"
]
}
}
},
{
"name": "windows-debug",
"displayName": "Windows x64 Debug",
2021-08-25 16:41:57 +02:00
"inherits": [
"windows-default",
"debug-build"
]
},
2021-07-22 22:45:39 +02:00
{
"name": "windows-release",
2021-07-22 22:45:39 +02:00
"displayName": "Windows x64 Release",
2021-08-25 16:41:57 +02:00
"inherits": [
"windows-default",
"release-build"
]
},
{
"name": "ci-options",
"hidden": true,
"cacheVariables": {
"BUILD_TESTING": "ON",
"BUILD_DEMO_VIEWER": "OFF",
2022-11-28 08:31:25 +01:00
"DISABLE_MAPNIK_AUTOSETUP": "ON"
},
"toolchainFile": "vcpkg/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "windows-ci",
"description": "used by the ci pipeline",
"inherits": [
"windows-release",
"ci-options"
],
"cacheVariables": {
"INSTALL_DEPENDENCIES": "ON",
2022-11-28 08:31:25 +01:00
"ADDITIONAL_LIBARIES_PATHS": "${sourceDir}/build/vcpkg_installed/x64-windows/bin"
},
"environment": {
2022-11-28 08:31:25 +01:00
"PROJ_LIB": "${sourceDir}/build/vcpkg_installed/x64-windows/share/proj"
}
},
{
"name": "linux-ci",
"description": "used by the ci pipeline",
"inherits": [
"release-with-debug-build",
"use-gcc",
"ci-options"
],
"cacheVariables": {
2022-02-08 14:54:40 +01:00
"CMAKE_CXX_FLAGS": "--coverage"
},
"environment": {
2022-11-28 08:31:25 +01:00
"PROJ_LIB": "${sourceDir}/build/vcpkg_installed/x64-linux/share/proj"
}
},
2022-11-21 22:56:50 +01:00
{
"name": "linux-ci-release",
"description": "used by the ci pipeline for releasing",
"inherits": [
"release-build",
"linux-gcc-release"
],
"cacheVariables": {
"BUILD_TESTING": "OFF",
"BUILD_DEMO_VIEWER": "OFF",
"USE_MEMORY_MAPPED_FILE": "ON"
}
},
{
"name": "macos-ci",
"description": "used by the ci pipeline",
"inherits": [
"use-ninja",
"release-with-debug-build",
"default-build-dir",
"ci-options"
],
"cacheVariables": {
2022-02-08 14:54:40 +01:00
"CMAKE_CXX_FLAGS": "-fprofile-arcs -ftest-coverage"
},
"environment": {
2022-11-28 08:31:25 +01:00
"PROJ_LIB": "${sourceDir}/build/vcpkg_installed/x64-osx/share/proj"
}
2021-07-22 22:45:39 +02:00
}
],
"buildPresets": [
{
"name": "windows-debug",
"configurePreset": "windows-debug"
},
{
"name": "windows-release",
"configurePreset": "windows-release"
2021-07-23 16:41:28 +02:00
},
{
"name": "linux-clang-debug",
2021-07-23 16:41:28 +02:00
"configurePreset": "linux-clang-debug"
},
{
"name": "linux-clang-release",
"configurePreset": "linux-clang-release"
},
{
"name": "linux-gcc-debug",
"configurePreset": "linux-gcc-debug"
},
{
"name": "linux-gcc-release",
"configurePreset": "linux-gcc-release"
},
{
"name": "windows-ci",
"configurePreset": "windows-ci"
},
{
"name": "linux-ci",
"configurePreset": "linux-ci"
},
2022-11-21 22:56:50 +01:00
{
"name": "linux-ci-release",
"configurePreset": "linux-ci-release"
},
{
"name": "macos-ci",
"configurePreset": "macos-ci"
2021-07-22 22:45:39 +02:00
}
2022-01-19 12:16:14 +01:00
],
"testPresets": [
{
"name": "test-default",
"hidden": true,
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": false
}
},
{
"name": "windows-ci",
"configurePreset": "windows-ci",
"inherits": [
"test-default"
]
},
{
"name": "linux-ci",
"configurePreset": "linux-ci",
"inherits": [
"test-default"
]
},
{
"name": "macos-ci",
"configurePreset": "macos-ci",
"inherits": [
"test-default"
]
2022-01-19 12:16:14 +01:00
}
2021-07-22 22:45:39 +02:00
]
}