mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
38 lines
1.1 KiB
CMake
38 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/snappy
|
|
REF ${VERSION}
|
|
SHA512 e7290d79ddd45605aafd02cba9eaa32309c94af04f137552a97a915c391f185dccab9b7b21a01b28f3f446be420232c3c22d91c06e0be6e1e2e32d645174798c
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix_clang-cl_build.patch
|
|
no-werror.patch
|
|
pkgconfig.diff
|
|
)
|
|
file(COPY "${CURRENT_PORT_DIR}/snappy.pc.in" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DSNAPPY_BUILD_TESTS=OFF
|
|
-DSNAPPY_BUILD_BENCHMARKS=OFF
|
|
|
|
# These variables can be overriden in a custom triplet, see usage file
|
|
-DSNAPPY_HAVE_SSSE3=OFF
|
|
-DSNAPPY_HAVE_X86_CRC32=OFF
|
|
-DSNAPPY_HAVE_NEON_CRC32=OFF
|
|
-DSNAPPY_HAVE_BMI2=OFF
|
|
-DSNAPPY_HAVE_NEON=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Snappy)
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|