fastqr 1.0.24 → 1.0.25

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: '08d585e67100578345b5674f927112bd3952112da22087488b3ce322d804dd74'
4
+ data.tar.gz: 83b738da76c1b9ff2eed8c7fc76a170a8959c4afb19847d65b62bfd164a7a6ce
5
5
  SHA512:
6
- metadata.gz: 4f772588dd5e1a9bacff65fdfd658a392328a269ee7bfced9ba33df4c851380848152c1a08162854ae8a78e4896e390835ae93ab100011b329e6b53f058c3062
7
- data.tar.gz: 9635ed0e8e63879e2572bc53c702869394e6e2277b02cde4fe801f17ac55854500030d1e9afb1a0ed934918f5d7fd276286dea201a62e17dcfa9e281de1db346
6
+ metadata.gz: 5deef00c5c5f9d310b8eadfc66f558e5b4686592b492c4cc2bdb9efaf4975a576284bcd143490aa26ec1156d53660402906e75803ab3c367846af2c3ba70bfaf
7
+ data.tar.gz: 046df632715d666378f65cab549b78e0046819bc0c4c23365602fdea5d1e143a748fb7219ca4f78cf254d36946d9509f5989c9dad6d4047e02406d4b799ad946
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.25 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,51 @@ 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
+ /usr/lib
109
+ NO_DEFAULT_PATH
110
+ )
111
+
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
108
118
  /usr/lib
119
+ /usr/lib/x86_64-linux-gnu
120
+ /usr/lib/aarch64-linux-gnu
109
121
  NO_DEFAULT_PATH
110
122
  )
111
123
 
112
- if(PNG_STATIC_LIBRARY AND QRENCODE_STATIC_LIBRARY)
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
137
 
125
138
  # On Linux, ensure full static linking
126
139
  if(UNIX AND NOT APPLE)
127
- # Try to link everything statically on Linux
128
140
  target_link_options(fastqr-cli PRIVATE
129
141
  -static-libgcc
130
142
  -static-libstdc++
131
143
  )
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()
149
144
  endif()
150
145
  else()
151
146
  message(WARNING "Static libraries not found, falling back to dynamic linking")
152
147
  message(WARNING " libpng: ${PNG_STATIC_LIBRARY}")
153
148
  message(WARNING " libqrencode: ${QRENCODE_STATIC_LIBRARY}")
149
+ message(WARNING " libz: ${ZLIB_STATIC_LIBRARY}")
154
150
 
155
151
  target_link_libraries(fastqr-cli
156
152
  PRIVATE fastqr
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.24
1
+ 1.0.25
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastqr-pro",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
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.25"
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.25"
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.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - FastQR Project