2022-11-15 13:30:00 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jrouwe/JoltPhysics
|
2023-02-01 03:26:52 +08:00
|
|
|
REF "v${VERSION}"
|
2024-08-20 00:25:30 +08:00
|
|
|
SHA512 01c8b0b1857811876e2d9f75f1cd191e09c43b131d9d7c1f24cb0e28b913a5e896fb51cbf3aaa100b237ceaa2a235b8f925b31bf5a2165faaf0f2f0b186bc103
|
2022-11-15 13:30:00 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" USE_STATIC_CRT)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/Build"
|
|
|
|
OPTIONS
|
|
|
|
-DTARGET_UNIT_TESTS=OFF
|
|
|
|
-DTARGET_HELLO_WORLD=OFF
|
|
|
|
-DTARGET_PERFORMANCE_TEST=OFF
|
|
|
|
-DTARGET_SAMPLES=OFF
|
|
|
|
-DTARGET_VIEWER=OFF
|
|
|
|
-DCROSS_PLATFORM_DETERMINISTIC=OFF
|
2023-09-27 16:20:50 +08:00
|
|
|
-DINTERPROCEDURAL_OPTIMIZATION=OFF
|
2022-11-15 13:30:00 +08:00
|
|
|
-DUSE_STATIC_MSVC_RUNTIME_LIBRARY=${USE_STATIC_CRT}
|
2023-04-19 07:22:33 +08:00
|
|
|
-DENABLE_ALL_WARNINGS=OFF
|
2024-04-09 23:37:23 +08:00
|
|
|
-DOVERRIDE_CXX_FLAGS=OFF
|
2024-04-06 08:20:31 +08:00
|
|
|
-DDEBUG_RENDERER_IN_DEBUG_AND_RELEASE=OFF
|
|
|
|
-DPROFILER_IN_DEBUG_AND_RELEASE=OFF
|
2024-09-14 06:47:52 +08:00
|
|
|
OPTIONS_RELEASE
|
|
|
|
-DGENERATE_DEBUG_SYMBOLS=OFF
|
2022-11-15 13:30:00 +08:00
|
|
|
)
|
|
|
|
|
2023-09-27 16:20:50 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2022-11-15 13:30:00 +08:00
|
|
|
|
2023-09-27 16:20:50 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2024-08-20 00:25:30 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME Jolt CONFIG_PATH "lib/cmake/Jolt")
|
2022-11-15 13:30:00 +08:00
|
|
|
|
2023-02-01 03:26:52 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|