Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
48 lines (47 loc) · 1.6 KB
/
Copy pathPackage.swift
File metadata and controls
48 lines (47 loc) · 1.6 KB
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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "LayoutTest",
platforms: [.iOS(.v12)],
products: [
.library(name: "LayoutTest", targets: ["LayoutTest"]),
.library(name: "LayoutTestBase", targets: ["LayoutTestBase"])
],
targets: [
.target(
name: "LayoutTestBaseObjC",
path: "LayoutTestBase",
exclude: ["Info.plist", "Swift", "LayoutTestBase.h"],
publicHeadersPath: "include",
cSettings: [
.headerSearchPath("Autolayout"),
.headerSearchPath("Catalog"),
.headerSearchPath("Config"),
.headerSearchPath("Core"),
.headerSearchPath("Core/Generators"),
.headerSearchPath("Core/Generators/Private"),
.headerSearchPath("Core/Helpers"),
.headerSearchPath("Core/Testers"),
.headerSearchPath("Core/ViewSizing"),
.headerSearchPath("UIViewHelpers")
]
),
.target(
name: "LayoutTestBase",
dependencies: ["LayoutTestBaseObjC"],
path: "LayoutTestBase/Swift"
),
.target(
name: "LayoutTestObjC",
dependencies: ["LayoutTestBaseObjC"],
path: "LayoutTest/TestCase",
publicHeadersPath: "include",
linkerSettings: [.linkedFramework("XCTest")]
),
.target(
name: "LayoutTest",
dependencies: ["LayoutTestObjC", "LayoutTestBase"],
path: "LayoutTest/Swift"
)
]
)