mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[roaring] Add new port (#5643)
* [roaring] Add new port * [roaring] Add a warning for 32-bit build
This commit is contained in:
parent
98e6be36c8
commit
fe419b2890
3
ports/roaring/CONTROL
Normal file
3
ports/roaring/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: roaring
|
||||
Version: 2019-03-05-1
|
||||
Description: A better compressed bitset in C (and C++)
|
37
ports/roaring/portfile.cmake
Normal file
37
ports/roaring/portfile.cmake
Normal file
@ -0,0 +1,37 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
if (TARGET_TRIPLET MATCHES "^x86")
|
||||
message(WARNING "The CRoaring authors recommend users of this lib against using a 32-bit build.")
|
||||
endif ()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO RoaringBitmap/CRoaring
|
||||
REF ac3eaf56af8691374b63e53e842feff0322169f0
|
||||
SHA512 db10331559df1503bcd25f7f5cab1fdf6b29984634dbfd54289cd7750032a1dd25cd0b57b490cac3d0d3fd5bc785730617536a7162c6e59f66fadb77f972b1c4
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ROARING_BUILD_STATIC)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DROARING_BUILD_STATIC=${ROARING_BUILD_STATIC}
|
||||
-DENABLE_ROARING_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Handle copyright
|
||||
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
||||
|
||||
# CMake integration test
|
||||
vcpkg_test_cmake(PACKAGE_NAME ${PORT})
|
Loading…
x
Reference in New Issue
Block a user