mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 22:09:06 +08:00
b4f71b8f2f
* Update to arrow-1.0.0. Fix FindZSTD and FindUtf8Proc. * Re-enable warning-as-error on MSVC. * Fix static/shared mismatch when linking against utf8proc * Trying to fix Zstd detection on Linux. * Fix Linux detection of Zstd static libraries * Remove unnecessary patch * Fix MSVC compilation now that ZSTD is specified as static. * Update patches to match candidate ARROW-9541 upstream patch. * Update patch reflecting the latest changes in ARROW-9541 PR. * Trying to fix OSX build by re-adding a patch I previously removed
66 lines
2.1 KiB
CMake
66 lines
2.1 KiB
CMake
vcpkg_fail_port_install(ON_ARCH "x86" "arm" "arm64")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO apache/arrow
|
|
REF apache-arrow-1.0.0
|
|
SHA512 cfbe22a7987658cce15f83c3be50435567f2b8156fa50007ae103418b969c6075dbf2858c25787a40feb391e84075905dd045300beb7fcedf4344823f8c4be20
|
|
HEAD_REF master
|
|
PATCHES
|
|
all.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} "dynamic" ARROW_BUILD_SHARED)
|
|
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} "static" ARROW_BUILD_STATIC)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
"csv" ARROW_CSV
|
|
"json" ARROW_JSON
|
|
"parquet" ARROW_PARQUET
|
|
"filesystem" ARROW_FILESYSTEM
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}/cpp
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DARROW_DEPENDENCY_SOURCE=SYSTEM
|
|
-Duriparser_SOURCE=SYSTEM
|
|
-DARROW_BUILD_TESTS=OFF
|
|
${FEATURE_OPTIONS}
|
|
-DARROW_BUILD_STATIC=${ARROW_BUILD_STATIC}
|
|
-DARROW_BUILD_SHARED=${ARROW_BUILD_SHARED}
|
|
-DARROW_BROTLI_USE_SHARED=${ARROW_BUILD_SHARED}
|
|
-DARROW_GFLAGS_USE_SHARED=${ARROW_BUILD_SHARED}
|
|
-DARROW_UTF8PROC_USE_SHARED=${ARROW_BUILD_SHARED}
|
|
-DARROW_ZSTD_USE_SHARED=${ARROW_BUILD_SHARED}
|
|
-DARROW_JEMALLOC=OFF
|
|
-DARROW_BUILD_UTILITIES=OFF
|
|
-DARROW_WITH_BZ2=ON
|
|
-DARROW_WITH_ZLIB=ON
|
|
-DARROW_WITH_ZSTD=ON
|
|
-DARROW_WITH_LZ4=ON
|
|
-DARROW_WITH_SNAPPY=ON
|
|
-DARROW_WITH_BROTLI=ON
|
|
-DARROW_WITH_UTF8PROC=ON
|
|
-DPARQUET_REQUIRE_ENCRYPTION=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/arrow_static.lib)
|
|
message(FATAL_ERROR "Installed lib file should be named 'arrow.lib' via patching the upstream build.")
|
|
endif()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/arrow)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|