forked from marcobambini/gravity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
60 lines (57 loc) · 1.57 KB
/
Package.swift
File metadata and controls
60 lines (57 loc) · 1.57 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
49
50
51
52
53
54
55
56
57
58
59
60
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
import CompilerPluginSupport
let package = Package(
name: "Gravity",
platforms: [
.macOS(.v12),
.iOS(.v16),
.tvOS(.v16),
.visionOS(.v1)
],
products: [
.library(
name: "Gravity",
targets: ["Gravity"]
)
],
dependencies: [
.package(url: "https://github.com/swiftlang/swift-syntax", from: "600.0.1")
],
targets: [
.executableTarget(
name: "GravitySwiftExample",
dependencies: ["Gravity"],
path: "examples/GravitySwiftExample",
resources: [
.copy("main.gravity"),
.copy("extern.gravity")
]
),
.target(
name: "Gravity",
dependencies: [
"CGravity",
"GravitySwiftMacros"
],
path: "binding/GravitySwift"
),
.target(
name: "CGravity",
path: "src",
exclude: ["cli"],
publicHeadersPath: "."
),
.macro(
name: "GravitySwiftMacros",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
],
path: "binding/GravitySwiftMacros"
)
],
cLanguageStandard: .gnu99,
cxxLanguageStandard: .gnucxx11
)