Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[joltphysics] Add new port #27715

Merged
merged 11 commits into from
Nov 15, 2022
43 changes: 43 additions & 0 deletions ports/joltphysics/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jrouwe/JoltPhysics
REF dccb4e13aa1d6716f3e48571d40422496298f94f
SHA512 42cb141eaf00bf396b98e520fa609c1504c6cd7ff39e8a99027750257c3ebe30a4c319178e8532e008a4231a33b8c6fb789c9e05531c6df36b5e38f79f6cc927
HEAD_REF master
)

string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" USE_STATIC_CRT)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/Build"
WINDOWS_USE_MSBUILD
OPTIONS
-DTARGET_UNIT_TESTS=OFF
-DTARGET_HELLO_WORLD=OFF
-DTARGET_PERFORMANCE_TEST=OFF
-DTARGET_SAMPLES=OFF
-DTARGET_VIEWER=OFF
-DUSE_STATIC_MSVC_RUNTIME_LIBRARY=${USE_STATIC_CRT}
)

vcpkg_cmake_build()

file(
INSTALL "${SOURCE_PATH}/Jolt"
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
RT2Code marked this conversation as resolved.
Show resolved Hide resolved
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.inl"
)

if(VCPKG_TARGET_IS_WINDOWS)
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/Debug/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/Release/" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
else()
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libJolt.a" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libJolt.a" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
endif()

file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
18 changes: 18 additions & 0 deletions ports/joltphysics/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "joltphysics",
"version-date": "2022-11-09",
"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",
"supports": "!(arm & uwp)",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The library should support ARM and UWP now.

"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3188,6 +3188,10 @@
"baseline": "2018-05-08",
"port-version": 1
},
"joltphysics": {
"baseline": "2022-11-09",
"port-version": 0
},
"josuttis-jthread": {
"baseline": "2020-07-21",
"port-version": 2
Expand Down
9 changes: 9 additions & 0 deletions versions/j-/joltphysics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "3726e6575180f4e9d1ffda431c12f4a92da49fc1",
"version-date": "2022-11-09",
"port-version": 0
}
]
}