mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 06:29:01 +08:00
645b853ed8
* Update gamedev-framework to v1.0.0 * Update database * Use new vcpkg_cmake commands * Fix portfile format * Update package revision * Try to fix database version * Remove port-version Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Protect CMake string Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Fix version database * remove git-tree * update version Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Jonliu1993 <13720414433@163.com>
50 lines
1.4 KiB
CMake
50 lines
1.4 KiB
CMake
if (VCPKG_HOST_IS_LINUX)
|
|
message(WARNING "gamedev-framework requires gcc version 8.3 or later.")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO GamedevFramework/gf
|
|
HEAD_REF master
|
|
REF v1.0.0
|
|
SHA512 daa6808500e4259152b8173d6f289964d2e0807f434ec25a378575a0160de7c739ce8f483b157b734a1d5726720db6a22212ec2ef803ff567a51ed8a6822cfd7
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DGF_USE_EMBEDDED_LIBS=OFF
|
|
-DGF_BUILD_GAMES=OFF
|
|
-DGF_BUILD_EXAMPLES=OFF
|
|
-DGF_BUILD_DOCUMENTATION=OFF
|
|
-DGF_SINGLE_COMPILTATION_UNIT=ON
|
|
-DBUILD_TESTING=OFF
|
|
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
|
|
OPTIONS_RELEASE -DGF_DEBUG=OFF
|
|
OPTIONS_DEBUG -DGF_DEBUG=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(
|
|
PACKAGE_NAME gf
|
|
CONFIG_PATH lib/cmake/gf
|
|
)
|
|
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)
|