Skip to content

Commit 5a757de

Browse files
committed
Add MacCatalyst target
1 parent 2019023 commit 5a757de

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Makefile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,38 @@
44
# - iOS - build everything for iOS
55
# - tvOS - build everything for tvOS
66
# - watchOS - build everything for watchOS
7+
# - MacCatalyst - build everything for MacCatalyst
78
# - BZip2 - build BZip2 for all platforms
89
# - BZip2-iOS - build BZip2 for iOS
910
# - BZip2-tvOS - build BZip2 for tvOS
1011
# - BZip2-watchOS - build BZip2 for watchOS
12+
# - BZip2-MacCatalyst - build BZip2 for MacCatalyst
1113
# - XZ - build XZ for all platforms
1214
# - XZ-iOS - build XZ for iOS
1315
# - XZ-tvOS - build XZ for tvOS
1416
# - XZ-watchOS - build XZ for watchOS
17+
# - XZ-MacCatalyst - build XZ for MacCatalyst
1518
# - OpenSSL - build OpenSSL for all platforms
1619
# - OpenSSL-iOS - build OpenSSL for iOS
1720
# - OpenSSL-tvOS - build OpenSSL for tvOS
1821
# - OpenSSL-watchOS - build OpenSSL for watchOS
22+
# - OpenSSL-MacCatalyst - build OpenSSL for MacCatalyst
1923
# - mpdecimal - build mpdecimal for all platforms
2024
# - mpdecimal-iOS - build mpdecimal for iOS
2125
# - mpdecimal-tvOS - build mpdecimal for tvOS
2226
# - mpdecimal-watchOS - build mpdecimal for watchOS
27+
# - mpdecimal-MacCatalyst - build mpdecimal for MacCatalyst
2328
# - libFFI-iOS - build libFFI for iOS
2429
# - libFFI-tvOS - build libFFI for tvOS
2530
# - libFFI-watchOS - build libFFI for watchOS
31+
# - libFFI-MacCatalyst - build libFFI for MacCatalyst
2632

2733
# Current directory
2834
PROJECT_DIR=$(shell pwd)
2935

3036
# Supported OS and products
3137
PRODUCTS=BZip2 XZ OpenSSL libFFI
32-
OS_LIST=iOS tvOS watchOS
38+
OS_LIST=iOS tvOS watchOS MacCatalyst
3339

3440
# The versions to compile by default.
3541
# In practice, these should be
@@ -57,10 +63,15 @@ LIBFFI_VERSION=3.4.7
5763
CURL_FLAGS=--disable --fail --location --create-dirs --progress-bar
5864

5965
# iOS targets
60-
TARGETS-iOS=iphonesimulator.x86_64 iphonesimulator.arm64 iphoneos.arm64 maccatalyst.x86_64 maccatalyst.arm64
61-
VERSION_MIN-iOS=14.2
66+
TARGETS-iOS=iphonesimulator.x86_64 iphonesimulator.arm64 iphoneos.arm64
67+
VERSION_MIN-iOS=13.0
6268
CFLAGS-iOS=-mios-version-min=$(VERSION_MIN-iOS)
6369

70+
# MacCatalyst targets
71+
TARGETS-MacCatalyst=maccatalyst.x86_64 maccatalyst.arm64
72+
VERSION_MIN-MacCatalyst=14.2
73+
CFLAGS-MacCatalyst=-mios-version-min=$(VERSION_MIN-MacCatalyst)
74+
6475
# tvOS targets
6576
TARGETS-tvOS=appletvsimulator.x86_64 appletvsimulator.arm64 appletvos.arm64
6677
VERSION_MIN-tvOS=9.0

0 commit comments

Comments
 (0)