-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
70 lines (62 loc) · 1.91 KB
/
Package.swift
File metadata and controls
70 lines (62 loc) · 1.91 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
61
62
63
64
65
66
67
68
69
70
// swift-tools-version: 6.1
import PackageDescription
let package = Package(
name: "swift-webm",
platforms: [
.iOS(.v18),
.macOS(.v15)
],
products: [
.library(
name: "CWebM",
targets: ["CWebM"]
),
],
targets: [
// MARK: - CWebM
.target(
name: "CWebM",
dependencies: ["libwebm"],
publicHeadersPath: "include",
cxxSettings: [
.headerSearchPath("../libwebm"),
.headerSearchPath("../libwebm/mkvparser"),
.headerSearchPath("../libwebm/mkvmuxer"),
.headerSearchPath("../libwebm/common"),
.define("MKVPARSER_HEADER_ONLY", to: "0"),
.define("MKVMUXER_HEADER_ONLY", to: "0"),
.define("_LIBCPP_DISABLE_AVAILABILITY", to: "1"),
],
linkerSettings: [
.linkedLibrary("c++")
]
),
// MARK: - libwebm
.target(
name: "libwebm",
dependencies: [],
sources: [
"mkvparser/mkvparser.cc",
"mkvparser/mkvreader.cc",
"mkvmuxer/mkvmuxer.cc",
"mkvmuxer/mkvmuxerutil.cc",
"mkvmuxer/mkvwriter.cc",
"common/webm_endian.cc",
],
publicHeadersPath: ".",
cxxSettings: [
.headerSearchPath("."),
.headerSearchPath("mkvparser"),
.headerSearchPath("mkvmuxer"),
.headerSearchPath("common"),
.define("MKVPARSER_HEADER_ONLY", to: "0"),
.define("MKVMUXER_HEADER_ONLY", to: "0"),
.define("_LIBCPP_DISABLE_AVAILABILITY", to: "1"),
],
linkerSettings: [
.linkedLibrary("c++")
]
),
],
cxxLanguageStandard: .cxx14
)