Skip to content

Commit

Permalink
[joltphysics] Add debug build compile definitions features (#41858)
Browse files Browse the repository at this point in the history
Co-authored-by: LilyWangLL <4945507022qq.com>
  • Loading branch information
LilyWangLL authored Nov 5, 2024
1 parent b8a0a2d commit 71542c0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
9 changes: 7 additions & 2 deletions ports/joltphysics/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
)
Expand Down
12 changes: 10 additions & 2 deletions ports/joltphysics/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3842,7 +3842,7 @@
},
"joltphysics": {
"baseline": "5.1.0",
"port-version": 1
"port-version": 2
},
"josuttis-jthread": {
"baseline": "2020-07-21",
Expand Down
5 changes: 5 additions & 0 deletions versions/j-/joltphysics.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "77fc93156891bade6362a38c0cc5619fce1b6b2b",
"version": "5.1.0",
"port-version": 2
},
{
"git-tree": "be4e60601ee3a8e15476ee5f583a1102e0d53f51",
"version": "5.1.0",
Expand Down

0 comments on commit 71542c0

Please sign in to comment.