2016-12-02 14:54:03 +08:00
include ( vcpkg_common_functions )
2017-03-08 10:04:52 +08:00
set ( SOURCE_PATH ${ CURRENT_BUILDTREES_DIR } /src/azure-storage-cpp-3.0.0 )
2016-12-02 14:54:03 +08:00
vcpkg_download_distfile ( ARCHIVE
2017-03-08 10:04:52 +08:00
U R L S " h t t p s : / / g i t h u b . c o m / A z u r e / a z u r e - s t o r a g e - c p p / a r c h i v e / v 3 . 0 . 0 . t a r . g z "
F I L E N A M E " a z u r e - s t o r a g e - c p p / v 3 . 0 . 0 . t a r . g z "
S H A 5 1 2 4 5 d 0 d 7 f 8 c c 3 5 0 a 1 6 c f f 0 3 7 1 c d d 4 4 2 e 8 5 1 9 1 2 c 8 9 0 6 1 a c f e c 5 5 9 4 8 2 e 8 f 7 9 c e b a f f f d 8 6 8 1 b 3 2 a 3 0 b 8 7 8 e 3 2 9 2 3 5 c d 3 a a a d 5 d 2 f f 7 9 7 d 1 1 4 8 3 0 2 e 3 1 0 9 c f 5 1 1 1 d f 1 4 b 9 7
2016-12-02 14:54:03 +08:00
)
vcpkg_extract_source_archive ( ${ ARCHIVE } )
2017-04-08 02:46:59 +08:00
find_path ( ATLMFC_PATH NAMES "atlbase.h" )
if ( ATLMFC_PATH STREQUAL "ATLMFC_PATH-NOTFOUND" )
message ( FATAL_ERROR "Could not find ATL. Please ensure you have installed the \" Visual C++ ATL support\ " optional feature underneath the Desktop C++ workload." )
endif ( )
2016-12-02 14:54:03 +08:00
vcpkg_apply_patches (
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
P A T C H E S
2017-04-08 06:38:04 +08:00
$ { C M A K E _ C U R R E N T _ L I S T _ D I R } / c m a k e . p a t c h
2017-04-08 06:15:49 +08:00
$ { C M A K E _ C U R R E N T _ L I S T _ D I R } / s t a t i c - b u i l d s . p a t c h
2016-12-02 14:54:03 +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 } / M i c r o s o f t . W i n d o w s A z u r e . S t o r a g e
O P T I O N S
- D B U I L D _ T E S T S = O F F
- D B U I L D _ S A M P L E S = O F F
)
vcpkg_install_cmake ( )
file ( INSTALL
$ { S O U R C E _ P A T H } / L I C E N S E . t x t
D E S T I N A T I O N $ { C U R R E N T _ P A C K A G E S _ D I R } / s h a r e / a z u r e - s t o r a g e - c p p R E N A M E c o p y r i g h t )
file ( REMOVE_RECURSE
$ { 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 )
vcpkg_copy_pdbs ( )