328 lines
9.6 KiB
JSON
328 lines
9.6 KiB
JSON
{
|
|
"version": 4,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 23,
|
|
"patch": 0
|
|
},
|
|
|
|
"configurePresets": [
|
|
{
|
|
"name": "spark-base",
|
|
"hidden": true,
|
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
|
"cacheVariables": {
|
|
"CMAKE_CXX_STANDARD": "20",
|
|
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/${presetName}",
|
|
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
|
"CONFIG_DEFAULTS_PATH": "spark/config/profiles/default/*.conf",
|
|
"EXPORT_MD_CONSUMER": {
|
|
"type": "BOOL",
|
|
"value": "ON"
|
|
}
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "spark-windows",
|
|
"inherits": "spark-base",
|
|
"displayName": "Spark",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Windows"
|
|
},
|
|
"generator": "Visual Studio 17 2022",
|
|
"environment": {
|
|
"SPARK_CMAKE_CXX_FLAGS": "/MP /WX /wd4250 /wd4251 /wd4244 /wd4267 /wd4355 /wd4275 /wd4345 /bigobj /EHsc /DCURL_STATICLIB /D_WINSOCK_DEPRECATED_NO_WARNINGS /D__TBB_NO_IMPLICIT_LINKAGE /DBOOST_ALL_NO_LIB /std:c++20 /D_SCL_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_WARNINGS /D_WIN32_WINNT=0x0600"
|
|
},
|
|
"cacheVariables": {
|
|
"CMAKE_CXX_FLAGS": "$env{SPARK_CMAKE_CXX_FLAGS}",
|
|
"CMAKE_CXX_FLAGS_DEBUG": "$env{SPARK_CMAKE_CXX_FLAGS} /MTd",
|
|
"CMAKE_CXX_FLAGS_RELEASE": "$env{SPARK_CMAKE_CXX_FLAGS} /MT",
|
|
"CMAKE_SHARED_LINKER_FLAGS_DEBUG": "/DEBUG",
|
|
"CMAKE_SHARED_LINKER_FLAGS_RELEASE": "/OPT:REF /OPT:ICF /LTCG",
|
|
"EXTERNALS_ROOT": "${sourceDir}/externals/windows"
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "sparkd",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Linux"
|
|
},
|
|
"hidden": true,
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
|
"cacheVariables": {
|
|
"platform": "",
|
|
"CMAKE_BUILD_WITH_INSTALL_RPATH": {
|
|
"type": "BOOL",
|
|
"value": "OFF"
|
|
},
|
|
"CMAKE_CXX_STANDARD": "20",
|
|
"CMAKE_INSTALL_RPATH": ".",
|
|
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/${presetName}",
|
|
"CMAKE_PREFIX_PATH": "${sourceDir}/cmake/;${sourceDir}/.venv/lib/python3.10/site-packages/pybind11/share/cmake/pybind11",
|
|
"CMAKE_EXE_LINKER_FLAGS": "-Wno-undef",
|
|
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
|
"DATABENTO_USE_EXTERNAL_JSON": {
|
|
"type": "BOOL",
|
|
"value": "ON"
|
|
},
|
|
"EXTERNALS_ROOT": "${sourceDir}/externals/linux",
|
|
"BUILD_SDK": {
|
|
"type": "BOOL",
|
|
"value": "OFF"
|
|
},
|
|
"BUILD_ADMIN_WEB_APP": {
|
|
"type": "BOOL",
|
|
"value": "ON"
|
|
}
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-debug",
|
|
"inherits": "sparkd",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Debug",
|
|
"CMAKE_EXPORT_COMPILE_COMMANDS": {
|
|
"type": "BOOL",
|
|
"value": "ON"
|
|
},
|
|
"CCAPI_LOG_LEVEL": "Info",
|
|
"CONFIG_DEFAULTS_PATH": "spark/config/profiles/md_dev/*.conf;spark/config/profiles/default/*.conf"
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-release",
|
|
"inherits": "sparkd",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Release",
|
|
"CCAPI_LOG_LEVEL": "Warn",
|
|
"CONFIG_DEFAULTS_PATH": "spark/config/profiles/md_prod/*.conf;spark/config/profiles/default/*.conf"
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-debug-clang",
|
|
"inherits": "sparkd-debug",
|
|
"displayName": "Sparkd (Debug | Clang)",
|
|
"description": "Debug build compiled w/ clang",
|
|
"cacheVariables": {
|
|
"CMAKE_C_COMPILER": "clang",
|
|
"CMAKE_CXX_COMPILER": "clang++",
|
|
"CMAKE_CXX_FLAGS_DEBUG": "-g -fPIC -Wall -pedantic -Wextra -Werror -Wno-missing-braces -Wno-ignored-qualifiers --std=c++20 -fdiagnostics-color -DDEBUG"
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-debug-gcc",
|
|
"inherits": "sparkd-debug",
|
|
"displayName": "Sparkd (Debug | Gcc)",
|
|
"description": "Debug build compiled w/ gcc",
|
|
"cacheVariables": {
|
|
"CMAKE_C_COMPILER": "gcc",
|
|
"CMAKE_CXX_COMPILER": "g++",
|
|
"CMAKE_CXX_FLAGS_DEBUG": "-g -fPIC -Wall -pedantic -Wextra -Werror -Wno-missing-braces -Wno-ignored-qualifiers --std=c++20 -fdiagnostics-color -Wno-stringop-overread -DDEBUG"
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-release-clang",
|
|
"inherits": "sparkd-release",
|
|
"displayName": "Sparkd (Release | Clang)",
|
|
"description": "Release build compiled w/ clang",
|
|
"cacheVariables": {
|
|
"CMAKE_C_COMPILER": "clang",
|
|
"CMAKE_CXX_COMPILER": "clang++",
|
|
"CMAKE_CXX_FLAGS_RELEASE": "-fPIC -Wall -pedantic -Wextra -Werror -Wno-missing-braces -Wno-ignored-qualifiers --std=c++20 -fdiagnostics-color -fno-omit-frame-pointer -DNDEBUG -O3"
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-release-gcc",
|
|
"inherits": "sparkd-release",
|
|
"displayName": "Sparkd (Release | Gcc)",
|
|
"description": "Release build compiled w/ gcc",
|
|
"cacheVariables": {
|
|
"CMAKE_C_COMPILER": "gcc",
|
|
"CMAKE_CXX_COMPILER": "g++",
|
|
"CMAKE_CXX_FLAGS_RELEASE": "-fPIC -Wall -pedantic -Wextra -Werror -Wno-missing-braces -Wno-ignored-qualifiers -Wno-stringop-overflow --std=c++20 -fdiagnostics-color -Wno-stringop-overread -Wno-maybe-uninitialized -fno-omit-frame-pointer -DNDEBUG -O3"
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "spark-linux",
|
|
"inherits": "spark-base",
|
|
"displayName": "Spark",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Linux"
|
|
},
|
|
"generator": "Ninja Multi-Config",
|
|
"cacheVariables": {
|
|
"platform": "linux",
|
|
"BUILD_ADMIN_WEB_APP": {
|
|
"type": "BOOL",
|
|
"value": "OFF"
|
|
},
|
|
"BUILD_SPARKD": {
|
|
"type": "BOOL",
|
|
"value": "OFF"
|
|
},
|
|
"CMAKE_BUILD_WITH_INSTALL_RPATH": {
|
|
"type": "BOOL",
|
|
"value": "OFF"
|
|
},
|
|
"CMAKE_C_COMPILER": "clang",
|
|
"CMAKE_CXX_COMPILER": "clang++",
|
|
"CMAKE_CXX_FLAGS_DEBUG": "-g -fPIC -Wall -pedantic -Wextra -Werror -Wno-missing-braces -Wno-ignored-qualifiers --std=c++20 -fdiagnostics-color -DDEBUG",
|
|
"CMAKE_CXX_FLAGS_RELEASE": "-fPIC -Wall -pedantic -Wextra -Werror -Wno-missing-braces -Wno-ignored-qualifiers --std=c++20 -fdiagnostics-color -fno-omit-frame-pointer -DNDEBUG -O3",
|
|
"CMAKE_EXE_LINKER_FLAGS": "-Wno-undef",
|
|
"CMAKE_EXPORT_COMPILE_COMMANDS": {
|
|
"type": "BOOL",
|
|
"value": "ON"
|
|
},
|
|
"CMAKE_INSTALL_RPATH": ".",
|
|
"CMAKE_PREFIX_PATH": "${sourceDir}/cmake/;${sourceDir}/.venv/lib/python3.10/site-packages/pybind11/share/cmake/pybind11",
|
|
"DATABENTO_USE_EXTERNAL_JSON": {
|
|
"type": "BOOL",
|
|
"value": "ON"
|
|
},
|
|
"EXTERNALS_ROOT": "${sourceDir}/externals/linux"
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-publish",
|
|
"inherits": "sparkd-release-gcc",
|
|
"displayName": "Publish",
|
|
"description": "Production build compiled w/ gcc and ready to ship"
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-ccapi-diag",
|
|
"inherits": "sparkd-debug-clang",
|
|
"displayName": "Debug (ccapi diag)",
|
|
"description": "Debug build w/ ccapi log level 'Trace'",
|
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
|
"cacheVariables": {
|
|
"CCAPI_LOG_LEVEL": "Trace"
|
|
}
|
|
}
|
|
],
|
|
|
|
"buildPresets": [
|
|
{
|
|
"name": "spark-windows",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Windows"
|
|
},
|
|
"hidden": true,
|
|
"configurePreset": "spark-windows"
|
|
},
|
|
|
|
{
|
|
"name": "spark-windows-debug",
|
|
"displayName": "Spark (Debug)",
|
|
"inherits": "spark-windows",
|
|
"configuration": "Debug"
|
|
},
|
|
|
|
{
|
|
"name": "spark-windows-release",
|
|
"displayName": "Spark (Release)",
|
|
"inherits": "spark-windows",
|
|
"configuration": "Release"
|
|
},
|
|
|
|
{
|
|
"name": "sparkd",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Linux"
|
|
},
|
|
"hidden": true
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-debug-clang",
|
|
"configurePreset": "sparkd-debug-clang",
|
|
"displayName": "Sparkd (Debug | Clang)",
|
|
"inherits": "sparkd"
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-debug-gcc",
|
|
"configurePreset": "sparkd-debug-gcc",
|
|
"displayName": "Sparkd (Debug | Gcc)",
|
|
"inherits": "sparkd"
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-release-clang",
|
|
"configurePreset": "sparkd-release-clang",
|
|
"displayName": "Sparkd (Release | Clang)",
|
|
"inherits": "sparkd"
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-release-gcc",
|
|
"configurePreset": "sparkd-release-gcc",
|
|
"displayName": "Sparkd (Release | Gcc)",
|
|
"inherits": "sparkd"
|
|
},
|
|
|
|
{
|
|
"name": "spark-linux",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Linux"
|
|
},
|
|
"hidden": true,
|
|
"configurePreset": "spark-linux"
|
|
},
|
|
|
|
{
|
|
"name": "spark-linux-debug",
|
|
"inherits": "spark-linux",
|
|
"displayName": "Spark (Linux | Debug)",
|
|
"configuration": "Debug"
|
|
},
|
|
|
|
{
|
|
"name": "spark-linux-release",
|
|
"inherits": "spark-linux",
|
|
"displayName": "Spark (Linux | Release)",
|
|
"configuration": "Release"
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-publish",
|
|
"configurePreset": "sparkd-publish",
|
|
"displayName": "Publish",
|
|
"inherits": "sparkd",
|
|
"targets": "install"
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-ccapi-diag",
|
|
"configurePreset": "sparkd-ccapi-diag",
|
|
"displayName": "Debug (ccapi diag)",
|
|
"inherits": "sparkd"
|
|
}
|
|
]
|
|
}
|