forked from swiftlang/indexstore-db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
95 lines (77 loc) · 2.21 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// swift-tools-version:4.2
import PackageDescription
let package = Package(
name: "IndexStoreDB",
products: [
.library(
name: "IndexStoreDB",
targets: ["IndexStoreDB"]),
.library(
name: "IndexStoreDB_CXX",
targets: ["IndexStoreDB_Index"]),
.library(
name: "ISDBTestSupport",
targets: ["ISDBTestSupport"]),
.executable(
name: "tibs",
targets: ["tibs"])
],
dependencies: [],
targets: [
// MARK: Swift interface
.target(
name: "IndexStoreDB",
dependencies: ["IndexStoreDB_CIndexStoreDB"]),
.testTarget(
name: "IndexStoreDBTests",
dependencies: ["IndexStoreDB", "ISDBTestSupport"]),
// MARK: Swift Test Infrastructure
// The Test Index Build System (tibs) library.
.target(
name: "ISDBTibs",
dependencies: []),
.testTarget(
name: "ISDBTibsTests",
dependencies: ["ISDBTibs"]),
// Commandline tool for working with tibs projects.
.target(
name: "tibs",
dependencies: ["ISDBTibs"]),
// Test support library, built on top of tibs.
.target(
name: "ISDBTestSupport",
dependencies: ["IndexStoreDB", "ISDBTibs"]),
// MARK: C++ interface
// Primary C++ interface.
.target(
name: "IndexStoreDB_Index",
dependencies: ["IndexStoreDB_Database"],
path: "lib/Index"),
// C wrapper for IndexStoreDB_Index.
.target(
name: "IndexStoreDB_CIndexStoreDB",
dependencies: ["IndexStoreDB_Index"],
path: "lib/CIndexStoreDB"),
// The lmdb database layer.
.target(
name: "IndexStoreDB_Database",
dependencies: ["IndexStoreDB_Core"],
path: "lib/Database"),
// Core index types.
.target(
name: "IndexStoreDB_Core",
dependencies: ["IndexStoreDB_Support"],
path: "lib/Core"),
// Support code that is generally useful to the C++ implementation.
.target(
name: "IndexStoreDB_Support",
dependencies: ["IndexStoreDB_LLVMSupport"],
path: "lib/Support"),
// Copy of a subset of llvm's ADT and Support libraries.
.target(
name: "IndexStoreDB_LLVMSupport",
dependencies: [],
path: "lib/LLVMSupport"),
],
cxxLanguageStandard: .cxx11
)