2020-08-01 02:28:21 +08:00
|
|
|
vcpkg_fail_port_install(
|
|
|
|
ON_ARCH "arm"
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO GamedevFramework/gf
|
|
|
|
HEAD_REF master
|
2020-11-12 07:33:38 +08:00
|
|
|
REF v0.18.1
|
|
|
|
SHA512 7d027bc9c56ad60e242f44c40e79039a0b95fb01b805cba529089a9a7e4e3ca79986d05f6906653065b96cc39d9d9e79aeafb72524453508468a30d6cf7609cf
|
2020-08-01 02:28:21 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DGF_VCPKG=ON
|
|
|
|
-DGF_USE_EMBEDDED_LIBS=OFF
|
|
|
|
-DGF_BUILD_GAMES=OFF
|
|
|
|
-DGF_BUILD_EXAMPLES=OFF
|
|
|
|
-DGF_BUILD_DOCUMENTATION=OFF
|
|
|
|
-DGF_SINGLE_COMPILTATION_UNIT=ON
|
2020-10-16 03:34:00 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
2020-08-01 02:28:21 +08:00
|
|
|
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
|
|
|
|
OPTIONS_RELEASE -DGF_DEBUG=OFF
|
|
|
|
OPTIONS_DEBUG -DGF_DEBUG=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2020-08-06 04:59:26 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/gf TARGET_PATH share/gf)
|
2020-08-01 02:28:21 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/doc"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/bin/gf_info.exe"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/bin/gf_info.exe"
|
|
|
|
)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/bin"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|