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 (
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-01-10 16:26:56 +02:00
R E F v 2 . 2 . 1
S H A 5 1 2 e 9 1 9 c b d c f f 1 f 9 9 3 d d b f a 9 c 0 6 d 8 e 5 9 5 5 6 6 a 4 7 1 7 c 2 7 f f 6 2 f 3 8 8 a 6 4 c 0 e 6 b 4 6 8 3 a 9 3 2 1 1 c 2 4 c e 7 8 4 8 5 e a e 8 4 c 2 c 7 6 0 5 3 3 4 1 5 7 4 0 6 4 e 6 c 5 6 a f 1 8 5 f c 2 7 8 2 e 2 8 1 6 b 2 6 e 1 f c 9
2017-05-06 20:53:22 +03:00
H E A D _ R E F m a s t e r
)
2016-12-01 10:19:31 -05:00
2018-01-31 11:22:35 -08:00
vcpkg_apply_patches (
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
2018-03-01 17:30:03 +01:00
P A T C H E S
$ { C M A K E _ C U R R E N T _ L I S T _ D I R } / 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
2018-01-31 11:22:35 -08:00
)
2016-10-02 15:10:35 +03:00
vcpkg_configure_cmake (
2016-12-05 22:47:24 -08:00
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
2017-05-06 23:33:59 +03:00
P R E F E R _ N I N J A
2016-12-01 10:19:31 -05:00
O P T I O N S
2016-12-05 22: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
2018-03-12 19:16:43 +03:00
- D C M A K E _ D E B U G _ P O S T F I X = d
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
2018-03-11 23:41:51 -07:00
if ( VCPKG_LIBRARY_LINKAGE STREQUAL "static" )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/bin ${ CURRENT_PACKAGES_DIR } /bin )
endif ( )
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 ( )