2020-06-24 04:58:38 +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 S p a r t a n J / e f s w
2023-02-08 06:59:38 +08:00
R E F " $ { V E R S I O N } "
2024-06-06 15:03:55 +08:00
S H A 5 1 2 f 1 4 3 9 c 7 5 b 4 4 a c f a 9 3 a 3 4 c a e 2 1 e e 5 4 7 0 c f e a 5 a 4 7 5 e e b 6 c b c 8 3 f b e 8 e 3 9 7 6 7 b 7 c 7 2 a b c 3 7 9 6 0 d 8 5 1 8 4 c b 1 0 7 1 e 6 1 1 9 6 7 4 0 a e 7 6 4 9 b 8 6 2 8 8 f 1 6 4 f 9 2 7 d f 9 5 7 9 2 c 4 e c e 2 3 0
2020-06-24 04:58:38 +08:00
H E A D _ R E F m a s t e r
)
2024-06-06 15:03:55 +08:00
string ( COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" EFSW_BUILD_SHARED_LIB )
string ( COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" EFSW_BUILD_STATIC_LIB )
# efsw CMakeLists sets up two targets "efsw" and "efsw-static" where the former is static or shared depending on BUILD_SHARED_LIBS and the latter is always static
2023-01-11 05:52:27 +08:00
vcpkg_cmake_configure (
2020-06-24 04:58:38 +08:00
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
O P T I O N S
- D V E R B O S E = O F F
- D B U I L D _ T E S T _ A P P = O F F
2024-06-06 15:03:55 +08:00
- D B U I L D _ S H A R E D _ L I B S = $ { E F S W _ B U I L D _ S H A R E D _ L I B }
- D B U I L D _ S T A T I C _ L I B S = 0
2020-06-24 04:58:38 +08:00
)
2023-01-11 05:52:27 +08:00
vcpkg_cmake_install ( )
2020-06-24 04:58:38 +08:00
2023-01-11 05:52:27 +08:00
vcpkg_cmake_config_fixup ( CONFIG_PATH lib/cmake/efsw )
2020-06-24 04:58:38 +08:00
2023-02-08 06:59:38 +08:00
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
2020-06-24 04:58:38 +08:00
vcpkg_copy_pdbs ( )
2023-01-11 05:52:27 +08:00
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/LICENSE" )