forked from dinhvh/ctemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPackage.swift
45 lines (42 loc) · 1.27 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
// swift-tools-version:5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let target: String
#if TARGET_ANDROID
target = "android"
#else
target = "apple"
#endif
let package = Package(
name: "ctemplate",
products: [
.library(name: "ctemplate", type: .static, targets: ["ctemplate"]),
],
dependencies: [],
targets: [
.target(
name: "ctemplate",
path: ".",
sources: [
"src/htmlparser/htmlparser.cc",
"src/htmlparser/jsparser.cc",
"src/htmlparser/statemachine.cc",
"src/base/arena.cc",
"src/per_expand_data.cc",
"src/template.cc",
"src/template_dictionary.cc",
"src/template_pathops.cc",
"src/template_annotator.cc",
"src/template_modifiers.cc",
"src/template_string.cc",
"src/template_cache.cc",
"src/template_namelist.cc",
],
publicHeadersPath: "include/\(target)",
cSettings: [
.headerSearchPath("config/\(target)"),
.headerSearchPath("src")
]
)
]
)