Skip to content

Commit 5314c10

Browse files
committed
[joltphysics] Add shared lib as build option
1 parent 09b26b4 commit 5314c10

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

ports/joltphysics/portfile.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2-
31
vcpkg_from_github(
42
OUT_SOURCE_PATH SOURCE_PATH
53
REPO jrouwe/JoltPhysics
@@ -9,6 +7,7 @@ vcpkg_from_github(
97
)
108

119
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" USE_STATIC_CRT)
10+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" JPH_BUILD_SHARED_LIBS)
1211

1312
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
1413
FEATURES
@@ -27,6 +26,7 @@ vcpkg_cmake_configure(
2726
-DTARGET_VIEWER=OFF
2827
-DCROSS_PLATFORM_DETERMINISTIC=OFF
2928
-DINTERPROCEDURAL_OPTIMIZATION=OFF
29+
-DJPH_BUILD_SHARED_LIBS=${JPH_BUILD_SHARED_LIBS}
3030
-DUSE_STATIC_MSVC_RUNTIME_LIBRARY=${USE_STATIC_CRT}
3131
-DENABLE_ALL_WARNINGS=OFF
3232
-DOVERRIDE_CXX_FLAGS=OFF

ports/joltphysics/vcpkg.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "joltphysics",
33
"version": "5.6.0",
4+
"port-version": 1,
45
"description": "A multi core friendly rigid body physics and collision detection library suitable for games and VR applications",
56
"homepage": "https://github.com/jrouwe/JoltPhysics",
67
"license": "MIT",

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4190,7 +4190,7 @@
41904190
},
41914191
"joltphysics": {
41924192
"baseline": "5.6.0",
4193-
"port-version": 0
4193+
"port-version": 1
41944194
},
41954195
"josuttis-jthread": {
41964196
"baseline": "2020-07-21",

versions/j-/joltphysics.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "659a62b4ffdd7856dfb35bcdd7df6a211967b6b3",
5+
"version": "5.6.0",
6+
"port-version": 1
7+
},
38
{
49
"git-tree": "2eab0b6e73bfbe491fa0ffb297fd3ffdb6bf4ecf",
510
"version": "5.6.0",

0 commit comments

Comments
 (0)