2020-08-22 06:33:35 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2021-04-10 00:42:55 +08:00
|
|
|
URLS "https://github.com/BehaviorTree/BehaviorTree.CPP/archive/3.5.6.tar.gz"
|
|
|
|
FILENAME "BehaviorTree.CPP.3.5.6.tar.gz"
|
|
|
|
SHA512 cd3b15eb7c5bab68239b697da166220b4df8dd7e6cf5e831f316d411e24be56c9ed74e54a3e3dd332164d740159eaf9ce62d005601fd65133809dab29430c9b7
|
2020-08-22 06:33:35 +08:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
2020-08-22 06:33:35 +08:00
|
|
|
PATCHES
|
|
|
|
001_port_fixes.patch
|
2020-08-25 01:33:57 +08:00
|
|
|
002_fix_dependencies.patch
|
2020-08-22 06:33:35 +08:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-08-25 01:33:57 +08:00
|
|
|
OPTIONS
|
2020-09-01 13:36:25 +08:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_ament_cmake=1
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Curses=1
|
2020-08-25 01:33:57 +08:00
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_UNIT_TESTS=OFF
|
|
|
|
-DBUILD_TOOLS=OFF
|
2020-08-22 06:33:35 +08:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/BehaviorTreeV3/cmake PACKAGE_NAME behaviortreev3)
|
2020-08-22 06:33:35 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2020-08-22 06:33:35 +08:00
|
|
|
|
2020-09-01 13:36:25 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib/BehaviorTreeV3"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib/BehaviorTreeV3"
|
|
|
|
)
|