|
1 | 1 | import ProjectDescription |
2 | 2 |
|
3 | | -// MARK: - Process Headers Script |
| 3 | +// MARK: - Constants |
4 | 4 |
|
5 | | -let processHeadersScript: TargetScript = .pre( |
6 | | - script: """ |
7 | | - Scripts/Xcode/process_headers.sh |
8 | | - """, |
9 | | - name: "Process Headers", |
10 | | - inputFileListPaths: [ |
11 | | - "Scripts/Xcode/process_headers_inputs.xcfilelist", |
12 | | - ], |
13 | | - outputFileListPaths: [ |
14 | | - "Scripts/Xcode/process_headers_outputs.xcfilelist", |
15 | | - ] |
16 | | -) |
| 5 | +let destinations: Destinations = [.iPhone, .iPad, .mac, .appleVision] |
17 | 6 |
|
18 | 7 | // MARK: - Project |
19 | 8 |
|
20 | 9 | let project = Project( |
21 | 10 | name: "OpenAttributeGraph", |
22 | 11 | settings: .settings( |
23 | | - base: [ |
24 | | - "GCC_TREAT_WARNINGS_AS_ERRORS": "NO", |
25 | | - ], |
26 | 12 | configurations: [ |
27 | | - .debug(name: .debug, xcconfig: "Configs/Common.xcconfig"), |
28 | | - .release(name: .release, xcconfig: "Configs/Common.xcconfig"), |
29 | | - ] |
| 13 | + .debug(name: "Debug", xcconfig: "Configs/Common.xcconfig"), |
| 14 | + .release(name: "Release", xcconfig: "Configs/Common.xcconfig"), |
| 15 | + ], |
| 16 | + defaultSettings: .none |
30 | 17 | ), |
31 | 18 | targets: [ |
32 | 19 | .target( |
33 | 20 | name: "OpenAttributeGraph", |
34 | | - destinations: [.iPhone, .iPad, .mac, .appleVision], |
| 21 | + destinations: destinations, |
35 | 22 | product: .framework, |
36 | 23 | bundleId: "org.OpenSwiftUIProject.OpenAttributeGraph", |
37 | | - deploymentTargets: .multiplatform( |
38 | | - iOS: "18.0", |
39 | | - macOS: "15.0", |
40 | | - visionOS: "2.0" |
| 24 | + sources: [ |
| 25 | + "Sources/Platform/**", |
| 26 | + "Sources/Utilities/**", |
| 27 | + "Sources/OpenAttributeGraphCxx/**", |
| 28 | + "Sources/OpenAttributeGraph/**", |
| 29 | + ], |
| 30 | + headers: .headers( |
| 31 | + project: [ |
| 32 | + "Sources/OpenAttributeGraphCxx/include/**", |
| 33 | + "Sources/Platform/include/**", |
| 34 | + "Sources/Utilities/include/**", |
| 35 | + ] |
41 | 36 | ), |
42 | | - sources: .sourceFilesList(globs: [ |
43 | | - .glob( |
44 | | - "Sources/Platform/**", |
45 | | - excluding: ["Sources/Platform/README.md"] |
46 | | - ), |
47 | | - .glob( |
48 | | - "Sources/Utilities/**", |
49 | | - excluding: [ |
50 | | - "Sources/Utilities/README.md", |
51 | | - "Sources/Utilities/include/SwiftBridging/README.md", |
52 | | - ] |
53 | | - ), |
54 | | - .glob( |
55 | | - "Sources/OpenAttributeGraphCxx/**", |
56 | | - excluding: [ |
57 | | - "Sources/OpenAttributeGraphCxx/include/OpenAttributeGraphCxx/Vector/vector.tpp", |
58 | | - "Sources/OpenAttributeGraphCxx/include/SwiftBridging/README.md", |
| 37 | + scripts: [ |
| 38 | + .pre( |
| 39 | + path: "Scripts/Xcode/process_headers.sh", |
| 40 | + name: "Process Headers", |
| 41 | + inputPaths: [ |
| 42 | + "$(SRCROOT)/Scripts/Xcode/process_headers.sh", |
| 43 | + ], |
| 44 | + inputFileListPaths: [ |
| 45 | + "Scripts/Xcode/process_headers_inputs.xcfilelist", |
| 46 | + ], |
| 47 | + outputPaths: [], |
| 48 | + outputFileListPaths: [ |
| 49 | + "Scripts/Xcode/process_headers_outputs.xcfilelist", |
59 | 50 | ] |
60 | 51 | ), |
61 | | - "Sources/OpenAttributeGraph/**", |
62 | | - ]), |
63 | | - scripts: [processHeadersScript], |
| 52 | + ], |
64 | 53 | dependencies: [ |
65 | 54 | .sdk(name: "z", type: .library), |
66 | 55 | ], |
67 | 56 | settings: .settings( |
68 | 57 | base: [ |
69 | | - "GCC_TREAT_WARNINGS_AS_ERRORS": "NO", |
70 | 58 | "DEFINES_MODULE": "NO", |
71 | 59 | ], |
72 | 60 | configurations: [ |
73 | | - .debug(name: .debug, xcconfig: "Configs/OpenAttributeGraph.xcconfig"), |
74 | | - .release(name: .release, xcconfig: "Configs/OpenAttributeGraph.xcconfig"), |
75 | | - ] |
| 61 | + .debug(name: "Debug", xcconfig: "Configs/OpenAttributeGraph.xcconfig"), |
| 62 | + .release(name: "Release", xcconfig: "Configs/OpenAttributeGraph.xcconfig"), |
| 63 | + ], |
| 64 | + defaultSettings: .none |
76 | 65 | ) |
77 | 66 | ), |
78 | 67 | ] |
|
0 commit comments