Add preset for building on Windows with MSVC

This commit is contained in:
Martchus 2023-03-05 12:25:35 +01:00
parent 4aea7f5a57
commit b9c8f795d4
1 changed files with 37 additions and 0 deletions

View File

@ -182,6 +182,43 @@
"displayName": "Combination of devel and arch-static-compat",
"description": "See descriptions of devel and arch-static-compat",
"binaryDir": "$env{BUILD_DIR}/${sourceDirName}/arch-static-compat-devel"
},
{
"name": "win-x64-msvc-static",
"inherits": ["no-webview", "no-kde", "qt6"],
"displayName": "Target x64-windows-static on Windows",
"description": "Build on Windows targeting x64-windows-static using Qt 6, static packages from vcpkg and Perl from MSYS2",
"binaryDir": "$env{BUILD_DIR}/${sourceDirName}/win-x64-msvc-static",
"cacheVariables": {
"BUILD_SHARED_LIBS": {"type": "BOOL", "value": "OFF"},
"CMAKE_FIND_ROOT_PATH": {"type": "PATH", "value": "$env{VCPKG_PATH}/installed/x64-windows-static"},
"CMAKE_MSVC_RUNTIME_LIBRARY": {"type": "STRING", "value": "MultiThreaded$<$<CONFIG:Debug>:Debug>"},
"PERL_BIN": {"type": "PATH", "value": "$env{MSYS2_PATH}/usr/bin/perl.exe"},
"FORCE_EXTERNAL_ICONV": {"type": "BOOL", "value": "ON"},
"Iconv_LIBRARY": {"type": "PATH", "value": "$env{VCPKG_PATH}/installed/x64-windows-static/lib/iconv.lib"},
"Iconv_INCLUDE_DIR": {"type": "PATH", "value": "$env{VCPKG_PATH}/installed/x64-windows-static/include"},
"Boost_INCLUDE_DIR": {"type": "PATH", "value": "$env{VCPKG_PATH}/installed/x64-windows-static/include"},
"Boost_USE_STATIC_RUNTIME": {"type": "BOOL", "value": "ON"},
"CPP_UNIT_LIB": {"type": "PATH", "value": "$env{VCPKG_PATH}/installed/x64-windows-static/lib/cppunit.lib"},
"CPP_UNIT_INCLUDE_DIR": {"type": "PATH", "value": "$env{VCPKG_PATH}/installed/x64-windows-static/include"},
"ZLIB_INCLUDE_DIR": {"type": "PATH", "value": "$env{VCPKG_PATH}/installed/x64-windows-static/include"},
"ZLIB_LIBRARY_DEBUG": {"type": "PATH", "value": "$env{VCPKG_PATH}/installed/x64-windows-static/lib/zlib.lib"},
"ZLIB_LIBRARY_RELEASE": {"type": "PATH", "value": "$env{VCPKG_PATH}/installed/x64-windows-static/lib/zlib.lib"}
}
},
{
"name": "win-x64-msvc-static-devel",
"inherits": ["devel", "win-x64-msvc-static"],
"displayName": "Combination of devel and win-x64-msvc-static",
"description": "See descriptions of devel and win-x64-msvc-static",
"binaryDir": "$env{BUILD_DIR}/${sourceDirName}/win-x64-msvc-static-devel"
},
{
"name": "win-x64-msvc-static-debug",
"inherits": ["debug", "win-x64-msvc-static"],
"displayName": "Combination of debug and win-x64-msvc-static",
"description": "See descriptions of debug and win-x64-msvc-static",
"binaryDir": "$env{BUILD_DIR}/${sourceDirName}/win-x64-msvc-static-debug"
}
],
"buildPresets": [