|
| 1 | +import ProjectDescription |
| 2 | + |
| 3 | +// MARK: - Process Headers Script |
| 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 | +) |
| 17 | + |
| 18 | +// MARK: - Project |
| 19 | + |
| 20 | +let project = Project( |
| 21 | + name: "OpenAttributeGraph", |
| 22 | + settings: .settings( |
| 23 | + configurations: [ |
| 24 | + .debug(name: .debug, xcconfig: "Configs/Common.xcconfig"), |
| 25 | + .release(name: .release, xcconfig: "Configs/Common.xcconfig"), |
| 26 | + ] |
| 27 | + ), |
| 28 | + targets: [ |
| 29 | + .target( |
| 30 | + name: "OpenAttributeGraph", |
| 31 | + destinations: [.iPhone, .iPad, .mac, .appleVision], |
| 32 | + product: .framework, |
| 33 | + bundleId: "org.OpenSwiftUIProject.OpenAttributeGraph", |
| 34 | + deploymentTargets: .multiplatform( |
| 35 | + iOS: "18.0", |
| 36 | + macOS: "15.0", |
| 37 | + visionOS: "2.0" |
| 38 | + ), |
| 39 | + sources: .sourceFilesList(globs: [ |
| 40 | + .glob( |
| 41 | + "Sources/Platform/**", |
| 42 | + excluding: ["Sources/Platform/README.md"] |
| 43 | + ), |
| 44 | + .glob( |
| 45 | + "Sources/Utilities/**", |
| 46 | + excluding: [ |
| 47 | + "Sources/Utilities/README.md", |
| 48 | + "Sources/Utilities/include/SwiftBridging/README.md", |
| 49 | + ] |
| 50 | + ), |
| 51 | + .glob( |
| 52 | + "Sources/OpenAttributeGraphCxx/**", |
| 53 | + excluding: [ |
| 54 | + "Sources/OpenAttributeGraphCxx/include/OpenAttributeGraphCxx/Vector/vector.tpp", |
| 55 | + "Sources/OpenAttributeGraphCxx/include/SwiftBridging/README.md", |
| 56 | + ] |
| 57 | + ), |
| 58 | + "Sources/OpenAttributeGraph/**", |
| 59 | + ]), |
| 60 | + scripts: [processHeadersScript], |
| 61 | + dependencies: [ |
| 62 | + .sdk(name: "libz", type: .library), |
| 63 | + ], |
| 64 | + settings: .settings( |
| 65 | + configurations: [ |
| 66 | + .debug(name: .debug, xcconfig: "Configs/OpenAttributeGraph.xcconfig"), |
| 67 | + .release(name: .release, xcconfig: "Configs/OpenAttributeGraph.xcconfig"), |
| 68 | + ] |
| 69 | + ) |
| 70 | + ), |
| 71 | + ] |
| 72 | +) |
0 commit comments