@@ -34,28 +34,33 @@ OPENSSL_VERSION=3.0.16-1
34
34
XZ_VERSION =5.6.4-1
35
35
36
36
# Supported OS
37
- OS_LIST =macOS iOS tvOS watchOS xrOS
37
+ OS_LIST =macOS iOS tvOS watchOS visionOS
38
38
39
39
CURL_FLAGS =--disable --fail --location --create-dirs --progress-bar
40
40
41
41
# macOS targets
42
42
TARGETS-macOS =macosx.x86_64 macosx.arm64
43
+ TRIPLE_OS-macOS =macos
43
44
VERSION_MIN-macOS =11.0
44
45
45
46
# iOS targets
46
47
TARGETS-iOS =iphonesimulator.x86_64 iphonesimulator.arm64 iphoneos.arm64
48
+ TRIPLE_OS-iOS =ios
47
49
VERSION_MIN-iOS =13.0
48
50
49
51
# tvOS targets
50
52
TARGETS-tvOS =appletvsimulator.x86_64 appletvsimulator.arm64 appletvos.arm64
53
+ TRIPLE_OS-tvOS =tvos
51
54
VERSION_MIN-tvOS =12.0
52
55
53
56
# watchOS targets
54
57
TARGETS-watchOS =watchsimulator.x86_64 watchsimulator.arm64 watchos.arm64_32
58
+ TRIPLE_OS-watchOS =watchos
55
59
VERSION_MIN-watchOS =4.0
56
60
57
- TARGETS-xrOS =xrsimulator.arm64 xros.arm64
58
- VERSION_MIN-xrOS =1.0
61
+ TARGETS-visionOS =xrsimulator.arm64 xros.arm64
62
+ TRIPLE_OS-visionOS =xros
63
+ VERSION_MIN-visionOS =2.0
59
64
60
65
# The architecture of the machine doing the build
61
66
HOST_ARCH =$(shell uname -m)
@@ -125,17 +130,18 @@ target=$1
125
130
os=$2
126
131
127
132
OS_LOWER-$(target ) =$(shell echo $(os ) | tr '[:upper:]' '[:lower:]')
133
+ TRIPLE_OS-$(target ) =$$(TRIPLE_OS-$(os ) )
128
134
129
135
# $(target) can be broken up into is composed of $(SDK).$(ARCH)
130
136
SDK-$(target ) =$$(basename $(target ) )
131
137
ARCH-$(target ) =$$(subst .,,$$(suffix $(target ) ) )
132
138
133
139
ifneq ($(os ) ,macOS)
134
140
ifeq ($$(findstring simulator,$$(SDK-$(target))),)
135
- TARGET_TRIPLE-$(target) =$$(ARCH-$(target ) ) -apple-$$(OS_LOWER -$(target ) )$$(VERSION_MIN-$(os ) )
141
+ TARGET_TRIPLE-$(target) =$$(ARCH-$(target ) ) -apple-$$(TRIPLE_OS -$(target ) )$$(VERSION_MIN-$(os ) )
136
142
IS_SIMULATOR-$(target) =False
137
143
else
138
- TARGET_TRIPLE-$(target) =$$(ARCH-$(target ) ) -apple-$$(OS_LOWER -$(target ) )$$(VERSION_MIN-$(os ) ) -simulator
144
+ TARGET_TRIPLE-$(target) =$$(ARCH-$(target ) ) -apple-$$(TRIPLE_OS -$(target ) )$$(VERSION_MIN-$(os ) ) -simulator
139
145
IS_SIMULATOR-$(target) =True
140
146
endif
141
147
endif
@@ -403,14 +409,15 @@ sdk=$1
403
409
os=$2
404
410
405
411
OS_LOWER-$(sdk ) =$(shell echo $(os ) | tr '[:upper:]' '[:lower:]')
412
+ TRIPLE_OS-$(sdk ) =$$(TRIPLE_OS-$(os ) )
406
413
407
414
SDK_TARGETS-$(sdk ) =$$(filter $(sdk ) .% ,$$(TARGETS-$(os ) ) )
408
415
SDK_ARCHES-$(sdk ) =$$(sort $$(subst .,,$$(suffix $$(SDK_TARGETS-$(sdk ) ) ) ) )
409
416
410
417
ifeq ($$(findstring simulator,$(sdk ) ) ,)
411
- SDK_SLICE-$(sdk) =$$(OS_LOWER -$(sdk ) ) -$$(shell echo $$(SDK_ARCHES-$(sdk ) ) | sed "s/ /_/g")
418
+ SDK_SLICE-$(sdk) =$$(TRIPLE_OS -$(sdk ) ) -$$(shell echo $$(SDK_ARCHES-$(sdk ) ) | sed "s/ /_/g")
412
419
else
413
- SDK_SLICE-$(sdk) =$$(OS_LOWER -$(sdk ) ) -$$(shell echo $$(SDK_ARCHES-$(sdk ) ) | sed "s/ /_/g") -simulator
420
+ SDK_SLICE-$(sdk) =$$(TRIPLE_OS -$(sdk ) ) -$$(shell echo $$(SDK_ARCHES-$(sdk ) ) | sed "s/ /_/g") -simulator
414
421
endif
415
422
416
423
# Expand the build-target macro for target on this OS
0 commit comments