2020-01-07 03:00:01 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "uwp")
|
2016-11-06 01:41:40 +08:00
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2017-05-03 19:57:23 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO erincatto/Box2D
|
2021-02-25 05:58:56 +08:00
|
|
|
REF 9ebbbcd960ad424e03e5de6e66a40764c16f51bc #v2.4.1
|
|
|
|
SHA512 d9fa387ce893ed1fb73f80006491202f2624ef6d0fb37daf92fbd1a7f9071c84da45e4b418b333566435bbbdfd3d5f68a42dfca02416e9a3a2b4db039f1c6151
|
2017-05-03 19:57:23 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2016-11-06 01:41:40 +08:00
|
|
|
|
2018-05-02 06:39:19 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2020-01-07 03:00:01 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_SAMPLES=OFF
|
2018-05-02 06:39:19 +08:00
|
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
2016-11-06 01:41:40 +08:00
|
|
|
|
2020-01-07 03:00:01 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2016-11-06 01:41:40 +08:00
|
|
|
|
2021-02-25 05:58:56 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/box2d)
|
2016-11-06 01:41:40 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2018-05-02 06:39:19 +08:00
|
|
|
|
2020-01-07 03:00:01 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|