mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 16:00:25 +08:00
ccd2cf07cf
* Updated ports/seal and ports/apsi. * Updated versioning.
39 lines
1.0 KiB
CMake
39 lines
1.0 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
if("hexl" IN_LIST FEATURES)
|
|
vcpkg_fail_port_install(ON_ARCH "x86" "arm" "arm64")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO microsoft/APSI
|
|
REF 7fbeefbd42f4884da95073d40de22ba46fc0f1f5
|
|
SHA512 dfa4b7571b355646004d5b8823f250b56cda6e84d348a6a013f45fbf5c119e49bda28ac8a75f8ec06738814c50e34e66805994c7bc780ddfd57cc2067ffa745a
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
log4cplus APSI_USE_LOG4CPLUS
|
|
zeromq APSI_USE_ZMQ
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS
|
|
"-DAPSI_BUILD_TESTS=OFF"
|
|
"-DAPSI_BUILD_CLI=OFF"
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "APSI" CONFIG_PATH "lib/cmake/APSI-0.3")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|
|
|
|
vcpkg_copy_pdbs()
|