-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathPackage.swift
More file actions
31 lines (29 loc) · 875 Bytes
/
Package.swift
File metadata and controls
31 lines (29 loc) · 875 Bytes
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
// swift-tools-version:5.5
import PackageDescription
import Foundation
let currentDirectory = URL(fileURLWithPath: FileManager.default.currentDirectoryPath)
let headerPath = currentDirectory.appendingPathComponent("node-addon/eventkit_node-Swift.h").path
let package = Package(
name: "eventkit_node",
platforms: [
.macOS(.v10_15)
],
products: [
.library(
name: "EventKitBridge",
type: .static,
targets: ["EventKitBridge"]),
],
dependencies: [],
targets: [
.target(
name: "EventKitBridge",
dependencies: [],
path: "node-addon",
sources: ["EventKitBridge.swift"],
swiftSettings: [
.unsafeFlags(["-emit-objc-header", "-emit-objc-header-path", "node-addon/eventkit_node-Swift.h"])
]
)
]
)