fastqr 1.0.24 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af1932a2051445111bc7aa7ed3ec23d1b4dd9f24c1a0c442858f5575b7ae0250
4
- data.tar.gz: b705519da79543107c186ec5799773b3cbc455fff38ad2ed5732df7f33d24dcc
3
+ metadata.gz: 457b98912e41a7810a0f8c3d8f22965b517c6da7fb8bbe2ed06b969eda990603
4
+ data.tar.gz: '063209c0e1f36e15b709dcf5129dd2902a48de17a4b57967791aea9e9924122b'
5
5
  SHA512:
6
- metadata.gz: 4f772588dd5e1a9bacff65fdfd658a392328a269ee7bfced9ba33df4c851380848152c1a08162854ae8a78e4896e390835ae93ab100011b329e6b53f058c3062
7
- data.tar.gz: 9635ed0e8e63879e2572bc53c702869394e6e2277b02cde4fe801f17ac55854500030d1e9afb1a0ed934918f5d7fd276286dea201a62e17dcfa9e281de1db346
6
+ metadata.gz: 150aeb0c727ccc4915b09d65c38bcf7afa5a25f766bae315830096402fef9915e8ee21a88503cbbb94b24b843b9cead04e2aee178c5eddc2be7528e57555483c
7
+ data.tar.gz: 3799f1bd5ea39d4daadb353874a122b3184c85e9294f082629ae8b90cbe90d4e85178d48874c8ff0d8c8a3cabf0b17c1cd8547b12b479ff4760e074d54977017
data/CMakeLists.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  cmake_minimum_required(VERSION 3.15)
2
- project(fastqr VERSION 1.0.24 LANGUAGES CXX C)
2
+ project(fastqr VERSION 1.0.26 LANGUAGES CXX C)
3
3
 
4
4
  set(CMAKE_CXX_STANDARD 14)
5
5
  set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -88,12 +88,12 @@ if(NOT BUILD_SHARED_LIBS)
88
88
  # Add PNG library directories to search path
89
89
  link_directories(${PNG_LIBRARY_DIRS})
90
90
 
91
- # Find static versions of libraries
91
+ # Find static versions of ALL libraries
92
92
  find_library(PNG_STATIC_LIBRARY
93
93
  NAMES libpng.a libpng16.a
94
94
  PATHS
95
- ${PNG_LIBRARY_DIRS}
96
95
  /usr/local/lib
96
+ ${PNG_LIBRARY_DIRS}
97
97
  /opt/homebrew/lib
98
98
  /usr/lib
99
99
  NO_DEFAULT_PATH
@@ -102,55 +102,52 @@ if(NOT BUILD_SHARED_LIBS)
102
102
  find_library(QRENCODE_STATIC_LIBRARY
103
103
  NAMES libqrencode.a
104
104
  PATHS
105
- /usr/local/lib # Linux: from source build
105
+ /usr/local/lib
106
106
  ${QRENCODE_LIBRARY_DIRS}
107
- /opt/homebrew/lib # macOS: from Homebrew
107
+ /opt/homebrew/lib
108
108
  /usr/lib
109
109
  NO_DEFAULT_PATH
110
110
  )
111
111
 
112
- if(PNG_STATIC_LIBRARY AND QRENCODE_STATIC_LIBRARY)
112
+ find_library(ZLIB_STATIC_LIBRARY
113
+ NAMES libz.a
114
+ PATHS
115
+ /usr/local/lib
116
+ /opt/homebrew/lib
117
+ /opt/homebrew/opt/zlib/lib
118
+ /usr/lib
119
+ /usr/lib/x86_64-linux-gnu
120
+ /usr/lib/aarch64-linux-gnu
121
+ NO_DEFAULT_PATH
122
+ )
123
+
124
+ if(PNG_STATIC_LIBRARY AND QRENCODE_STATIC_LIBRARY AND ZLIB_STATIC_LIBRARY)
113
125
  message(STATUS "✓ Found static libpng: ${PNG_STATIC_LIBRARY}")
114
126
  message(STATUS "✓ Found static libqrencode: ${QRENCODE_STATIC_LIBRARY}")
127
+ message(STATUS "✓ Found static libz: ${ZLIB_STATIC_LIBRARY}")
115
128
 
116
- # Link CLI directly with object library + static libs (no dependency propagation)
129
+ # Link CLI directly with object library + static libs ONLY
117
130
  target_link_libraries(fastqr-cli
118
131
  PRIVATE
119
132
  fastqr_obj
120
133
  ${QRENCODE_STATIC_LIBRARY}
121
134
  ${PNG_STATIC_LIBRARY}
122
- z # zlib is needed by libpng
135
+ ${ZLIB_STATIC_LIBRARY}
123
136
  )
124
-
125
- # On Linux, ensure full static linking
137
+
138
+ # On Linux, ensure FULL static linking (no GLIBC dependency)
126
139
  if(UNIX AND NOT APPLE)
127
- # Try to link everything statically on Linux
128
140
  target_link_options(fastqr-cli PRIVATE
129
- -static-libgcc
130
- -static-libstdc++
141
+ -static
131
142
  )
132
-
133
- # Also find static libz if possible
134
- find_library(ZLIB_STATIC_LIBRARY
135
- NAMES libz.a
136
- PATHS
137
- /usr/local/lib
138
- /usr/lib
139
- /usr/lib/x86_64-linux-gnu
140
- /usr/lib/aarch64-linux-gnu
141
- NO_DEFAULT_PATH
142
- )
143
-
144
- if(ZLIB_STATIC_LIBRARY)
145
- message(STATUS "✓ Found static libz: ${ZLIB_STATIC_LIBRARY}")
146
- # Replace z with static version
147
- target_link_libraries(fastqr-cli PRIVATE ${ZLIB_STATIC_LIBRARY})
148
- endif()
143
+ # Add pthread for static linking (required by libstdc++ and libqrencode)
144
+ target_link_libraries(fastqr-cli PRIVATE pthread)
149
145
  endif()
150
146
  else()
151
147
  message(WARNING "Static libraries not found, falling back to dynamic linking")
152
148
  message(WARNING " libpng: ${PNG_STATIC_LIBRARY}")
153
149
  message(WARNING " libqrencode: ${QRENCODE_STATIC_LIBRARY}")
150
+ message(WARNING " libz: ${ZLIB_STATIC_LIBRARY}")
154
151
 
155
152
  target_link_libraries(fastqr-cli
156
153
  PRIVATE fastqr
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.24
1
+ 1.0.26
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastqr-pro",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "Fast QR code generator with UTF-8 support, custom colors, logo embedding, and precise size control",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastQR
4
- VERSION = "1.0.24"
4
+ VERSION = "1.0.26"
5
5
  end
6
6
 
data/src/fastqr.cpp CHANGED
@@ -31,7 +31,7 @@
31
31
  #include <algorithm>
32
32
  #include <cstdio>
33
33
 
34
- #define FASTQR_VERSION "1.0.24"
34
+ #define FASTQR_VERSION "1.0.26"
35
35
 
36
36
  namespace fastqr {
37
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastqr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.24
4
+ version: 1.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - FastQR Project