early-access version 2853
This commit is contained in:
12
externals/vcpkg/ports/nu-book-zxing-cpp/ignore-pdb-install-symbols-in-lib.patch
vendored
Executable file
12
externals/vcpkg/ports/nu-book-zxing-cpp/ignore-pdb-install-symbols-in-lib.patch
vendored
Executable file
@@ -0,0 +1,12 @@
|
||||
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
|
||||
index 7a2db60..17e0a52 100644
|
||||
--- a/core/CMakeLists.txt
|
||||
+++ b/core/CMakeLists.txt
|
||||
@@ -474,7 +474,4 @@ if(MSVC)
|
||||
set_target_properties(ZXing PROPERTIES
|
||||
COMPILE_PDB_NAME ZXing
|
||||
COMPILE_PDB_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ZXing.pdb
|
||||
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- CONFIGURATIONS Debug RelWithDebInfo)
|
||||
endif()
|
||||
37
externals/vcpkg/ports/nu-book-zxing-cpp/portfile.cmake
vendored
Executable file
37
externals/vcpkg/ports/nu-book-zxing-cpp/portfile.cmake
vendored
Executable file
@@ -0,0 +1,37 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO nu-book/zxing-cpp
|
||||
REF v1.2.0
|
||||
SHA512 e61b4e44ccaf0871b5d8badf9ce0a81576f55e5d6a9458907b9b599a66227adceabb8d51a0c47b32319d8aeff93e758b4785d3bd0440375247471d95999de487
|
||||
HEAD_REF master
|
||||
PATCHES ignore-pdb-install-symbols-in-lib.patch
|
||||
)
|
||||
|
||||
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)
|
||||
18
externals/vcpkg/ports/nu-book-zxing-cpp/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/nu-book-zxing-cpp/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "nu-book-zxing-cpp",
|
||||
"version": "1.2.0",
|
||||
"description": "Barcode detection and decoding library.",
|
||||
"homepage": "https://github.com/nu-book/zxing-cpp",
|
||||
"license": "Apache-2.0",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user