@crossbind/port-tiff-ios 2.0.0-beta.50
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.
- package/LICENSE +9 -0
- package/README.md +12 -0
- package/crossbind-port-tiff.podspec +15 -0
- package/crossbind.build.js +1 -0
- package/crossbind.config.js +10 -0
- package/dist/prebuilt/CMakeLists.txt +57 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/crossbind-emccflags.fingerprint +1 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/include/tiff.h +900 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/include/tiffconf.h +144 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/include/tiffio.h +672 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/include/tiffio.hxx +39 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/include/tiffvers.h +36 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/lib/cmake/tiff/tiff-config-version.cmake +65 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/lib/cmake/tiff/tiff-config.cmake +27 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/lib/cmake/tiff/tiff-targets-release.cmake +29 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/lib/cmake/tiff/tiff-targets.cmake +114 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/lib/libtiff.a +0 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/lib/libtiffxx.a +0 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/lib/pkgconfig/libtiff-4.pc +12 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/crossbind-emccflags.fingerprint +1 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/include/tiff.h +900 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/include/tiffconf.h +144 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/include/tiffio.h +672 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/include/tiffio.hxx +39 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/include/tiffvers.h +36 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/lib/cmake/tiff/tiff-config-version.cmake +65 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/lib/cmake/tiff/tiff-config.cmake +27 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/lib/cmake/tiff/tiff-targets-release.cmake +29 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/lib/cmake/tiff/tiff-targets.cmake +114 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/lib/libtiff.a +0 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/lib/libtiffxx.a +0 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/lib/pkgconfig/libtiff-4.pc +12 -0
- package/package.json +36 -0
- package/tiff.xcframework/Info.plist +47 -0
- package/tiff.xcframework/ios-arm64/Headers/tiff.h +900 -0
- package/tiff.xcframework/ios-arm64/Headers/tiffconf.h +144 -0
- package/tiff.xcframework/ios-arm64/Headers/tiffio.h +672 -0
- package/tiff.xcframework/ios-arm64/Headers/tiffio.hxx +39 -0
- package/tiff.xcframework/ios-arm64/Headers/tiffvers.h +36 -0
- package/tiff.xcframework/ios-arm64/libtiff.a +0 -0
- package/tiff.xcframework/ios-arm64-simulator/Headers/tiff.h +900 -0
- package/tiff.xcframework/ios-arm64-simulator/Headers/tiffconf.h +144 -0
- package/tiff.xcframework/ios-arm64-simulator/Headers/tiffio.h +672 -0
- package/tiff.xcframework/ios-arm64-simulator/Headers/tiffio.hxx +39 -0
- package/tiff.xcframework/ios-arm64-simulator/Headers/tiffvers.h +36 -0
- package/tiff.xcframework/ios-arm64-simulator/libtiff.a +0 -0
- package/tiffxx.xcframework/Info.plist +47 -0
- package/tiffxx.xcframework/ios-arm64/Headers/tiff.h +900 -0
- package/tiffxx.xcframework/ios-arm64/Headers/tiffconf.h +144 -0
- package/tiffxx.xcframework/ios-arm64/Headers/tiffio.h +672 -0
- package/tiffxx.xcframework/ios-arm64/Headers/tiffio.hxx +39 -0
- package/tiffxx.xcframework/ios-arm64/Headers/tiffvers.h +36 -0
- package/tiffxx.xcframework/ios-arm64/libtiffxx.a +0 -0
- package/tiffxx.xcframework/ios-arm64-simulator/Headers/tiff.h +900 -0
- package/tiffxx.xcframework/ios-arm64-simulator/Headers/tiffconf.h +144 -0
- package/tiffxx.xcframework/ios-arm64-simulator/Headers/tiffio.h +672 -0
- package/tiffxx.xcframework/ios-arm64-simulator/Headers/tiffio.hxx +39 -0
- package/tiffxx.xcframework/ios-arm64-simulator/Headers/tiffvers.h +36 -0
- package/tiffxx.xcframework/ios-arm64-simulator/libtiffxx.a +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
Copyright © 1988-1997 Sam Leffler
|
|
3
|
+
Copyright © 1991-1997 Silicon Graphics, Inc.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that (i) the above copyright notices and this permission notice appear in all copies of the software and related documentation, and (ii) the names of Sam Leffler and Silicon Graphics may not be used in any advertising or publicity relating to the software without the specific, prior written permission of Sam Leffler and Silicon Graphics.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
8
|
+
|
|
9
|
+
IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @crossbind/port-tiff-ios
|
|
2
|
+
|
|
3
|
+
The **iOS** build of the precompiled **TIFF** library, built with [crossbind](https://crossbind.dev).
|
|
4
|
+
|
|
5
|
+
> For installation and usage, see the main package: **[@crossbind/port-tiff](https://www.npmjs.com/package/@crossbind/port-tiff)**.
|
|
6
|
+
|
|
7
|
+
## Supported targets
|
|
8
|
+
- iOS device — `arm64`
|
|
9
|
+
- iOS Simulator — `arm64` (Apple Silicon)
|
|
10
|
+
|
|
11
|
+
## License
|
|
12
|
+
This project includes the precompiled libtiff library, distributed under the [libtiff License](https://libtiff.gitlab.io/libtiff/project/license.html).
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
3
|
+
|
|
4
|
+
Pod::Spec.new do |s|
|
|
5
|
+
s.module_name = "tiff"
|
|
6
|
+
s.name = "crossbind-port-tiff"
|
|
7
|
+
s.version = package["nativeVersion"]
|
|
8
|
+
s.summary = "The LibTIFF software provides support for the Tag Image File Format (TIFF), a widely used format for storing image data."
|
|
9
|
+
s.homepage = "https://libtiff.gitlab.io/libtiff/index.html"
|
|
10
|
+
s.author = "Tiff Authors"
|
|
11
|
+
s.source = { :http => "https://crossbind.dev" }
|
|
12
|
+
s.vendored_frameworks = 'z.xcframework', 'jpeg.xcframework', 'zstd.xcframework', 'Lerc.xcframework', 'tiff.xcframework', 'tiffxx.xcframework'
|
|
13
|
+
# arm64-only iOS simulator slice; drop x86_64 to avoid linker errors on consumer apps.
|
|
14
|
+
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
|
|
15
|
+
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@crossbind/port-tiff/build.mjs';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import mergeConfig from '@crossbind/port-tiff/mergeConfig.mjs';
|
|
2
|
+
import zlibIos from '@crossbind/port-zlib-ios/crossbind.config.js';
|
|
3
|
+
import jpegturboIos from '@crossbind/port-jpegturbo-ios/crossbind.config.js';
|
|
4
|
+
import zstdIos from '@crossbind/port-zstd-ios/crossbind.config.js';
|
|
5
|
+
import lercIos from '@crossbind/port-lerc-ios/crossbind.config.js';
|
|
6
|
+
|
|
7
|
+
export default mergeConfig({
|
|
8
|
+
dependencies: [zlibIos, jpegturboIos, zstdIos, lercIos],
|
|
9
|
+
paths: { config: import.meta.url },
|
|
10
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
set(MY_LIST "ios-iphoneos-mt-release;ios-iphonesimulator-mt-release")
|
|
2
|
+
LIST(FIND MY_LIST "${PROJECT_TARGET_HOST}" PACKAGE_HOST_INDEX)
|
|
3
|
+
if(PACKAGE_HOST_INDEX EQUAL -1)
|
|
4
|
+
set(PROJECT_TARGET_HOST "${PROJECT_TARGET_HOST_RELEASE}")
|
|
5
|
+
endif()
|
|
6
|
+
LIST(FIND MY_LIST "${PROJECT_TARGET_HOST}" PACKAGE_HOST_INDEX)
|
|
7
|
+
|
|
8
|
+
if(NOT PACKAGE_HOST_INDEX EQUAL -1)
|
|
9
|
+
cmake_minimum_required(VERSION 3.28)
|
|
10
|
+
set(CMAKE_CXX_STANDARD 11)
|
|
11
|
+
set(PROJECT_NAME "tiff")
|
|
12
|
+
set(PROJECT_LIBS "tiff;tiffxx")
|
|
13
|
+
project("${PROJECT_NAME}")
|
|
14
|
+
|
|
15
|
+
if (APPLE AND CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
|
16
|
+
set(PACKAGE_DIR "${PROJECT_SOURCE_DIR}/../..")
|
|
17
|
+
else()
|
|
18
|
+
set(PACKAGE_DIR "${PROJECT_SOURCE_DIR}/${PROJECT_TARGET_HOST}/lib")
|
|
19
|
+
endif()
|
|
20
|
+
|
|
21
|
+
set(PROJECT_LIBS_DIR)
|
|
22
|
+
foreach(L IN LISTS PROJECT_LIBS)
|
|
23
|
+
SET(FOUND_LIB "FOUND_LIB-NOTFOUND")
|
|
24
|
+
find_library(FOUND_LIB
|
|
25
|
+
NAMES "${L}"
|
|
26
|
+
PATHS "${PACKAGE_DIR}"
|
|
27
|
+
NO_CACHE
|
|
28
|
+
NO_DEFAULT_PATH
|
|
29
|
+
NO_CMAKE_FIND_ROOT_PATH
|
|
30
|
+
REQUIRED
|
|
31
|
+
)
|
|
32
|
+
LIST(APPEND PROJECT_LIBS_DIR ${FOUND_LIB})
|
|
33
|
+
endforeach()
|
|
34
|
+
|
|
35
|
+
add_library("${PROJECT_NAME}" INTERFACE)
|
|
36
|
+
# Cargo producers register through an init-array constructor nothing references. KEEP pins the
|
|
37
|
+
# generated keep symbol (--undefined) so only the registration object is pulled - never the
|
|
38
|
+
# whole archive, because each Rust staticlib bundles libstd and fully loading two of them
|
|
39
|
+
# duplicates thousands of std symbols. FORCE (manual-bindings crates, no keep symbol) falls
|
|
40
|
+
# back to whole-archive - safe only as the app's single loaded Rust archive. (Apple consumers
|
|
41
|
+
# get the equivalent flags from the generated podspec instead.)
|
|
42
|
+
set(PROJECT_RUST_LINK "")
|
|
43
|
+
if(PROJECT_RUST_LINK STREQUAL "KEEP" AND NOT APPLE)
|
|
44
|
+
target_link_libraries("${PROJECT_NAME}" INTERFACE "${PROJECT_LIBS_DIR}")
|
|
45
|
+
foreach(L IN LISTS PROJECT_LIBS)
|
|
46
|
+
target_link_options("${PROJECT_NAME}" INTERFACE "-Wl,--undefined=crossbind_keep_${L}")
|
|
47
|
+
endforeach()
|
|
48
|
+
elseif(PROJECT_RUST_LINK STREQUAL "FORCE" AND NOT APPLE)
|
|
49
|
+
target_link_libraries("${PROJECT_NAME}" INTERFACE "$<LINK_LIBRARY:WHOLE_ARCHIVE,${PROJECT_LIBS_DIR}>")
|
|
50
|
+
else()
|
|
51
|
+
target_link_libraries("${PROJECT_NAME}" INTERFACE "${PROJECT_LIBS_DIR}")
|
|
52
|
+
endif()
|
|
53
|
+
|
|
54
|
+
if(NOT APPLE)
|
|
55
|
+
target_include_directories("${PROJECT_NAME}" INTERFACE "${PROJECT_SOURCE_DIR}/${PROJECT_TARGET_HOST}/include")
|
|
56
|
+
endif()
|
|
57
|
+
endif()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
|