Skip to content

Commit 83bb67d

Browse files
committed
built for Mac Catalyst
1 parent 4a7bed6 commit 83bb67d

File tree

11 files changed

+4409
-3
lines changed

11 files changed

+4409
-3
lines changed

Package.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import PackageDescription
66
let package = Package(
77
name: "mozjpeg",
88
platforms: [
9-
.iOS(.v12)
9+
.iOS(.v12),
10+
.macOS(.v11),
11+
.macCatalyst(.v14)
1012
],
1113
products: [
1214
// Products define the executables and libraries a package produces, and make them visible to other packages.

Sources/libturbojpeg.xcframework/Info.plist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44
<dict>
55
<key>AvailableLibraries</key>
66
<array>
7+
<dict>
8+
<key>HeadersPath</key>
9+
<string>Headers</string>
10+
<key>LibraryIdentifier</key>
11+
<string>ios-arm64_x86_64-maccatalyst</string>
12+
<key>LibraryPath</key>
13+
<string>libturbojpeg.a</string>
14+
<key>SupportedArchitectures</key>
15+
<array>
16+
<string>arm64</string>
17+
<string>x86_64</string>
18+
</array>
19+
<key>SupportedPlatform</key>
20+
<string>ios</string>
21+
<key>SupportedPlatformVariant</key>
22+
<string>maccatalyst</string>
23+
</dict>
724
<dict>
825
<key>HeadersPath</key>
926
<string>Headers</string>
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/* Version ID for the JPEG library.
2+
* Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
3+
*/
4+
#define JPEG_LIB_VERSION 62
5+
6+
/* libjpeg-turbo version */
7+
#define LIBJPEG_TURBO_VERSION 4.1.0
8+
9+
/* libjpeg-turbo version in integer form */
10+
#define LIBJPEG_TURBO_VERSION_NUMBER 4001000
11+
12+
/* Support arithmetic encoding */
13+
/* #undef C_ARITH_CODING_SUPPORTED */
14+
15+
/* Support arithmetic decoding */
16+
/* #undef D_ARITH_CODING_SUPPORTED */
17+
18+
/* Support in-memory source/destination managers */
19+
#define MEM_SRCDST_SUPPORTED 1
20+
21+
/* Use accelerated SIMD routines. */
22+
#define WITH_SIMD 1
23+
24+
/*
25+
* Define BITS_IN_JSAMPLE as either
26+
* 8 for 8-bit sample values (the usual setting)
27+
* 12 for 12-bit sample values
28+
* Only 8 and 12 are legal data precisions for lossy JPEG according to the
29+
* JPEG standard, and the IJG code does not support anything else!
30+
* We do not support run-time selection of data precision, sorry.
31+
*/
32+
33+
#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */
34+
35+
/* Define to 1 if you have the <locale.h> header file. */
36+
#define HAVE_LOCALE_H 1
37+
38+
/* Define to 1 if you have the <stddef.h> header file. */
39+
#define HAVE_STDDEF_H 1
40+
41+
/* Define to 1 if you have the <stdlib.h> header file. */
42+
#define HAVE_STDLIB_H 1
43+
44+
/* Define if you need to include <sys/types.h> to get size_t. */
45+
#define NEED_SYS_TYPES_H 1
46+
47+
/* Define if you have BSD-like bzero and bcopy in <strings.h> rather than
48+
memset/memcpy in <string.h>. */
49+
/* #undef NEED_BSD_STRINGS */
50+
51+
/* Define to 1 if the system has the type `unsigned char'. */
52+
#define HAVE_UNSIGNED_CHAR 1
53+
54+
/* Define to 1 if the system has the type `unsigned short'. */
55+
#define HAVE_UNSIGNED_SHORT 1
56+
57+
/* Compiler does not support pointers to undefined structures. */
58+
/* #undef INCOMPLETE_TYPES_BROKEN */
59+
60+
/* Define if your (broken) compiler shifts signed values as if they were
61+
unsigned. */
62+
/* #undef RIGHT_SHIFT_IS_UNSIGNED */
63+
64+
/* Define to empty if `const' does not conform to ANSI C. */
65+
/* #undef const */
66+
67+
/* Define to `unsigned int' if <sys/types.h> does not define. */
68+
/* #undef size_t */

0 commit comments

Comments
 (0)