@crossbind/port-tiff-ios 2.0.0-beta.62 → 2.0.0-beta.63

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.
@@ -51,7 +51,8 @@ if(NOT PACKAGE_HOST_INDEX EQUAL -1)
51
51
  target_link_libraries("${PROJECT_NAME}" INTERFACE "${PROJECT_LIBS_DIR}")
52
52
  endif()
53
53
 
54
- if(NOT (APPLE AND CMAKE_SYSTEM_NAME STREQUAL "iOS"))
54
+ # On iOS each library's xcframework carries the headers, so only a header-only package needs them here.
55
+ if(NOT (APPLE AND CMAKE_SYSTEM_NAME STREQUAL "iOS") OR PROJECT_LIBS STREQUAL "")
55
56
  target_include_directories("${PROJECT_NAME}" INTERFACE "${PROJECT_SOURCE_DIR}/${PROJECT_TARGET_HOST}/include")
56
57
  endif()
57
58
  endif()
@@ -0,0 +1,63 @@
1
+ /* Typed forms of libtiff's variadic field calls, added by crossbind: JavaScript bindings cannot pass C varargs, so each
2
+ * value type gets a function of its own. The tag still decides which type it takes; float tags are set as double. */
3
+ #ifndef TIFFIO_CROSSBIND_H
4
+ #define TIFFIO_CROSSBIND_H
5
+
6
+ #include <tiffio.h>
7
+
8
+ static inline int TIFFSetFieldUInt16(TIFF *tif, uint32_t tag, uint16_t value)
9
+ {
10
+ return TIFFSetField(tif, tag, value);
11
+ }
12
+
13
+ static inline int TIFFSetFieldUInt32(TIFF *tif, uint32_t tag, uint32_t value)
14
+ {
15
+ return TIFFSetField(tif, tag, value);
16
+ }
17
+
18
+ static inline int TIFFSetFieldDouble(TIFF *tif, uint32_t tag, double value)
19
+ {
20
+ return TIFFSetField(tif, tag, value);
21
+ }
22
+
23
+ static inline int TIFFSetFieldString(TIFF *tif, uint32_t tag, const char *value)
24
+ {
25
+ return TIFFSetField(tif, tag, value);
26
+ }
27
+
28
+ static inline int TIFFGetFieldUInt16(TIFF *tif, uint32_t tag, uint16_t *value)
29
+ {
30
+ return TIFFGetField(tif, tag, value);
31
+ }
32
+
33
+ static inline int TIFFGetFieldUInt32(TIFF *tif, uint32_t tag, uint32_t *value)
34
+ {
35
+ return TIFFGetField(tif, tag, value);
36
+ }
37
+
38
+ static inline int TIFFGetFieldFloat(TIFF *tif, uint32_t tag, float *value)
39
+ {
40
+ return TIFFGetField(tif, tag, value);
41
+ }
42
+
43
+ static inline int TIFFGetFieldDouble(TIFF *tif, uint32_t tag, double *value)
44
+ {
45
+ return TIFFGetField(tif, tag, value);
46
+ }
47
+
48
+ static inline int TIFFGetFieldString(TIFF *tif, uint32_t tag, char **value)
49
+ {
50
+ return TIFFGetField(tif, tag, value);
51
+ }
52
+
53
+ static inline int TIFFGetFieldDefaultedUInt16(TIFF *tif, uint32_t tag, uint16_t *value)
54
+ {
55
+ return TIFFGetFieldDefaulted(tif, tag, value);
56
+ }
57
+
58
+ static inline int TIFFGetFieldDefaultedUInt32(TIFF *tif, uint32_t tag, uint32_t *value)
59
+ {
60
+ return TIFFGetFieldDefaulted(tif, tag, value);
61
+ }
62
+
63
+ #endif
@@ -1,4 +1,4 @@
1
- prefix=/Users/runner/work/crossbind/crossbind/ports/tiff/ios/.crossbind/build/Source-Release/prebuilt/ios-iphoneos-mt-release
1
+ prefix=${pcfiledir}/../..
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include
@@ -0,0 +1 @@
1
+ 6c423a012e09bdb90045cb1b0bdaac19be796282307fefc55703b1db2cd4906b
@@ -0,0 +1,63 @@
1
+ /* Typed forms of libtiff's variadic field calls, added by crossbind: JavaScript bindings cannot pass C varargs, so each
2
+ * value type gets a function of its own. The tag still decides which type it takes; float tags are set as double. */
3
+ #ifndef TIFFIO_CROSSBIND_H
4
+ #define TIFFIO_CROSSBIND_H
5
+
6
+ #include <tiffio.h>
7
+
8
+ static inline int TIFFSetFieldUInt16(TIFF *tif, uint32_t tag, uint16_t value)
9
+ {
10
+ return TIFFSetField(tif, tag, value);
11
+ }
12
+
13
+ static inline int TIFFSetFieldUInt32(TIFF *tif, uint32_t tag, uint32_t value)
14
+ {
15
+ return TIFFSetField(tif, tag, value);
16
+ }
17
+
18
+ static inline int TIFFSetFieldDouble(TIFF *tif, uint32_t tag, double value)
19
+ {
20
+ return TIFFSetField(tif, tag, value);
21
+ }
22
+
23
+ static inline int TIFFSetFieldString(TIFF *tif, uint32_t tag, const char *value)
24
+ {
25
+ return TIFFSetField(tif, tag, value);
26
+ }
27
+
28
+ static inline int TIFFGetFieldUInt16(TIFF *tif, uint32_t tag, uint16_t *value)
29
+ {
30
+ return TIFFGetField(tif, tag, value);
31
+ }
32
+
33
+ static inline int TIFFGetFieldUInt32(TIFF *tif, uint32_t tag, uint32_t *value)
34
+ {
35
+ return TIFFGetField(tif, tag, value);
36
+ }
37
+
38
+ static inline int TIFFGetFieldFloat(TIFF *tif, uint32_t tag, float *value)
39
+ {
40
+ return TIFFGetField(tif, tag, value);
41
+ }
42
+
43
+ static inline int TIFFGetFieldDouble(TIFF *tif, uint32_t tag, double *value)
44
+ {
45
+ return TIFFGetField(tif, tag, value);
46
+ }
47
+
48
+ static inline int TIFFGetFieldString(TIFF *tif, uint32_t tag, char **value)
49
+ {
50
+ return TIFFGetField(tif, tag, value);
51
+ }
52
+
53
+ static inline int TIFFGetFieldDefaultedUInt16(TIFF *tif, uint32_t tag, uint16_t *value)
54
+ {
55
+ return TIFFGetFieldDefaulted(tif, tag, value);
56
+ }
57
+
58
+ static inline int TIFFGetFieldDefaultedUInt32(TIFF *tif, uint32_t tag, uint32_t *value)
59
+ {
60
+ return TIFFGetFieldDefaulted(tif, tag, value);
61
+ }
62
+
63
+ #endif
@@ -1,4 +1,4 @@
1
- prefix=/Users/runner/work/crossbind/crossbind/ports/tiff/ios/.crossbind/build/Source-Release/prebuilt/ios-iphonesimulator-mt-release
1
+ prefix=${pcfiledir}/../..
2
2
  exec_prefix=${prefix}
