mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 13:11:39 +08:00
95e8384126
* Bump to 1.4.0 * x-add-version
37 lines
999 B
CMake
37 lines
999 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO zxing-cpp/zxing-cpp
|
|
REF v1.4.0
|
|
SHA512 05c5b9282f13b76fa0897b21e5b73cb7df0c52e62f1a2d9760fe774aa0378fde97f5f9896690b65b28b4b96ba6ad2703bed53ffaf9d3784636d29cbe860d4bad
|
|
HEAD_REF master
|
|
)
|
|
|
|
if (VCPKG_TARGET_IS_UWP)
|
|
set(ENV{CL} "$ENV{CL} -wd4996")
|
|
endif()
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DBUILD_BLACKBOX_TESTS=OFF
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DBUILD_SYSTEM_DEPS=ALWAYS
|
|
MAYBE_UNUSED_VARIABLES
|
|
# Currently no dependencies, but this defends against future additions
|
|
BUILD_SYSTEM_DEPS
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(
|
|
CONFIG_PATH lib/cmake/ZXing
|
|
PACKAGE_NAME ZXing
|
|
)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/nu-book-zxing-cpp" RENAME copyright)
|