mirror of https://github.com/microsoft/vcpkg.git
[joltphysics] Add shared lib as build option (#53317)
This commit is contained in:
parent
dd1b1040bd
commit
76bd0f6cb0
|
|
@ -1,5 +1,3 @@
|
|||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO jrouwe/JoltPhysics
|
||||
|
|
@ -45,4 +43,25 @@ vcpkg_fixup_pkgconfig()
|
|||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME Jolt CONFIG_PATH "lib/cmake/Jolt")
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
vcpkg_replace_string(
|
||||
"${CURRENT_PACKAGES_DIR}/include/Jolt/Core/Core.h"
|
||||
"#pragma once"
|
||||
[=[#pragma once
|
||||
|
||||
#ifndef JPH_SHARED_LIBRARY
|
||||
#define JPH_SHARED_LIBRARY
|
||||
#endif
|
||||
#ifndef JPH_FLOATING_POINT_EXCEPTIONS_ENABLED
|
||||
#define JPH_FLOATING_POINT_EXCEPTIONS_ENABLED
|
||||
#endif
|
||||
#ifndef JPH_USE_CPU_COMPUTE
|
||||
#define JPH_USE_CPU_COMPUTE
|
||||
#endif
|
||||
#ifndef JPH_OBJECT_STREAM
|
||||
#define JPH_OBJECT_STREAM
|
||||
#endif]=]
|
||||
)
|
||||
endif()
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "joltphysics",
|
||||
"version": "5.6.0",
|
||||
"port-version": 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",
|
||||
|
|
|
|||
|
|
@ -4190,7 +4190,7 @@
|
|||
},
|
||||
"joltphysics": {
|
||||
"baseline": "5.6.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"josuttis-jthread": {
|
||||
"baseline": "2020-07-21",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "459e842b1521f5c365acaf110a7a1635f201569c",
|
||||
"version": "5.6.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "2eab0b6e73bfbe491fa0ffb297fd3ffdb6bf4ecf",
|
||||
"version": "5.6.0",
|
||||
|
|
|
|||
Loading…
Reference in New Issue