mirror of https://github.com/microsoft/vcpkg.git
[joltphysics] Add new port (#27715)
* [joltphysics] New port * [joltphysics] Update version files * [joltphysics] Update version files * [joltphysics] Fix libraries installation on Linux and MacOS * [joltphysics] Update version files * [joltphysics] Update to latest commit (compile fixes for MSVC 17.4) * [joltphysics] Update version files * [joltphysics] Remove extra version entry * Update ci.baseline.txt [joltphysics] Revert ci.baseline changes * [joltphysics] Update to 2.0.1 * [joltphysics] Update version files
This commit is contained in:
parent
783e2d8e99
commit
1ecdbe80b3
|
|
@ -0,0 +1,45 @@
|
|||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO jrouwe/JoltPhysics
|
||||
REF v2.0.1
|
||||
SHA512 c5848fe7a28de1b34259d3d21e4cd35bec4002eee926445e05d902934c43ab4cafcfa24ceb037c59cc66c3dcea5f3a737546f88c20be594dafe6ce6d1f637abb
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" USE_STATIC_CRT)
|
||||
|
||||
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
|
||||
-DUSE_STATIC_MSVC_RUNTIME_LIBRARY=${USE_STATIC_CRT}
|
||||
OPTIONS_RELEASE
|
||||
-DCMAKE_BUILD_TYPE=Distribution
|
||||
)
|
||||
|
||||
vcpkg_cmake_build()
|
||||
|
||||
file(
|
||||
INSTALL "${SOURCE_PATH}/Jolt"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
||||
FILES_MATCHING
|
||||
PATTERN "*.h"
|
||||
PATTERN "*.inl"
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/Jolt.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
||||
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/Jolt.lib" 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)
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "joltphysics",
|
||||
"version": "2.0.1",
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -3188,6 +3188,10 @@
|
|||
"baseline": "2018-05-08",
|
||||
"port-version": 1
|
||||
},
|
||||
"joltphysics": {
|
||||
"baseline": "2.0.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"josuttis-jthread": {
|
||||
"baseline": "2020-07-21",
|
||||
"port-version": 2
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "32e717f2dbe21ad13619824ad3151ce46d686784",
|
||||
"version": "2.0.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue