2020-05-22 02:35:54 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "UWP")
|
2019-09-12 01:14:22 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/marl
|
2020-10-13 03:26:51 +08:00
|
|
|
REF f1c446ccdc0c611d1aeec4a6266a77693ae48c92
|
|
|
|
SHA512 3cbe911ddc42c1996ad467958d1e3b34080a49965c3c7ce3408f59039f477c660df323cf1aa9d55447e6f54c23fd2cb19f149b722a1b66836e24bd3368fa4f46
|
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)
|
|
|
|
|
2019-09-12 01:14:22 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
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()
|
|
|
|
|
2019-09-13 23:32:39 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
2019-09-12 01:14:22 +08:00
|
|
|
|
2020-07-07 04:35:42 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2019-09-12 01:14:22 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
2020-05-22 02:35:54 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|