JOLT Physics update

adds jolt physics to torque3d
This commit is contained in:
marauder2k7 2026-04-04 11:58:44 +01:00
parent d331731aa1
commit 48312ae20e
16 changed files with 2700 additions and 3 deletions

View file

@ -0,0 +1,44 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
set(LOCAL_ARCHIVE "$ENV{VCPKG_LIB_SOURCE_ROOT}/JoltPhysics-5.5.0.zip")
vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${LOCAL_ARCHIVE}"
)
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")

View file

@ -0,0 +1,28 @@
{
"name": "joltphysics",
"version": "5.5.0",
"description": "A multi core friendly rigid body physics and collision detection library suitable for games and VR applications",
"homepage": "https://github.com/jrouwe/JoltPhysics",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"debugrenderer": {
"description": "Enable debug renderer in Debug and Release builds"
},
"profiler": {
"description": "Enable the profiler in Debug and Release builds"
},
"rtti": {
"description": "Enable C++ RTTI"
}
}
}