2020-04-15 08:20:24 +08:00
vcpkg_fail_port_install ( ON_TARGET "UWP" )
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
2021-06-25 04:04:17 +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
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
2020-08-19 07:41:19 +08:00
0 0 0 2 - d i s a b l e - w a r i n g - 4 0 6 5 . p a t c h
2020-04-15 08:20:24 +08:00
)
vcpkg_configure_cmake (
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
P R E F E R _ N I N J A
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
)
vcpkg_install_cmake ( )
if ( IS_DIRECTORY ${ CURRENT_PACKAGES_DIR } /tools/boringssl )
vcpkg_copy_tool_dependencies ( "${CURRENT_PACKAGES_DIR}/tools/boringssl" )
endif ( )
file ( INSTALL ${ SOURCE_PATH } /LICENSE DESTINATION ${ CURRENT_PACKAGES_DIR } /share/ ${ PORT } RENAME copyright )