fast_resize 1.0.1 → 1.0.2
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 +4 -4
- data/CMakeLists.txt +6 -3
- data/VERSION +1 -1
- data/bindings/ruby/ext/fastresize/extconf.rb +25 -0
- data/bindings/ruby/lib/fastresize/version.rb +1 -1
- data/bindings/ruby/prebuilt/linux-aarch64/bin/fast_resize +0 -0
- data/bindings/ruby/prebuilt/linux-aarch64/lib/libfastresize.a +0 -0
- data/bindings/ruby/prebuilt/linux-aarch64.tar.gz +0 -0
- data/bindings/ruby/prebuilt/linux-x86_64/bin/fast_resize +0 -0
- data/bindings/ruby/prebuilt/linux-x86_64/lib/libfastresize.a +0 -0
- data/bindings/ruby/prebuilt/linux-x86_64.tar.gz +0 -0
- data/bindings/ruby/prebuilt/macos-arm64/bin/fast_resize +0 -0
- data/bindings/ruby/prebuilt/macos-arm64/lib/libfastresize.a +0 -0
- data/bindings/ruby/prebuilt/macos-arm64.tar.gz +0 -0
- data/bindings/ruby/prebuilt/macos-x86_64/bin/fast_resize +0 -0
- data/bindings/ruby/prebuilt/macos-x86_64/lib/libfastresize.a +0 -0
- data/bindings/ruby/prebuilt/macos-x86_64.tar.gz +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd3aea592f3a52ae5fc7ebb84ef68060882a074cb6b4c5410c21849ba0febdb0
|
|
4
|
+
data.tar.gz: ca6510f5daf824934331282efea95e1f9bae18583348fd843effb7e654a9d6f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82f40d7012d6591a553fce82986a15541d4ae2919114aac5424802f0487e03ea23fa9e02a2dd4ce053584d10a09b3e702c9056a04beb7eca5e7ff33e7a4df789
|
|
7
|
+
data.tar.gz: 32d55b77ba417f169ffbc801eb7c014fe1b73303ee931cf4c397e6bd2e5d59ee85b4499903c7cfd8d9097700b3c6213bf4ac6d8408808d7e8381a3c2a1a177d2
|
data/CMakeLists.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
cmake_minimum_required(VERSION 3.15)
|
|
2
|
-
project(fast_resize VERSION 1.0.
|
|
2
|
+
project(fast_resize VERSION 1.0.2 LANGUAGES CXX C)
|
|
3
3
|
|
|
4
4
|
set(CMAKE_CXX_STANDARD 14)
|
|
5
5
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
@@ -10,8 +10,11 @@ if(NOT CMAKE_BUILD_TYPE)
|
|
|
10
10
|
set(CMAKE_BUILD_TYPE Release)
|
|
11
11
|
endif()
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
# Disable LTO for static library builds to ensure compatibility across GCC versions
|
|
14
|
+
# LTO bytecode format changes between GCC versions, causing link failures
|
|
15
|
+
# when the static library is used with a different GCC version
|
|
16
|
+
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
|
|
17
|
+
set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG")
|
|
15
18
|
|
|
16
19
|
# Option for building shared vs static libraries
|
|
17
20
|
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.2
|
|
@@ -103,6 +103,31 @@ if prebuilt_dir
|
|
|
103
103
|
prebuilt_lib_dir = File.join(prebuilt_dir, 'lib')
|
|
104
104
|
$LDFLAGS << " -L#{prebuilt_lib_dir} -lfastresize"
|
|
105
105
|
|
|
106
|
+
# Link required image libraries that libfastresize.a depends on
|
|
107
|
+
puts "🔍 Linking required image libraries..."
|
|
108
|
+
|
|
109
|
+
# These libraries are required by the pre-built libfastresize.a
|
|
110
|
+
unless find_library('png', 'png_create_read_struct', '/opt/homebrew/lib', '/usr/local/lib', '/usr/lib')
|
|
111
|
+
abort "❌ ERROR: libpng not found. Please install: brew install libpng (macOS) or apt-get install libpng-dev (Linux)"
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
unless find_library('jpeg', 'jpeg_CreateDecompress', '/opt/homebrew/lib', '/usr/local/lib', '/usr/lib')
|
|
115
|
+
abort "❌ ERROR: libjpeg not found. Please install: brew install jpeg (macOS) or apt-get install libjpeg-dev (Linux)"
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
unless find_library('z', 'inflate', '/opt/homebrew/lib', '/usr/local/lib', '/usr/lib')
|
|
119
|
+
abort "❌ ERROR: zlib not found. Please install: brew install zlib (macOS) or apt-get install zlib1g-dev (Linux)"
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# WebP is optional
|
|
123
|
+
if find_library('webp', 'WebPDecode', '/opt/homebrew/lib', '/usr/local/lib', '/usr/lib')
|
|
124
|
+
puts "✅ WebP support enabled"
|
|
125
|
+
find_library('webpdemux', 'WebPDemuxGetFrame', '/opt/homebrew/lib', '/usr/local/lib', '/usr/lib')
|
|
126
|
+
find_library('sharpyuv', 'SharpYuvGetCPUInfo', '/opt/homebrew/lib', '/usr/local/lib', '/usr/lib')
|
|
127
|
+
else
|
|
128
|
+
puts "⚠️ WebP support disabled (library not found)"
|
|
129
|
+
end
|
|
130
|
+
|
|
106
131
|
# Only compile the Ruby binding
|
|
107
132
|
$srcs = ['fastresize_ext.cpp']
|
|
108
133
|
else
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|