-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathImporter.Darwin.Tasks.pas
116 lines (92 loc) · 2.67 KB
/
Importer.Darwin.Tasks.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
namespace RemObjects.Elements.HI2;
uses
RemObjects.Elements.Basics;
type
Importer = public partial class
public
method ImportCurrentXcode;
begin
ImportXcode("16.2") Beta(2);
//ImportXcode("16.2") Name("RC");
//ImportXcode("16.1");
end;
method ImportSDKs;
begin
//GenerateCode := true;
//SwiftOnly := true;
Debug := true;
//SkipHI := true;
//GenerateCode := true;
//DontDeleteJson := true;
//SkipDeploymentTargets := true;
//SkipNonEssentialFrameworks := true;
//SkipDevice := true;
//SkipSimulator := true;
//SkipMacOS := true;
//SkipMacCatalyst := true;
//SkipIOS := true;
//SkipTvOS := true;
//SkipWatchOS := true;
//SkipVisionOS := true;
//
// do not change these below this line!
//
SkipSwift := true;
ImportIslandSDKs;
exit;
//
// Do Swift Import
//
// do not change these!
DontClean := true;
SkipDeploymentTargets := true;
SwiftOnly := true;
SkipSwift := false;
ImportIslandSDKs;
end;
property FrameworksFolder: String;
//
//
//
//method ImportToffeeSDKs;
//begin
//Darwin.Toffee := true;
//Darwin.Island := false;
//BaseFolder := Path.Combine(FrameworksFolder, "Toffee");
//ImportCurrentXcode();
//end;
method ImportIslandSDKs;
begin
Darwin.Toffee := false;
Darwin.Island := true;
BaseFolder := Path.Combine(FrameworksFolder, "Island");
ImportCurrentXcode();
end;
//
//
//
method ImportXcode(aVersion: String) Beta(aBeta: nullable Integer := nil) Name(aName: nullable String:= nil);
begin
if assigned(aBeta) then begin
Darwin.DeveloperFolder := $"{ApplicationsFolder}/Xcode-{aVersion}-Beta{aBeta}.app/Contents/Developer";
Darwin.BetaSuffix := $"Xcode {aVersion} Beta {aBeta}";
end
else if assigned(aName) then begin
Darwin.DeveloperFolder := $"{ApplicationsFolder}/Xcode-{aVersion}-{aName}.app/Contents/Developer";
Darwin.BetaSuffix := $"Xcode {aVersion} {aName}";
end
else begin
Darwin.DeveloperFolder := $"{ApplicationsFolder}/Xcode-{aVersion}.app/Contents/Developer";
Darwin.BetaSuffix := $"Xcode {aVersion}";
end;
Darwin.LoadVersionsFromXcode();
ImportMacOSSDK();
ImportMacCatalyst();
ImportIOSSDK();
ImportTvOSSDK();
ImportWatchOSSDK();
ImportVisionOSSDK();
//ImportDriverKitSDK();
end;
end;
end.