2020-01-13 11:30:54 -08:00
|
|
|
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP")
|
2017-12-23 18:07:20 +01:00
|
|
|
|
2019-05-02 22:57:43 -07:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-12-23 18:07:20 +01:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO bulletphysics/bullet3
|
2021-06-11 17:58:43 +02:00
|
|
|
REF 3.17
|
|
|
|
SHA512 a5105bf5f1dd365a64a350755c7d2c97942f74897a18dcdb3651e6732fd55cc1030a096f5808cf50575281f05e3ac09aa50a48d271a47b94cd61f5167a72b7cc
|
2017-12-23 18:07:20 +01:00
|
|
|
HEAD_REF master
|
2020-01-06 14:44:15 -08:00
|
|
|
PATCHES cmake-fix.patch
|
2016-10-05 14:49:46 -05:00
|
|
|
)
|
|
|
|
|
2020-02-29 13:30:50 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-06-11 17:58:43 +02:00
|
|
|
FEATURES
|
|
|
|
multithreading BULLET2_MULTITHREADING
|
2020-02-29 13:30:50 +08:00
|
|
|
)
|
2019-07-31 02:10:59 +03:00
|
|
|
|
2016-10-05 14:49:46 -05:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-08-01 04:01:02 +08:00
|
|
|
PREFER_NINJA
|
2016-10-07 14:35:24 -05:00
|
|
|
OPTIONS
|
2016-10-20 15:25:10 -05:00
|
|
|
-DUSE_MSVC_RUNTIME_LIBRARY_DLL=ON
|
|
|
|
-DBUILD_CPU_DEMOS=OFF
|
|
|
|
-DBUILD_BULLET2_DEMOS=OFF
|
|
|
|
-DBUILD_BULLET3=OFF
|
|
|
|
-DBUILD_EXTRAS=OFF
|
|
|
|
-DBUILD_UNIT_TESTS=OFF
|
|
|
|
-DINSTALL_LIBS=ON
|
2020-02-29 13:30:50 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2016-10-05 14:49:46 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2021-08-31 21:55:56 +02:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/bullet TARGET_PATH share/bullet)
|
2020-01-06 14:44:15 -08:00
|
|
|
|
2021-08-31 21:55:56 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/bullet/BulletInverseDynamics/details")
|
2016-10-05 14:49:46 -05:00
|
|
|
|
2017-03-09 12:40:03 -05:00
|
|
|
vcpkg_copy_pdbs()
|
2017-12-23 18:07:20 +01:00
|
|
|
|
2021-08-31 21:55:56 +02:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|