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-07-07 04:35:42 +08:00
|
|
|
REF 45be9b248306e6ec3136efdd256d769c23b581d1
|
|
|
|
SHA512 24efe143718adbf4894e21e715ef5ed2585085b7b3729d9e21d3b0951c7c939e16c9f531eb52ec489cb539d1f70a2dcde025b7bbcbb2165ddf1a5b8278f9b806
|
|
|
|
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)
|