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
|
2022-12-08 15:23:12 -08:00
|
|
|
REF "${VERSION}"
|
2023-03-09 21:15:58 +02:00
|
|
|
SHA512 7086e5fcf69635801bb311261173cb8d173b712ca1bd78be03df48fad884674e85512861190e45a1a62d5627aaad65cde08c175c44a3be9afa410d3dfd5358d4
|
2017-12-23 18:07:20 +01:00
|
|
|
HEAD_REF master
|
2022-03-21 17:07:49 -04: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
|
2022-07-18 18:17:19 -04:00
|
|
|
double-precision USE_DOUBLE_PRECISION
|
2023-07-31 11:29:51 -07:00
|
|
|
extras BUILD_EXTRAS
|
2022-07-18 18:17:19 -04:00
|
|
|
INVERTED_FEATURES
|
|
|
|
rtti USE_MSVC_DISABLE_RTTI
|
2020-02-29 13:30:50 +08:00
|
|
|
)
|
2019-07-31 02:10:59 +03:00
|
|
|
|
2021-11-03 02:57:02 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-12-08 15:23:12 -08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
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
|
2022-07-18 18:17:19 -04:00
|
|
|
-DBUILD_OPENGL3_DEMOS=OFF
|
2016-10-20 15:25:10 -05:00
|
|
|
-DBUILD_BULLET3=OFF
|
2022-07-18 18:17:19 -04:00
|
|
|
-DBUILD_BULLET_ROBOTICS_GUI_EXTRA=OFF
|
|
|
|
-DBUILD_BULLET_ROBOTICS_EXTRA=OFF
|
|
|
|
-DBUILD_GIMPACTUTILS_EXTRA=OFF
|
|
|
|
-DBUILD_UNIT_TESTS=OFF
|
2016-10-20 15:25:10 -05:00
|
|
|
-DINSTALL_LIBS=ON
|
2024-08-05 23:31:15 -04:00
|
|
|
-DCMAKE_POLICY_DEFAULT_CMP0057=NEW
|
2020-02-29 13:30:50 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2016-10-05 14:49:46 -05: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-05 14:49:46 -05:00
|
|
|
|
2021-11-03 02:57:02 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
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
|
|
|
|
2022-12-08 15:23:12 -08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|