aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/nu-book-zxing-cpp
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/nu-book-zxing-cpp
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/nu-book-zxing-cpp')
-rw-r--r--vcpkg/ports/nu-book-zxing-cpp/portfile.cmake33
-rw-r--r--vcpkg/ports/nu-book-zxing-cpp/vcpkg.json17
2 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/nu-book-zxing-cpp/portfile.cmake b/vcpkg/ports/nu-book-zxing-cpp/portfile.cmake
new file mode 100644
index 0000000..5cc46fc
--- /dev/null
+++ b/vcpkg/ports/nu-book-zxing-cpp/portfile.cmake
@@ -0,0 +1,33 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO zxing-cpp/zxing-cpp
+ REF "v${VERSION}"
+ SHA512 be1c60a6b433c18f8dab56619553023370bfd3eddf49b0e16548466e1ebc2f1f37b48e0b36c2e74296a7274c4f0117d7052f1ffd7d1223d23e493451a11b4a80
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_fixup_pkgconfig()
+
+vcpkg_cmake_config_fixup(
+ CONFIG_PATH lib/cmake/ZXing
+ PACKAGE_NAME ZXing
+)
+
+file(READ "${CURRENT_PACKAGES_DIR}/share/ZXing/ZXingConfig.cmake" _contents)
+file(WRITE "${CURRENT_PACKAGES_DIR}/share/ZXing/ZXingConfig.cmake" "
+include(CMakeFindDependencyMacro)
+find_dependency(Threads)
+${_contents}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/nu-book-zxing-cpp/vcpkg.json b/vcpkg/ports/nu-book-zxing-cpp/vcpkg.json
new file mode 100644
index 0000000..8788eb2
--- /dev/null
+++ b/vcpkg/ports/nu-book-zxing-cpp/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "nu-book-zxing-cpp",
+ "version": "2.3.0",
+ "description": "Barcode detection and decoding library.",
+ "homepage": "https://github.com/zxing-cpp/zxing-cpp",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}