aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/quirc
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/quirc
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/quirc')
-rw-r--r--vcpkg/ports/quirc/CMakeLists.txt27
-rw-r--r--vcpkg/ports/quirc/portfile.cmake25
-rw-r--r--vcpkg/ports/quirc/vcpkg.json17
3 files changed, 69 insertions, 0 deletions
diff --git a/vcpkg/ports/quirc/CMakeLists.txt b/vcpkg/ports/quirc/CMakeLists.txt
new file mode 100644
index 0000000..236b281
--- /dev/null
+++ b/vcpkg/ports/quirc/CMakeLists.txt
@@ -0,0 +1,27 @@
+cmake_minimum_required(VERSION 3.19)
+
+project(quirc C)
+
+add_library(quirc
+ lib/decode.c
+ lib/identify.c
+ lib/quirc.c
+ lib/version_db.c
+ lib/quirc.h
+)
+
+target_include_directories(quirc INTERFACE $<INSTALL_INTERFACE:include>)
+
+install(TARGETS quirc
+ EXPORT quirc-targets
+ RUNTIME DESTINATION bin
+ ARCHIVE DESTINATION lib
+ LIBRARY DESTINATION lib)
+
+install(FILES lib/quirc.h DESTINATION include)
+
+install(EXPORT quirc-targets
+ FILE quirc-config.cmake
+ NAMESPACE quirc::
+ DESTINATION share/quirc
+)
diff --git a/vcpkg/ports/quirc/portfile.cmake b/vcpkg/ports/quirc/portfile.cmake
new file mode 100644
index 0000000..c6ae60a
--- /dev/null
+++ b/vcpkg/ports/quirc/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO dlbeer/quirc
+ REF "v${VERSION}"
+ SHA512 0f694d16bc24012ef29a9aab8e48419bc7c346153ead3feed8e83845927f9683bb62b2e61c6872643f66b0c864c2e3c7e1a4ea4c657399b38cabfa687bedee82
+ HEAD_REF master
+)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_copy_pdbs()
+
+vcpkg_cmake_config_fixup()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/quirc/vcpkg.json b/vcpkg/ports/quirc/vcpkg.json
new file mode 100644
index 0000000..f4790bd
--- /dev/null
+++ b/vcpkg/ports/quirc/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "quirc",
+ "version": "1.2",
+ "description": "quirc is one of the C library available for scanning QR Codes",
+ "homepage": "https://github.com/dlbeer/quirc",
+ "license": null,
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}