2018-02-24 18:26:31 +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 r t t r o r g / r t t r
2019-03-23 00:59:08 +08:00
R E F v 0 . 9 . 6
S H A 5 1 2 5 c 9 4 f 0 3 7 b 3 1 9 5 6 8 d 3 5 1 e e 6 d 2 5 f 1 4 0 4 a d c e 0 0 b 4 0 5 9 8 d c e 4 a 3 3 1 7 8 9 d 5 3 5 7 c 0 5 9 e 5 0 a a e 3 8 9 4 f 9 0 e 6 0 d 3 7 3 0 7 b 7 e 9 6 f 4 6 7 2 a e 0 9 d 3 7 9 8 b b e 4 7 f 7 9 6 e f 2 0 4 4 f 1 a c 6 f 9 e 5 0
2018-02-24 18:26:31 +08:00
H E A D _ R E F m a s t e r
2017-10-27 09:33:17 +08:00
P A T C H E S
2018-10-24 01:43:54 +08:00
f i x - d i r e c t o r y - o u t p u t . p a t c h
2019-12-21 04:15:14 +08:00
F i x - d e p e n d s . p a t c h
r e m o v e - o w n e r - r e a d - p e r m s . p a t c h
2017-05-23 03:10:20 +08:00
)
2022-05-17 02:39:42 +08:00
if ( "${VCPKG_LIBRARY_LINKAGE}" STREQUAL "static" AND "${VCPKG_CRT_LINKAGE}" STREQUAL "static" )
set ( BUILD_STATIC ON )
set ( BUILD_RTTR_DYNAMIC OFF )
set ( BUILD_WITH_STATIC_RUNTIME_LIBS OFF )
elseif ( "${VCPKG_LIBRARY_LINKAGE}" STREQUAL "dynamic" AND "${VCPKG_CRT_LINKAGE}" STREQUAL "static" )
set ( BUILD_STATIC OFF )
set ( BUILD_RTTR_DYNAMIC OFF )
set ( BUILD_WITH_STATIC_RUNTIME_LIBS ON )
elseif ( "${VCPKG_LIBRARY_LINKAGE}" STREQUAL "dynamic" AND "${VCPKG_CRT_LINKAGE}" STREQUAL "dynamic" )
set ( BUILD_STATIC OFF )
set ( BUILD_RTTR_DYNAMIC ON )
set ( BUILD_WITH_STATIC_RUNTIME_LIBS OFF )
2019-07-23 01:37:38 +08:00
else ( )
2022-05-17 02:39:42 +08:00
message ( FATAL_ERROR "rttr's build system does not support this configuration: VCPKG_LIBRARY_LINKAGE: ${VCPKG_LIBRARY_LINKAGE} VCPKG_CRT_LINKAGE: ${VCPKG_CRT_LINKAGE}" )
2019-07-23 01:37:38 +08:00
endif ( )
2022-05-17 02:39:42 +08:00
vcpkg_cmake_configure (
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 B U I L D _ B E N C H M A R K S = O F F
- D B U I L D _ U N I T _ T E S T S = O F F
- D B U I L D _ E X A M P L E S = O F F
- D B U I L D _ D O C U M E N T A T I O N = O F F
- D B U I L D _ S T A T I C = $ { B U I L D _ S T A T I C }
- D B U I L D _ R T T R _ D Y N A M I C = $ { B U I L D _ R T T R _ D Y N A M I C }
- D B U I L D _ W I T H _ S T A T I C _ R U N T I M E _ L I B S = $ { B U I L D _ W I T H _ S T A T I C _ R U N T I M E _ L I B S }
2017-05-23 03:10:20 +08:00
)
2022-05-17 02:39:42 +08:00
vcpkg_cmake_install ( )
2017-05-23 03:10:20 +08:00
2022-05-17 02:39:42 +08:00
if ( VCPKG_TARGET_IS_WINDOWS )
vcpkg_cmake_config_fixup ( CONFIG_PATH cmake )
2019-03-23 00:59:08 +08:00
else ( )
2022-05-17 02:39:42 +08:00
vcpkg_cmake_config_fixup ( CONFIG_PATH share/rttr/cmake )
2019-07-23 01:37:38 +08:00
endif ( )
2022-05-17 02:39:42 +08:00
file ( INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright )
2017-05-23 03:10:20 +08:00
file ( REMOVE_RECURSE
2022-05-17 02:39:42 +08:00
" $ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / i n c l u d e "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / s h a r e "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / R E A D M E . m d "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / L I C E N S E . t x t "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / L I C E N S E . t x t "
" $ { C U R R E N T _ P A C K A G E S _ D I R } / R E A D M E . m d "
2017-05-23 03:10:20 +08:00
)