fastqr 1.0.10 → 1.0.11

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: 8c8da6700425b86beecd6243cae158af79644a0dcda10be631ee7edfbe7b4e82
4
- data.tar.gz: c1d1e682923888db3ebe3486afb88e2f1b5e1b98531d5f85024a5faa63a565a4
3
+ metadata.gz: cecb54f8189d6e136d9543e962a0e3c2852145fc35fd94f3a0a6615ebd95fa60
4
+ data.tar.gz: dbd35fdf0763e4792d96ca1ea5dceaa191e54b468d788ca00164224577cc7715
5
5
  SHA512:
6
- metadata.gz: 25a814734cc21e75ffa16c883d82d5800eb0bc0e43267b35bd19da2121b5a8e0cf82fdeb3db0219355765a6e5476529f98b884b481b75a0e9a176ff6421d9b9e
7
- data.tar.gz: 7c68d84521eff5ee6eb234a9d29153924978935a53b8bf27f3fe2adc50cc6140870c1de46e788797cbdc2d9ec8dad3bd690b7dd8db5c43b5e8c3c1e57129406b
6
+ metadata.gz: c8e8967e977ebc246706b41848ef042b142d69370c136899a7959fa978a4c244c16894e3d22def54583f65fe432365bc758ed522d6b3b85b25519232cffadd67
7
+ data.tar.gz: 640f00a79e52a95f836b2b69e56ab106466ebcafa10c0dfb90096714c61a2abd95d1c3adf131a0f3c8b7f27b55ebf05ca701baa0c93d043a2cf831ae8583365c
data/CMakeLists.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  cmake_minimum_required(VERSION 3.15)
2
- project(fastqr VERSION 1.0.10 LANGUAGES CXX C)
2
+ project(fastqr VERSION 1.0.11 LANGUAGES CXX C)
3
3
 
4
4
  set(CMAKE_CXX_STANDARD 14)
5
5
  set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -28,12 +28,12 @@ pkg_check_modules(QRENCODE REQUIRED libqrencode)
28
28
  # Add library directories
29
29
  link_directories(${QRENCODE_LIBRARY_DIRS})
30
30
 
31
- # Main library
32
- add_library(fastqr
31
+ # Object library for internal use (no linking yet)
32
+ add_library(fastqr_obj OBJECT
33
33
  src/fastqr.cpp
34
34
  )
35
35
 
36
- target_include_directories(fastqr
36
+ target_include_directories(fastqr_obj
37
37
  PUBLIC
38
38
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
39
39
  $<INSTALL_INTERFACE:include>
@@ -42,6 +42,22 @@ target_include_directories(fastqr
42
42
  ${PNG_INCLUDE_DIRS}
43
43
  )
44
44
 
45
+ target_compile_options(fastqr_obj
46
+ PRIVATE
47
+ ${QRENCODE_CFLAGS_OTHER}
48
+ )
49
+
50
+ # Main library (for install and linking by other projects)
51
+ add_library(fastqr
52
+ $<TARGET_OBJECTS:fastqr_obj>
53
+ )
54
+
55
+ target_include_directories(fastqr
56
+ PUBLIC
57
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
58
+ $<INSTALL_INTERFACE:include>
59
+ )
60
+
45
61
  target_link_directories(fastqr
46
62
  PRIVATE
47
63
  ${QRENCODE_LIBRARY_DIRS}
@@ -53,11 +69,6 @@ target_link_libraries(fastqr
53
69
  PNG::PNG
54
70
  )
55
71
 
56
- target_compile_options(fastqr
57
- PRIVATE
58
- ${QRENCODE_CFLAGS_OTHER}
59
- )
60
-
61
72
  # Set library output name
62
73
  set_target_properties(fastqr PROPERTIES
63
74
  VERSION ${PROJECT_VERSION}
@@ -70,9 +81,56 @@ add_executable(fastqr-cli
70
81
  src/cli.cpp
71
82
  )
72
83
 
73
- target_link_libraries(fastqr-cli
74
- PRIVATE fastqr
75
- )
84
+ # For standalone CLI binary, link with object library and static dependencies
85
+ if(NOT BUILD_SHARED_LIBS)
86
+ # Find static versions of libraries
87
+ find_library(PNG_STATIC_LIBRARY
88
+ NAMES libpng.a libpng16.a
89
+ PATHS
90
+ ${PNG_LIBRARY_DIRS}
91
+ /usr/local/lib
92
+ /opt/homebrew/lib
93
+ /usr/lib
94
+ NO_DEFAULT_PATH
95
+ )
96
+
97
+ find_library(QRENCODE_STATIC_LIBRARY
98
+ NAMES libqrencode.a
99
+ PATHS
100
+ ${QRENCODE_LIBRARY_DIRS}
101
+ /usr/local/lib
102
+ /opt/homebrew/lib
103
+ /usr/lib
104
+ NO_DEFAULT_PATH
105
+ )
106
+
107
+ if(PNG_STATIC_LIBRARY AND QRENCODE_STATIC_LIBRARY)
108
+ message(STATUS "✓ Found static libpng: ${PNG_STATIC_LIBRARY}")
109
+ message(STATUS "✓ Found static libqrencode: ${QRENCODE_STATIC_LIBRARY}")
110
+
111
+ # Link CLI directly with object library + static libs (no dependency propagation)
112
+ target_link_libraries(fastqr-cli
113
+ PRIVATE
114
+ fastqr_obj
115
+ ${QRENCODE_STATIC_LIBRARY}
116
+ ${PNG_STATIC_LIBRARY}
117
+ z # zlib is needed by libpng
118
+ )
119
+ else()
120
+ message(WARNING "Static libraries not found, falling back to dynamic linking")
121
+ message(WARNING " libpng: ${PNG_STATIC_LIBRARY}")
122
+ message(WARNING " libqrencode: ${QRENCODE_STATIC_LIBRARY}")
123
+
124
+ target_link_libraries(fastqr-cli
125
+ PRIVATE fastqr
126
+ )
127
+ endif()
128
+ else()
129
+ # Shared library build
130
+ target_link_libraries(fastqr-cli
131
+ PRIVATE fastqr
132
+ )
133
+ endif()
76
134
 
77
135
  set_target_properties(fastqr-cli PROPERTIES
78
136
  OUTPUT_NAME fastqr
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.10
1
+ 1.0.11
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastqr-pro",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
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.10"
4
+ VERSION = "1.0.11"
5
5
  end
6
6
 
data/src/fastqr.cpp CHANGED
@@ -25,7 +25,7 @@
25
25
  // Enable benchmarking
26
26
  // #define FASTQR_BENCHMARK
27
27
 
28
- #define FASTQR_VERSION "1.0.10"
28
+ #define FASTQR_VERSION "1.0.11"
29
29
 
30
30
  namespace fastqr {
31
31
 
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.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - FastQR Project