2017-11-27 02:28:16 +08:00
if ( VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" )
message ( FATAL_ERROR "${PORT} does not currently support UWP" )
endif ( )
2017-05-07 01:53:22 +08:00
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O g f l a g s / g f l a g s
2018-11-15 11:59:24 +08:00
R E F v 2 . 2 . 2
S H A 5 1 2 9 8 c 4 7 0 3 a a b 2 4 e 8 1 f e 5 5 1 f 7 8 3 1 a b 7 9 7 f b 7 3 d 0 f 7 d f c 5 1 6 a d d b 3 4 b 9 f f 6 d 0 9 1 4 e 5 f d 3 9 8 2 0 7 8 8 9 b 1 a e 5 5 5 b a c 0 3 9 5 3 7 b 1 d 4 6 7 7 0 6 7 d a e 4 0 3 b 6 4 9 0 3 5 7 7 0 7 8 d 9 9 c 1 b d b 4 4 7
2017-05-07 01:53:22 +08:00
H E A D _ R E F m a s t e r
2018-03-02 00:30:03 +08:00
P A T C H E S
2018-12-01 08:01:31 +08:00
0 0 0 1 - p a t c h - d i r . p a t c h # gflags was estimating a wrong relative path between the gflags-config.cmake file and the include path; "../.." goes from share/gflags/ to the triplet root
f i x _ c m a k e _ c o n f i g . p a t c h
2018-02-01 03:22:35 +08:00
)
2023-04-14 00:13:15 +08:00
vcpkg_cmake_configure (
2016-12-06 14:47:24 +08:00
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
2016-12-01 23:19:31 +08:00
O P T I O N S
2016-12-06 14:47:24 +08:00
- D G F L A G S _ R E G I S T E R _ B U I L D _ D I R : B O O L = O F F
- D G F L A G S _ R E G I S T E R _ I N S T A L L _ P R E F I X : B O O L = O F F
- D B U I L D _ g f l a g s _ n o t h r e a d s _ L I B : B O O L = O F F
2021-08-28 07:43:13 +08:00
- D G F L A G S _ U S E _ T A R G E T _ N A M E S P A C E : B O O L = O N
2018-03-13 00:16:43 +08:00
- D C M A K E _ D E B U G _ P O S T F I X = d
2016-10-02 20:10:35 +08:00
)
2023-04-14 00:13:15 +08:00
vcpkg_cmake_install ( )
vcpkg_cmake_config_fixup ( CONFIG_PATH lib/cmake/gflags )
2016-10-02 20:10:35 +08:00
2018-03-12 14:41:51 +08:00
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/bin ${ CURRENT_PACKAGES_DIR } /bin )
endif ( )
2016-10-28 05:14:42 +08:00
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/include )
2017-05-07 04:33:59 +08:00
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/share )
2016-11-02 13:09:29 +08:00
2021-08-28 07:43:13 +08:00
file ( INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" )
file ( INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" )
file ( INSTALL "${SOURCE_PATH}/COPYING.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright )
2016-10-02 20:10:35 +08:00
vcpkg_copy_pdbs ( )
2021-10-28 06:19:28 +08:00
vcpkg_fixup_pkgconfig ( )