mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 21:09:02 +08:00
39d0da3a71
* update HEXL v1.2 * added x-add-version output * rename intel-hexl to hexl * update x-add-version output * update homepage * Update version database * update portfile * update portfile * add find GIT * Update version database * Update ports/hexl/portfile.cmake * use MSBUILD for Windows * Update version database * set generator * Update version database * update typo * Update version database * Fix build error * Update ports/hexl/portfile.cmake * Re-fix the dependencies * update hexl version * Update version database * locate git, remove unused file * Update version database * update version, add dependency * update dependency * Update version database * update HEXL to 1.2.1 * Update version database * Fix version database. Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
39 lines
1.1 KiB
CMake
39 lines
1.1 KiB
CMake
# This library only supports "x64" architecture
|
|
vcpkg_fail_port_install(ON_ARCH "x86" "arm" "arm64")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO intel/hexl
|
|
REF df6c26fdd2f2752e2bfa17981be113ff32946375
|
|
SHA512 c4353410091b019dad05326818d66bc74b438a26ec28192da20f13581781556b7aad11c3e9c2c2c9ed7ec66bc422152e2a2811206109b39939f30c91952ef765
|
|
HEAD_REF 1.2.1
|
|
)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
set(HEXL_SHARED OFF)
|
|
else()
|
|
set(HEXL_SHARED ON)
|
|
endif()
|
|
|
|
vcpkg_find_acquire_program(GIT)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS
|
|
"-DHEXL_BENCHMARK=OFF"
|
|
"-DHEXL_COVERAGE=OFF"
|
|
"-DHEXL_TESTING=OFF"
|
|
"-DHEXL_SHARED_LIB=${HEXL_SHARED}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "HEXL" CONFIG_PATH "lib/cmake/hexl-1.2.1")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|
|
|
|
vcpkg_copy_pdbs()
|