-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
51 lines (49 loc) · 1.31 KB
/
Package.swift
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
// swift-tools-version:5.8
import PackageDescription
import Foundation
let SCADE_SDK = ProcessInfo.processInfo.environment["SCADE_SDK"] ?? ""
let scadeSetting: [SwiftSetting] = [
.unsafeFlags(["-F", SCADE_SDK], .when(platforms: [.macOS, .iOS])),
.unsafeFlags(["-I", "\(SCADE_SDK)/include"], .when(platforms: [.android]))
]
let package = Package(
name: "Swifting",
platforms: [
.macOS(.v10_15), .iOS(.v13)
],
products: [
.library(name: "Swifting", type: .static, targets: ["Swifting"]),
.library(name: "Services", targets: ["Services"]),
.library(name: "Core", targets: ["Core"])
],
dependencies: [],
targets: [
.target(
name: "Swifting",
dependencies: [
"Services"
],
exclude: [
"splash.page",
"home.page",
"search.page",
"detail.page"
],
swiftSettings: scadeSetting
),
.target(
name: "Services",
dependencies: [
"Core"
],
resources: [
.process("Resources/Services.plist")
],
swiftSettings: scadeSetting
),
.target(
name: "Core",
swiftSettings: scadeSetting
)
]
)