2019-09-12 01:14:22 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/marl
|
2023-07-07 01:41:03 +08:00
|
|
|
REF aa9e85b2189d6f5dbba6909275661b37dfb5de69 #2023-06-28
|
|
|
|
SHA512 fc4869d791608fa9198da896b6687fcc79e830766f3192ca6d7b28ba3156a06618901677e66f0b08a472a602a62d88f09ff49917a6749f410d92c2911f14d736
|
2020-07-07 04:35:42 +08:00
|
|
|
HEAD_REF main
|
2019-09-12 01:14:22 +08:00
|
|
|
)
|
|
|
|
|
2020-07-07 04:35:42 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" MARL_BUILD_SHARED)
|
|
|
|
|
2022-03-17 04:55:57 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-09-12 01:14:22 +08:00
|
|
|
OPTIONS
|
2020-07-07 04:35:42 +08:00
|
|
|
-DMARL_BUILD_SHARED=${MARL_BUILD_SHARED}
|
2019-09-12 01:14:22 +08:00
|
|
|
-DMARL_INSTALL=ON
|
|
|
|
)
|
|
|
|
|
2022-03-17 04:55:57 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-09-12 01:14:22 +08:00
|
|
|
|
2020-07-07 04:35:42 +08:00
|
|
|
if(MARL_BUILD_SHARED)
|
|
|
|
vcpkg_replace_string(
|
|
|
|
"${CURRENT_PACKAGES_DIR}/include/marl/export.h"
|
|
|
|
"#ifdef MARL_DLL"
|
|
|
|
"#if 1 // #ifdef MARL_DLL"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2022-03-17 04:55:57 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2019-09-12 01:14:22 +08:00
|
|
|
|
2020-07-07 04:35:42 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-03-17 04:55:57 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-09-12 01:14:22 +08:00
|
|
|
|
2023-07-07 01:41:03 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|