[joltphysics] Add debug build compile definitions features (#41858)

Co-authored-by: LilyWangLL <4945507022qq.com>
This commit is contained in:
Lily Wang 2024-11-05 13:04:13 -08:00 committed by GitHub
parent b8a0a2dfca
commit 71542c0ff1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 23 additions and 5 deletions

View File

@ -10,6 +10,12 @@ vcpkg_from_github(
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
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/Build"
OPTIONS
@ -23,8 +29,7 @@ vcpkg_cmake_configure(
-DUSE_STATIC_MSVC_RUNTIME_LIBRARY=${USE_STATIC_CRT}
-DENABLE_ALL_WARNINGS=OFF
-DOVERRIDE_CXX_FLAGS=OFF
-DDEBUG_RENDERER_IN_DEBUG_AND_RELEASE=OFF
-DPROFILER_IN_DEBUG_AND_RELEASE=OFF
${FEATURE_OPTIONS}
OPTIONS_RELEASE
-DGENERATE_DEBUG_SYMBOLS=OFF
)

View File

@ -1,7 +1,7 @@
{
"name": "joltphysics",
"version": "5.1.0",
"port-version": 1,
"port-version": 2,
"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",
@ -14,5 +14,13 @@
"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"
}
}
}

View File

@ -3842,7 +3842,7 @@
},
"joltphysics": {
"baseline": "5.1.0",
"port-version": 1
"port-version": 2
},
"josuttis-jthread": {
"baseline": "2020-07-21",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "77fc93156891bade6362a38c0cc5619fce1b6b2b",
"version": "5.1.0",
"port-version": 2
},
{
"git-tree": "be4e60601ee3a8e15476ee5f583a1102e0d53f51",
"version": "5.1.0",