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
t o o l s I N S T A L L _ T O O L S
)
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
R E F 5 9 0 2 6 5 7 7 3 4 e 2 a 7 9 6 a 5 1 4 7 3 1 e 0 f d 0 e 8 0 0 8 1 a e 4 3 d c
S H A 5 1 2 8 9 4 5 8 7 4 8 c c f 7 e 0 0 e 2 e 1 2 a 1 0 2 6 e 7 c 4 1 0 9 9 2 9 8 d f b 6 d 0 d a a f 8 8 5 f 5 2 b 9 8 c 8 4 e 8 3 3 a 4 4 0 7 e 9 9 7 d d 3 a 5 b 9 2 d 5 6 e d e 4 9 5 e f 4 3 1 3 2 5 a 4 b 2 2 8 c 2 d 8 1 5 9 8 b d e 0 8 2 1 4 1 3 3 9 b 1 6 6 8 4
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 )