This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
common.mk
165 lines (157 loc) · 3.5 KB
/
common.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# 'all' is the default target, and must always come first
all:
$(TOP)/stconfig.inc: $(TOP)/stconfig.sh
@$(TOP)/stconfig.sh
-include $(TOP)/stconfig.inc
# This will never point to the swiftc compiler in our packaged directory (where SWIFTC may point to if SOM_PATH is set)
# We need this if we need swiftc before the package is created (because that's where SOM_PATH points to)
UNPACKAGED_SWIFTC=$(abspath $(TOP)/apple/build/Ninja-ReleaseAssert/swift-macosx-x86_64/bin/swiftc)
UNPACKAGED_SWIFTLIB=$(abspath $(TOP)/apple/build/Ninja-ReleaseAssert/swift-macosx-x86_64/lib/swift)
SYSTEM_SWIFTC=/usr/bin/swiftc
XCODEROOT=`xcode-select -p`
SYSTEM_SWIFTLIB="$(XCODEROOT)/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/"
SYSTEM_SWIFT=/usr/bin/swift
PLIST_SWIFTY:=mono --debug $(abspath $(TOP)/plist-swifty/bin/Debug/plist-swifty.exe)
TYPE_O_MATIC:=mono --debug $(abspath $(TOP)/type-o-matic/bin/Debug/type-o-matic.exe)
TOM_SWIFTY:=mono --debug $(abspath $(TOP)/tom-swifty/bin/Debug/tom-swifty.exe)
# Clone files instead of copying them on APFS file systems. Much faster.
CP:=$(shell df -t apfs / >/dev/null 2>&1 && echo "cp -c" || echo "cp")
# quiet commands
Q = $(if $(V),,@)
Q_2 = $(if $(V),,@echo "$(1) $(2) $(@F)";)
Q_FRAMEWORK = $(if $(V),,@echo "GEN $(NAME).framework";)
Q_GEN = $(if $(V),,@echo "GEN $(@F)";)
Q_LIPO = $(if $(V),,@echo "LIPO $(@F)";)
Q_SOM = $(if $(V),,@echo "BINDINGTOOLSFORSWIFT $(NAME)";)
Q_XCODEBUILD = $(if $(V),,@echo "XCODEBUILD/$* $(NAME)";)
Q_SWIFTC = $(if $(V),,@echo "SWIFTC $(@F)";)
# namespaces
TYPE_O_MATIC_COMMON_NAMESPACES= \
Accelerate \
Accounts \
AdSupport \
AudioToolbox \
AudioUnit \
AuthenticationServices \
AVFoundation \
AVKit \
BusinessChat \
CloudKit \
Compression \
Contacts \
ContactsUI \
CoreAudioKit \
CoreBluetooth \
CoreData \
CoreFoundation \
CoreGraphics \
CoreImage \
CoreLocation \
CoreMedia \
CoreML \
CoreMotion \
CoreServices \
CoreSpotlight \
CoreText \
CoreVideo \
DeviceCheck \
EventKit \
ExternalAccessory \
FileProvider \
FileProviderUI \
Foundation \
GameController \
GameKit \
GameplayKit \
GLKit \
ImageIO \
Intents \
IOSurface \
JavaScriptCore \
LocalAuthentication \
MapKit \
MediaAccessibility \
MediaPlayer \
MediaToolbox \
Metal \
MetalKit \
MetalPerformanceShaders \
MobileCoreServices \
ModelIO \
MultipeerConnectivity \
NaturalLanguage \
Network \
NetworkExtension \
NotificationCenter \
PdfKit \
Photos \
PhotosUI \
PushKit \
QuickLook \
SafariServices \
SceneKit \
Security \
Social \
Speech \
SpriteKit \
StoreKit \
SystemConfiguration \
UserNotifications \
VideoToolbox \
Vision \
WebKit \
TYPE_O_MATIC_MAC_NAMESPACES= \
$(TYPE_O_MATIC_COMMON_NAMESPACES) \
AppKit \
CFNetwork \
CoreAnimation \
CoreMidi \
CoreWlan \
ExecutionPolicy \
FinderSync \
ImageCaptureCore \
ImageKit \
LinkPresentation \
MediaLibrary \
OpenGL \
PencilKit \
PrintCore \
QTKit \
QuartzComposer \
QuickLookThumbnailing \
QuickLookUI \
ScriptingBridge \
SearchKit \
SoundAnalysis \
VideoSubscriberAccount \
WKWebKit \
iTunesLibrary \
TYPE_O_MATIC_IOS_NAMESPACES= \
$(TYPE_O_MATIC_COMMON_NAMESPACES) \
ARKit \
AddressBook \
AddressBookUI \
AssetsLibrary \
CallKit \
CarPlay \
ClassKit \
CoreNFC \
CoreTelephony \
EventKitUI \
HealthKit \
HealthKitUI \
HomeKit \
iAd \
IdentityLookup \
IdentityLookupUI \
IntentsUI \
MessageUI \
Messages \
NewsstandKit \
PassKit \
Registrar \
ReplayKit \
UIKit \
UserNotificationsUI \
WatchConnectivity \
WatchKit \