3
3
  libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include
@@ -0,0 +1 @@
1
+ 6c423a012e09bdb90045cb1b0bdaac19be796282307fefc55703b1db2cd4906b
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@crossbind/port-tiff-ios",
3
- "version": "2.0.0-beta.62",
3
+ "version": "2.0.0-beta.63",
4
4
  "nativeVersion": "4.7.2",
5
5
  "description": "iOS build of the precompiled TIFF (libtiff) image library, built with crossbind. Use it together with the main package @crossbind/port-tiff.",
6
- "homepage": "https://github.com/crossbind/crossbind/tree/main/ports/tiff#readme",
6
+ "homepage": "https://crossbind.dev/ports/tiff/",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/crossbind/crossbind.git"
@@ -20,14 +20,14 @@
20
20
  "react-native"
21
21
  ],
22
22
  "dependencies": {
23
- "@crossbind/port-tiff": "^2.0.0-beta.62",
24
- "@crossbind/port-zlib-ios": "^2.0.0-beta.62",
25
- "@crossbind/port-jpegturbo-ios": "^2.0.0-beta.62",
26
- "@crossbind/port-zstd-ios": "^2.0.0-beta.62",
27
- "@crossbind/port-lerc-ios": "^2.0.0-beta.62"
23
+ "@crossbind/port-tiff": "^2.0.0-beta.63",
24
+ "@crossbind/port-zlib-ios": "^2.0.0-beta.63",
25
+ "@crossbind/port-jpegturbo-ios": "^2.0.0-beta.63",
26
+ "@crossbind/port-zstd-ios": "^2.0.0-beta.63",
27
+ "@crossbind/port-lerc-ios": "^2.0.0-beta.63"
28
28
  },
29
29
  "devDependencies": {
30
- "crossbind": "^2.0.0-beta.62"
30
+ "crossbind": "^2.0.0-beta.63"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "crossbind build -p ios",
@@ -10,7 +10,7 @@
10
10
  <key>HeadersPath</key>
11
11
  <string>Headers</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64</string>
13
+ <string>ios-arm64-simulator</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>libtiff.a</string>
16
16
  <key>SupportedArchitectures</key>
@@ -19,6 +19,8 @@
19
19
  </array>
20
20
  <key>SupportedPlatform</key>
21
21
  <string>ios</string>
22
+ <key>SupportedPlatformVariant</key>
23
+ <string>simulator</string>
22
24
  </dict>
23
25
  <dict>
24
26
  <key>BinaryPath</key>
@@ -26,7 +28,7 @@
26
28
  <key>HeadersPath</key>
27
29
  <string>Headers</string>
28
30
  <key>LibraryIdentifier</key>
29
- <string>ios-arm64-simulator</string>
31
+ <string>ios-arm64</string>
30
32
  <key>LibraryPath</key>
31
33
  <string>libtiff.a</string>
32
34
  <key>SupportedArchitectures</key>
@@ -35,8 +37,6 @@
35
37
  </array>
36
38
  <key>SupportedPlatform</key>
37
39
  <string>ios</string>
38
- <key>SupportedPlatformVariant</key>
39
- <string>simulator</string>
40
40
  </dict>
41
41
  </array>
42
42
  <key>CFBundlePackageType</key>