forked from dreamworksanimation/openmoonray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
97 lines (96 loc) · 2.07 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// swift-tools-version: 5.10
import PackageDescription
let package = Package(
name: "openmoonray",
platforms: [
.macOS(.v14),
.visionOS(.v1),
.iOS(.v17),
.tvOS(.v17),
.watchOS(.v10),
],
products: [
.library(
name: "OpenMoonRay",
targets: ["OpenMoonRay"]
),
.library(
name: "log4cplus",
targets: ["log4cplus"]
),
.library(
name: "scene_rdl2",
targets: ["scene_rdl2"]
),
.library(
name: "moonray",
targets: ["moonray"]
)
],
targets: [
.target(
name: "log4cplus",
path: "deps/log4cplus",
sources: [
"src"
],
cxxSettings: [
.define("_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH", .when(platforms: [.windows]))
]
),
.target(
name: "scene_rdl2",
dependencies: [
.target(name: "log4cplus")
],
path: "moonray/scene_rdl2",
exclude: [
"cmd",
"tests"
],
cxxSettings: [
.define("_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH", .when(platforms: [.windows]))
]
),
.target(
name: "moonray",
dependencies: [
.target(name: "scene_rdl2")
],
path: "moonray/moonray",
exclude: [
"cmd",
"lib/application",
"moonray/application",
"tests"
],
cxxSettings: [
.define("_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH", .when(platforms: [.windows]))
]
),
.target(
name: "OpenMoonRay",
dependencies: [
.target(name: "moonray")
],
cxxSettings: [
.define("_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH", .when(platforms: [.windows]))
],
swiftSettings: [
.interoperabilityMode(.Cxx)
]
),
.testTarget(
name: "OpenMoonRayTests",
dependencies: ["OpenMoonRay"],
cxxSettings: [
.define("_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH", .when(platforms: [.windows]))
],
swiftSettings: [
.interoperabilityMode(.Cxx)
]
),
],
cLanguageStandard: .gnu17,
cxxLanguageStandard: .cxx17
)