vcpkg/ports/bullet3/portfile.cmake
Billy O'Neal 485e459074
[bullet3] Remove vcpkg_fail_port_install. (#22729)
* [bullet3] Remove vcpkg_fail_port_install.

The supports expression and the portfile.cmake disagreed.

Supports: !((windows | linux) & (arm | uwp))
Portfile: osx | !(arm | arm64 | uwp)

If we demorgan the supports expression we get something closer to the portfile:
!(windows | linux) | !(arm | uwp)

If we take "!(windows | linux)" to mean that the author meant "osx", and assume arm64 implies arm, we end up with:

osx | !(arm | uwp)

In support of: https://github.com/microsoft/vcpkg/pull/21502

* Also remove ci.baseline.txt entries now covered by vcpkg.json.
2022-01-23 22:43:39 -08:00

42 lines
1.2 KiB
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO bulletphysics/bullet3
REF 3.17
SHA512 a5105bf5f1dd365a64a350755c7d2c97942f74897a18dcdb3651e6732fd55cc1030a096f5808cf50575281f05e3ac09aa50a48d271a47b94cd61f5167a72b7cc
HEAD_REF master
PATCHES cmake-fix.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
multithreading BULLET2_MULTITHREADING
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-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
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(PACKAGE_NAME bullet CONFIG_PATH share/bullet)
vcpkg_fixup_pkgconfig()
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")
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)