forked from msgpack/msgpack-objectivec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
53 lines (52 loc) · 1.5 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
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "msgpack",
platforms: [
.macOS(.v10_13),
.iOS(.v15)
],
products: [
.library(
name: "msgpack",
targets: ["msgpack"]
)
],
dependencies: [
.package(url: "https://github.com/nnabeyang/msgpack-c", exact: "0.5.7")
],
targets: [
.target(
name: "msgpack",
dependencies: [
.product(name: "msgpackc", package: "msgpack-c")
],
path: ".",
exclude: [
"readme.md",
"Package.swift"
],
sources: [
"MessagePack.h",
"MessagePackPacker.h",
"MessagePackPacker.m",
"MessagePackParser+Streaming.h",
"MessagePackParser+Streaming.m",
"MessagePackParser.h",
"MessagePackParser.m",
"NSArray+MessagePack.h",
"NSArray+MessagePack.m",
"NSData+MessagePack.h",
"NSData+MessagePack.m",
"NSDictionary+MessagePack.h",
"NSDictionary+MessagePack.m"
],
publicHeadersPath: "include",
cxxSettings: [
.headerSearchPath("include"),
]
)
],
cxxLanguageStandard: .cxx17
)