-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
31 lines (28 loc) · 956 Bytes
/
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
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import CompilerPluginSupport
import Foundation
import PackageDescription
let package = Package(
name: "NAPI-Swift",
platforms: [
.macOS(.v10_15), .iOS(.v13),
],
products: [
.library(
name: "NodeAPI",
targets: ["NodeAPI"]),
// the example
.library(name: "HelloWorld", type: .dynamic, targets: ["HelloWorld"]),
],
targets: [
// use as the napi module register entry
.target(name: "HelloWorld", dependencies: ["NodeAPI"]),
.systemLibrary(name: "CNodeAPI"),
.target(name: "CNodeAPISupport"),
.target(name: "NodeModuleSupport", dependencies: ["CNodeAPI"]),
.target(
name: "NodeAPI", dependencies: ["CNodeAPI", "CNodeAPISupport", "NodeModuleSupport"]),
],
cxxLanguageStandard: .cxx17
)