2017-11-26 10:28:16 -08:00
|
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|
|
|
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
|
|
|
endif()
|
|
|
|
|
2016-10-02 15:10:35 +03:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2017-05-06 20:53:22 +03:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO gflags/gflags
|
2018-01-10 16:26:56 +02:00
|
|
|
REF v2.2.1
|
|
|
|
SHA512 e919cbdcff1f993ddbfa9c06d8e595566a4717c27ff62f388a64c0e6b4683a93211c24ce78485eae84c2c76053341574064e6c56af185fc2782e2816b26e1fc9
|
2017-05-06 20:53:22 +03:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2016-12-01 10:19:31 -05:00
|
|
|
|
2018-01-31 11:22:35 -08:00
|
|
|
vcpkg_apply_patches(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PATCHES "${CMAKE_CURRENT_LIST_DIR}/revert-fix-install.patch"
|
|
|
|
)
|
|
|
|
|
2016-10-02 15:10:35 +03:00
|
|
|
vcpkg_configure_cmake(
|
2016-12-05 22:47:24 -08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-05-06 23:33:59 +03:00
|
|
|
PREFER_NINJA
|
2016-12-01 10:19:31 -05:00
|
|
|
OPTIONS
|
2016-12-05 22:47:24 -08:00
|
|
|
-DGFLAGS_REGISTER_BUILD_DIR:BOOL=OFF
|
|
|
|
-DGFLAGS_REGISTER_INSTALL_PREFIX:BOOL=OFF
|
|
|
|
-DBUILD_gflags_nothreads_LIB:BOOL=OFF
|
2016-10-02 15:10:35 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2018-01-24 15:35:01 -08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/gflags)
|
2016-10-02 15:10:35 +03:00
|
|
|
|
2016-10-27 14:14:42 -07:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-05-06 23:33:59 +03:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2016-11-02 01:09:29 -04:00
|
|
|
|
2016-12-07 17:22:38 -05:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/gflags RENAME copyright)
|
2016-10-02 15:10:35 +03:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|