2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-12-24 01:07:20 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO bulletphysics/bullet3
|
2022-03-29 04:42:25 +08:00
|
|
|
REF 3.22
|
|
|
|
SHA512 edacf643ca9621523812effe69a7499716bc65282c58c1f5b4eb4f17b2b1ab55a4f71b06a73483f57e57a5b032c234d09ba5fab9881321f2cbc3c27b43fdc95d
|
2017-12-24 01:07:20 +08:00
|
|
|
HEAD_REF master
|
2022-03-22 05:07:49 +08:00
|
|
|
PATCHES
|
|
|
|
cmake-fix.patch
|
2016-10-06 03:49:46 +08:00
|
|
|
)
|
|
|
|
|
2020-02-29 13:30:50 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-06-11 23:58:43 +08:00
|
|
|
FEATURES
|
|
|
|
multithreading BULLET2_MULTITHREADING
|
2020-02-29 13:30:50 +08:00
|
|
|
)
|
2019-07-31 07:10:59 +08:00
|
|
|
|
2021-11-03 02:57:02 +08:00
|
|
|
vcpkg_cmake_configure(
|
2016-10-06 03:49:46 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2016-10-08 03:35:24 +08:00
|
|
|
OPTIONS
|
2016-10-21 04:25:10 +08: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-06 03:49:46 +08:00
|
|
|
)
|
|
|
|
|
2021-11-03 02:57:02 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME bullet CONFIG_PATH share/bullet)
|
2016-10-06 03:49:46 +08:00
|
|
|
|
2021-11-03 02:57:02 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-01-07 06:44:15 +08:00
|
|
|
|
2021-09-01 03:55:56 +08: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-06 03:49:46 +08:00
|
|
|
|
2021-09-01 03:55:56 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|