2019-09-12 01:14:22 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/marl
|
2022-03-17 04:55:57 +08:00
|
|
|
REF 9929747c9ba6354691dbacaf14f9b35433871e5b #2022-03-02
|
|
|
|
SHA512 454399485d292526333417474a312302aaff90cf63bc06a95c2e8b87cb92eaea547457ba3c06413e079ca29f9ea64990b9da467aeaec6ec2aa3233efddab2407
|
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
|
|
|
|
2022-03-17 04:55:57 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|