-
Notifications
You must be signed in to change notification settings - Fork 2
/
Constants.Darwin.RTL.pas
212 lines (194 loc) · 10.9 KB
/
Constants.Darwin.RTL.pas
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
namespace RemObjects.Elements.HI2;
type
Darwin = public static partial class
private
const rtlFiles = [
"assert.h",
"copyfile.h",
"ctype.h",
"compression.h",
"cups/cups.h",
"cups/ppd.h",
"device/*.h",
"dirent.h",
"dlfcn.h",
"errno.h",
"i386/limits.h",
"iconv.h",
"inttypes.h",
"limits.h",
"locale.h",
"math.h",
"netdb.h",
"netinet/in.h",
"netinet/in6_var.h",
"netinet/ip.h",
"netinet/tcp.h",
"netinet/tcpip.h",
"netinet/udp.h",
"pthread/pthread.h",
"pwd.h",
"regex.h",
"setjmp.h",
"signal.h",
"simd/simd.h",
"stddef.h",
"stdint.h",
"stdio.h",
"stdlib.h",
"sys/event.h",
"sys/ioctl.h",
"sys/mount.h",
"sys/stat.h",
"sys/sysctl.h",
"sys/utsname.h",
"TargetConditionals.h",
"time.h",
"unwind.h",
"wchar.h",
"wctype.h",
"xpc/xpc.h"
//"bsm/*.h", //iOS6: bsm/audit_filter.h (51:40 pp: 91) One of ClosingParenthesis, Comma expected; current token: Identifier tok
//"net/*.h", //iOS6: net/pfkeyv2.h (109:3 pp: 135) Declaration expected; current token: Identifier u_int8_t
//"netinet6/*.h", //iOS6: do not include netinet6/in6.h directly, include netinet/in.h. see RFC2553
//"NSSystemDirectories.h",
//"os/*.h",
//"pthread/pthread.h",
//"rpc/*.h", //iOS6: rpc/xdr.h (129:3 pp: 176) Declaration expected; current token: Identifier bool_t
//"rpcsvc/*.h", // rpcsvc/yp_prot.h (146:2 pp: 178) (146:2 pp: 178) Declaration expected; current token: Identifier bool_t
//"stdbool.h",
//"sys/_types/*.h",
//"sys/event.h",
//"sys/ioctl.h",
//"sys/mount.h",
//"sys/utsname.h",
//"xpc/xpc.h",
];
const rtlFiles_macOS = [//"cups/*.h",
//"curl/*.h",
//"DNSServiceDiscovery/*.h",
//"editline/*.h",
//"ffi/*.h",
//"gssapi/*.h",
//"hfs/*.h",*/ //TEST LATER
//"net-snmp/*.h", //net-snmp/types.h (11) "Please include <net-snmp/net-snmp-config.h> before this file"
//"netkey/*.h", //netkey/keysock.h (39:2 pp: 93) Declaration expected; current token: Identifier u_quad_t
//"nfs/*.h", //An error occurred: nfs/krpc.h (39:2 pp: 107) Declaration expected; current token: Identifier mbuf_t
//"openssl/*.h", // deprecated, not sure if worth including, might break 10.9. also An error occurred: openssl/bn.h (284:2 pp: 996) Declaration expected; current token: Identifier BN_ULONG
//"pcap/*.h", //pcap/namedb.h (56:63 pp: 96) Declaration expected; current token: Identifier FILE
//"protocols/*.h", //10.6: protocols/dumprestore.h (102:35 pp: 134) Declaration expected; current token: Identifier daddr_t
//"sasl/*.h", // sasl/hmac-md5.h (11:5 pp: 54) Declaration expected; current token: Identifier MD5_CTX
//"security/*.h", // security/mac_policy.h (83) Cannot find include file: security/security/_label.h
//"vfs/*.h", // fs/vfs_support.h (48) Cannot find include file: vfs/sys/systm.h
"arpa/*.h",
"CommonCrypto/*.h",
"dispatch/dispatch.h",
"libkern/*.h",
"mach-o/*.h",
"malloc/*.h",
"objc/*.h",
"sys/_types/*.h",
"uuid/*.h",
"xar/*.h"
];
//const rtlFiles_DrivereKit = [];
const rtlFiles_iOS = [
"arpa/*.h",
"CommonCrypto/*.h",
"dispatch/dispatch.h",
"libkern/*.h",
"mach-o/*.h",
"malloc/*.h",
"objc/*.h",
"os/log.h",
"sys/_types/*.h",
"uuid/*.h",
"arm/limits.h"];
property rtlFiles_iOSSimulator: array of String read rtlFiles_iOS;
property rtlFiles_watchOS: array of String read rtlFiles_iOS;
property rtlFiles_watchOSSimulator: array of String read rtlFiles_iOSSimulator;
property rtlFiles_tvOS: array of String read rtlFiles_iOS;
property rtlFiles_tvOSSimulator: array of String read rtlFiles_iOSSimulator;
property rtlFiles_visionOS: array of String read rtlFiles_iOS;
property rtlFiles_visionOSSimulator: array of String read rtlFiles_iOSSimulator;
//
//
//
const indirectRtlFiles = [
"_wctype.h",
"dispatch/*.h",
//"mach-o/i386/*.h",
//"mach-o/ppc/*.h" ,
//"mach-o/x86_64/*.h",
"netinet6/in6.h",
"simd/*.h",
"sys/*.h",
"sys/*.h",
"xlocale/*.h"
];
const indirectRtlFiles_macOS = ["mach-o/i386/*.h", "mach-o/x86_64/*.h", "os/*.h"];
const indirectRtlFiles_iOS = ["mach-o/arm/*.h", "mach-o/arm64/*.h"];
const indirectRtlFiles_watchOS: array of String = []; // ["mach-o/arm/*.h", "mach-o/arm64/*.h"];
const indirectRtlFiles_tvOS = ["mach-o/arm64/*.h"];
const indirectRtlFiles_visionOS: array of String = [];
const indirectRtlFiles_DriverKit: array of String = [];
property indirectRtlFiles_iOSSimulator: array of String read indirectRtlFiles_macOS;
const indirectRtlFiles_tvOSSimulator = ["mach-o/x86_64/*.h"];
const indirectRtlFiles_watchOSSimulator: array of String = [];//"mach-o/i386/*.h"];
const indirectRtlFiles_visionOSSimulator: array of String = [];
//
//
//
var forceIncludes_Shared := "[
{ 'Key': 'ApplicationServices/HIServices/AXAttributeConstants.h', 'Value': ['CoreFoundation/CoreFoundation.h'] },
{ 'Key': 'ApplicationServices/HIServices/AXNotificationConstants.h', 'Value': ['CoreFoundation/CoreFoundation.h'] },
{ 'Key': 'ApplicationServices/PrintCore/PDEPluginInterface.h', 'Value': ['Foundation/NSObjCRuntime.h'] },
{ 'Key': 'AudioToolbox/AudioToolbox.h', 'Value': ['CoreMIDI/CoreMIDI.h'] },
{ 'Key': 'CalendarStore/CalendarStore.h', 'Value': ['Foundation/Foundation.h'] },
{ 'Key': 'CFOpenDirectory/CFOpenDirectory.h', 'Value': ['Foundation/Foundation.h'] },
{ 'Key': 'CoreTelephony/CTCellularData.h', 'Value': ['Foundation/Foundation.h'] },
{ 'Key': 'EventKit/EventKit.h', 'Value': ['Foundation/Foundation.h'] },
{ 'Key': 'ExternalAccessory/ExternalAccessory.h', 'Value': ['Foundation/Foundation.h'] },
{ 'Key': 'ImageCaptureCore/ImageCaptureCore.h', 'Value': ['Foundation/Foundation.h'] },
{ 'Key': 'IMServicePlugIn/IMServicePlugIn.h', 'Value': ['Foundation/Foundation.h'] },
{ 'Key': 'IOKit/graphics/IOGraphicsInterface.h', 'Value': ['IOKit/graphics/IOGraphicsInterfaceTypes.h'] },
{ 'Key': 'IOKit/i2c/IOI2CInterface.h', 'Value': ['MacTypes.h', 'IOKit/IOReturn.h'] },
{ 'Key': 'IOKit/ndrvsupport/IOMacOSVideo.h', 'Value': ['IOKit/graphics/IOGraphicsTypes.h'] },
{ 'Key': 'IOKit/network/IOEthernetStats.h', 'Value': ['MacTypes.h'] },
{ 'Key': 'IOKit/network/IONetworkStats.h', 'Value': ['MacTypes.h'] },
{ 'Key': 'IOKit/ps/IOPowerSources.h', 'Value': ['CoreFoundation/CoreFoundation.h'] },
{ 'Key': 'IOKit/pwr_mgt/IOPMLibDefs.h', 'Value': ['Availability.h'] },
{ 'Key': 'IOKit/DV/DVFamily.h', 'Value': ['MacTypes.h'] },
{ 'Key': 'IOKit/graphics/IOGraphicsEngine.h', 'Value': ['MacTypes.h'] },
{ 'Key': 'IOKit/sbp2/IOFireWireSBP2Lib.h', 'Value': ['CoreFoundation/CFPlugInCOM.h'] },
{ 'Key': 'JavaRuntimeSupport/JavaRuntimeSupport.h', 'Value': ['Foundation/Foundation.h'] },
{ 'Key': 'OpenDirectory/CFOpenDirectory/CFOpenDirectoryConstants.h', 'Value': ['CoreFoundation/CoreFoundation.h'] },
{ 'Key': 'Quartz/ImageKit/ImageKitDeprecated.h', 'Value': ['Foundation/Foundation.h'] },
{ 'Key': 'SafariServices/SafariServices.h', 'Value': ['UIKit/UIActivity.h'] },
{ 'Key': 'IOKit/hid/IOHIDBase.h', 'Value': ['CoreFoundation/CFBase.h'] },
{ 'Key': 'Foundation/NSItemProvider.h', 'Value': ['Foundation/NSError.h'] },
{ 'Key': 'CoreServices/OSServices/Power.h', 'Value': ['availability.h','os/availability.h'] },
{ 'Key': 'IOBluetoothUI/IOBluetoothUI.h', 'Value': ['availability.h','os/availability.h'] },
{ 'Key': 'CoreText/SFNTLayoutTypes.h', 'Value': ['os/availability.h'] },
{ 'Key': 'CoreThreadCommissionerService/THThreadNetworkBorderAgent.h', 'Value': ['Foundation/NSObject.h'] },
]".Replace("'",'"');
var forceIncludes_iOS := "[
{ 'Key': 'GameKit/GameKit.h', 'Value': ['UIKit/UIKit.h', 'OpenGLES/gltypes.h']},
{ 'Key': 'GLKit/GLKit.h', 'Value': ['OpenGLES/gltypes.h']},
{ 'Key': 'NotificationCenter/NotificationCenter.h', 'Value': ['UIKit/UIVisualEffectView.h'] },
{ 'Key': 'SceneKit/SceneKit.h', 'Value': ['CoreImage/CoreImage.h'] },
{ 'Key': 'Social/Social.h', 'Value': ['UIKit/UITextView.h']},
{ 'Key': 'ImageCaptureCore/ICDevice.h', 'Value': ['availability.h']}
{ 'Key': 'SystemConfiguration/SystemConfiguration.h', 'Value': ['SystemConfiguration/CaptiveNetwork.h']}
]".Replace("'",'"');
var forceIncludes_watchOS := forceIncludes_iOS;
var forceIncludes_tvOS := forceIncludes_iOS;
var forceIncludes_visionOS := forceIncludes_iOS;
var forceIncludes_macOS := "[
{ 'Key': 'Quartz/ImageKit/IKImageEditPanel.h', 'Value': ['Foundation/NSError.h']},
{ 'Key': 'Quartz/ImageKit/IKImageView.h', 'Value': ['Foundation/NSError.h']},
{ 'Key': 'Hypervisor/hv_vmx.h', 'Value': ['Hypervisor/hv.h']},
{ 'Key': 'Automator/AMAction.h', 'Value': ['CoreGraphics/CoreGraphics.h']}
]".Replace("'",'"');
end;
end.