2020-04-15 08:20:24 +08:00
if ( EXISTS "${CURRENT_INSTALLED_DIR}/include/openssl/ssl.h" )
2020-08-19 07:41:19 +08:00
message ( FATAL_ERROR "Can't build BoringSSL if OpenSSL is installed. Please remove OpenSSL, and try to install BoringSSL again if you need it. Build will continue since BoringSSL is a drop-in replacement for OpenSSL" )
2020-04-15 08:20:24 +08:00
endif ( )
vcpkg_find_acquire_program ( PERL )
get_filename_component ( PERL_EXE_PATH ${ PERL } DIRECTORY )
vcpkg_add_to_path ( ${ PERL_EXE_PATH } )
vcpkg_find_acquire_program ( NASM )
get_filename_component ( NASM_EXE_PATH ${ NASM } DIRECTORY )
vcpkg_add_to_path ( ${ NASM_EXE_PATH } )
vcpkg_find_acquire_program ( GO )
get_filename_component ( GO_EXE_PATH ${ GO } DIRECTORY )
vcpkg_add_to_path ( ${ GO_EXE_PATH } )
vcpkg_check_features ( OUT_FEATURE_OPTIONS FEATURE_OPTIONS
2021-06-25 04:04:17 +08:00
F E A T U R E S
t o o l s I N S T A L L _ T O O L S
2020-04-15 08:20:24 +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 o o g l e / b o r i n g s s l
2022-01-26 02:31:15 +08:00
R E F 4 7 9 a d f 9 8 d 5 4 a 2 1 c 1 d 1 5 4 a a c 5 9 b 2 c e 1 2 0 e 1 d 1 a 6 d 6
2021-06-25 04:04:17 +08:00
S H A 5 1 2 7 4 b 5 d 0 0 1 c 0 f 5 c 1 8 4 6 b 8 8 1 8 e 9 e 6 6 8 f a 3 5 d e 5 1 7 1 f c 2 1 a 8 f 7 1 3 d 2 4 1 f 5 7 b 3 e 8 a b e 4 2 4 2 6 f d c 6 6 b 0 8 5 c c a 1 8 5 3 b 9 0 4 d e f 6 f 4 b e a 5 7 3 d f e d 4 0 b 8 b 1 4 2 2 8 9 4 c c a 8 5 b 0 b 1 a 4 4 a
2020-04-15 08:20:24 +08:00
H E A D _ R E F m a s t e r
P A T C H E S
0 0 0 1 - v c p k g . p a t c h
2022-06-03 03:55:46 +08:00
0 0 0 2 - r e m o v e - W X - W e r r o r . p a t c h
2020-04-15 08:20:24 +08:00
)
2022-06-03 03:55:46 +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 } "
2020-04-15 08:20:24 +08:00
O P T I O N S
$ { F E A T U R E _ O P T I O N S }
O P T I O N S _ D E B U G
- D I N S T A L L _ H E A D E R S = O F F
- D I N S T A L L _ T O O L S = O F F
2023-05-18 00:21:23 +08:00
# the FindOpenSSL.cmake script differentiates debug and release binaries using this suffix.
- D C M A K E _ D E B U G _ P O S T F I X = d
2020-04-15 08:20:24 +08:00
)
2022-06-03 03:55:46 +08:00
vcpkg_cmake_install ( )
2023-05-18 00:21:23 +08:00
vcpkg_copy_pdbs ( )
2020-04-15 08:20:24 +08:00
2022-10-10 04:57:27 +08:00
include ( "${CMAKE_CURRENT_LIST_DIR}/install-pc-files.cmake" )
2023-05-18 00:21:23 +08:00
if ( IS_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/boringssl" )
2020-04-15 08:20:24 +08:00
vcpkg_copy_tool_dependencies ( "${CURRENT_PACKAGES_DIR}/tools/boringssl" )
endif ( )
2023-05-18 00:21:23 +08:00
file ( INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" )
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/LICENSE" )