It's cleaner here, and makes transitioning between branches easier. The new build_spark.py uses cmake --preset and dotnet build.
216 lines
6.3 KiB
JSON
216 lines
6.3 KiB
JSON
{
|
|
"version": 4,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 23,
|
|
"patch": 0
|
|
},
|
|
|
|
"configurePresets": [
|
|
{
|
|
"name": "spark",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Windows"
|
|
},
|
|
"generator": "Visual Studio 17 2022",
|
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
|
"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_CXX_STANDARD": "20",
|
|
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/${presetName}",
|
|
"CMAKE_SHARED_LINKER_FLAGS_DEBUG": "/DEBUG",
|
|
"CMAKE_SHARED_LINKER_FLAGS_RELEASE": "/OPT:REF /OPT:ICF /LTCG",
|
|
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
|
"EXTERNALS_ROOT": "${sourceDir}/externals/windows",
|
|
"CONFIG_DEFAULTS_PATH": "config/defaults/*.conf",
|
|
"DOTNET_BINARY_DIR": "${sourceDir}/build/$<CONFIG>/bin/net7.0;${sourceDir}/build/$<CONFIG>/bin/net7.0-windows",
|
|
"EXPORT_MD_CONSUMER": {
|
|
"type": "BOOL",
|
|
"value": "ON"
|
|
}
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "sparkd",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Linux"
|
|
},
|
|
"hidden": true,
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
|
"cacheVariables": {
|
|
"platform": "",
|
|
"CMAKE_CXX_STANDARD": "20",
|
|
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/${presetName}",
|
|
"CMAKE_EXE_LINKER_FLAGS": "-Wno-undef",
|
|
"CONFIG_DEFAULTS_PATH": "config/defaults/*.conf",
|
|
"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"
|
|
}
|
|
},
|
|
|
|
{
|
|
"name": "sparkd-release",
|
|
"inherits": "sparkd",
|
|
"hidden": true,
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Release",
|
|
"CCAPI_LOG_LEVEL": "Warn"
|
|
}
|
|
},
|
|
|
|
{
|
|
"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"
|
|
}
|
|
}
|
|
],
|
|
|
|
"buildPresets": [
|
|
{
|
|
"name": "spark",
|
|
"condition": {
|
|
"type": "equals",
|
|
"lhs": "${hostSystemName}",
|
|
"rhs": "Windows"
|
|
},
|
|
"hidden": true
|
|
},
|
|
|
|
{
|
|
"name": "spark-debug",
|
|
"displayName": "Spark (Debug)",
|
|
"inherits": "spark",
|
|
"configurePreset": "spark",
|
|
"configuration": "Debug"
|
|
},
|
|
|
|
{
|
|
"name": "spark-release",
|
|
"displayName": "Spark (Release)",
|
|
"inherits": "spark",
|
|
"configurePreset": "spark",
|
|
"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-clang-j6",
|
|
"configurePreset": "sparkd-debug-clang",
|
|
"displayName": "Sparkd (Debug | Clang | jobs=6)",
|
|
"inherits": "sparkd",
|
|
"jobs": 6
|
|
},
|
|
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|