aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/joltphysics/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/joltphysics/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/joltphysics/portfile.cmake')
-rw-r--r--vcpkg/ports/joltphysics/portfile.cmake45
1 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/joltphysics/portfile.cmake b/vcpkg/ports/joltphysics/portfile.cmake
new file mode 100644
index 0000000..763b2c2
--- /dev/null
+++ b/vcpkg/ports/joltphysics/portfile.cmake
@@ -0,0 +1,45 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO jrouwe/JoltPhysics
+ REF "v${VERSION}"
+ SHA512 353b2cdc791b46513dbf90b4833988a4c7a4c541ea711813102fc3c488b5b19442092d77e715ae07c8e24a63e7046e975d6d9cb560f9777701c354a18032f9b4
+ HEAD_REF master
+)
+
+string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" USE_STATIC_CRT)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ debugrenderer DEBUG_RENDERER_IN_DEBUG_AND_RELEASE
+ profiler PROFILER_IN_DEBUG_AND_RELEASE
+ rtti CPP_RTTI_ENABLED
+)
+
+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
+ -DINTERPROCEDURAL_OPTIMIZATION=OFF
+ -DUSE_STATIC_MSVC_RUNTIME_LIBRARY=${USE_STATIC_CRT}
+ -DENABLE_ALL_WARNINGS=OFF
+ -DOVERRIDE_CXX_FLAGS=OFF
+ ${FEATURE_OPTIONS}
+ OPTIONS_RELEASE
+ -DGENERATE_DEBUG_SYMBOLS=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+vcpkg_cmake_config_fixup(PACKAGE_NAME Jolt CONFIG_PATH "lib/cmake/Jolt")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")