-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathPackage.swift
49 lines (48 loc) · 1.37 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
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "WasmInterpreter",
platforms: [
.macOS(.v11), .iOS(.v14),
],
products: [
.library(
name: "WasmInterpreter",
targets: ["WasmInterpreter"]
),
],
dependencies: [
.package(
url: "https://github.com/shareup/synchronized.git",
from: "4.0.0"
),
],
targets: [
.target(
name: "WasmInterpreter",
dependencies: [
"CWasm3",
.product(name: "Synchronized", package: "synchronized"),
],
cSettings: [
.define("APPLICATION_EXTENSION_API_ONLY", to: "YES"),
]
),
.binaryTarget(
name: "CWasm3",
url: "https://github.com/shareup/cwasm3/releases/download/v0.5.2/CWasm3-0.5.0.xcframework.zip",
checksum: "a2b0785be1221767d926cee76b087f168384ec9735b4f46daf26e12fae2109a3"
),
.testTarget(
name: "WasmInterpreterTests",
dependencies: ["WasmInterpreter"],
exclude: [
"Resources/constant.wat",
"Resources/memory.wat",
"Resources/fib64.wat",
"Resources/imported-add.wat",
"Resources/add.wat",
]
),
]
)