-
Notifications
You must be signed in to change notification settings - Fork 11
/
Package.swift
76 lines (68 loc) · 2.93 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
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
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
//
// SPDX-License-Identifier: Apache-2.0
// Copyright Contributors to the OpenTimelineIO project
import PackageDescription
let package = Package(
name: "OpenTimelineIO",
platforms: [.macOS(.v10_13),
.iOS(.v11)],
products: [
.library(name: "OpenTime_CXX", targets: ["OpenTime_CXX"]),
.library(name: "OpenTimelineIO_CXX", targets: ["OpenTimelineIO_CXX"]),
.library(name: "OpenTimelineIO", targets: ["OpenTimelineIO"])
],
dependencies: [],
targets: [
.target(name: "otio_header_root",
path: ".",
exclude: [
"CONTRIBUTORS.md", "NOTICE.txt", "CONTRIBUTING.md", "LICENSE.txt", "CODE_OF_CONDUCT.md",
"OTIO_CLA_Corporate.pdf", "OTIO_CLA_Individual.pdf",
"README.md", "Examples", "OpenTimelineIO", "Tests", "Sources/objc", "Sources/swift"],
sources: ["Sources/shims/otio_header_root-shim.cpp"],
publicHeadersPath:"OpenTimelineIO/src"),
.target(name: "OpenTime_CXX",
dependencies: ["otio_header_root"],
path: "OpenTimelineIO/src/opentime",
exclude: ["CMakeLists.txt", "OpenTimeConfig.cmake.in"],
sources: ["."],
publicHeadersPath: ".",
cxxSettings: [ .headerSearchPath(".")]),
.target(name: "OpenTimelineIO_CXX",
dependencies: ["OpenTime_CXX"],
path: "OpenTimelineIO/src/opentimelineio",
exclude: ["CMakeLists.txt", "CORE_VERSION_MAP.last.cpp", "OpenTimelineIOConfig.cmake.in"],
sources: ["."],
publicHeadersPath: ".",
cxxSettings: [
.headerSearchPath("."),
.headerSearchPath("../deps/any/"),
.headerSearchPath("../deps/Imath/src/Imath"),
.headerSearchPath("../../../Sources/cpp"),
.headerSearchPath("../deps/rapidjson/include")]),
.target(name: "OpenTimelineIO_objc",
dependencies: ["OpenTimelineIO_CXX"],
path: "Sources",
exclude: ["swift", "shims"],
sources: ["objc"],
publicHeadersPath: "objc/include",
cxxSettings: [
.headerSearchPath("../OpenTimelineIO/src/deps/Imath/src/Imath"),
.headerSearchPath("../Sources/cpp"),
.headerSearchPath("objc/include")]),
// public target
.target(name: "OpenTimelineIO",
dependencies: ["OpenTimelineIO_objc"],
path: "Sources",
exclude: ["objc", "shims"],
sources: ["swift"]),
.testTarget(name: "OpenTimelineIOTests",
dependencies: ["OpenTimelineIO"],
path: "Tests",
sources: ["OpenTimelineIOTests"],
resources: [ .copy("data") ])
],
cxxLanguageStandard: CXXLanguageStandard.cxx17
)