@@ -25,7 +25,8 @@ let package = Package(
25
25
26
26
. target(
27
27
name: " IndexStoreDB " ,
28
- dependencies: [ " IndexStoreDB_CIndexStoreDB " ] ) ,
28
+ dependencies: [ " IndexStoreDB_CIndexStoreDB " ] ,
29
+ exclude: [ " CMakeLists.txt " ] ) ,
29
30
30
31
. testTarget(
31
32
name: " IndexStoreDBTests " ,
@@ -61,19 +62,29 @@ let package = Package(
61
62
. target(
62
63
name: " IndexStoreDB_Index " ,
63
64
dependencies: [ " IndexStoreDB_Database " ] ,
64
- path: " lib/Index " ) ,
65
+ path: " lib/Index " ,
66
+ exclude: [
67
+ " CMakeLists.txt " ,
68
+ " indexstore_functions.def " ,
69
+ ] ) ,
65
70
66
71
// C wrapper for IndexStoreDB_Index.
67
72
. target(
68
73
name: " IndexStoreDB_CIndexStoreDB " ,
69
74
dependencies: [ " IndexStoreDB_Index " ] ,
70
- path: " lib/CIndexStoreDB " ) ,
75
+ path: " lib/CIndexStoreDB " ,
76
+ exclude: [ " CMakeLists.txt " ] ) ,
71
77
72
78
// The lmdb database layer.
73
79
. target(
74
80
name: " IndexStoreDB_Database " ,
75
81
dependencies: [ " IndexStoreDB_Core " ] ,
76
82
path: " lib/Database " ,
83
+ exclude: [
84
+ " CMakeLists.txt " ,
85
+ " lmdb/LICENSE " ,
86
+ " lmdb/COPYRIGHT " ,
87
+ ] ,
77
88
cSettings: [
78
89
. define( " MDB_USE_POSIX_MUTEX " , to: " 1 " ,
79
90
// Windows does not use POSIX mutex
@@ -85,19 +96,47 @@ let package = Package(
85
96
. target(
86
97
name: " IndexStoreDB_Core " ,
87
98
dependencies: [ " IndexStoreDB_Support " ] ,
88
- path: " lib/Core " ) ,
99
+ path: " lib/Core " ,
100
+ exclude: [ " CMakeLists.txt " ] ) ,
89
101
90
102
// Support code that is generally useful to the C++ implementation.
91
103
. target(
92
104
name: " IndexStoreDB_Support " ,
93
105
dependencies: [ " IndexStoreDB_LLVMSupport " ] ,
94
- path: " lib/Support " ) ,
106
+ path: " lib/Support " ,
107
+ exclude: [ " CMakeLists.txt " ] ) ,
95
108
96
109
// Copy of a subset of llvm's ADT and Support libraries.
97
110
. target(
98
111
name: " IndexStoreDB_LLVMSupport " ,
99
112
dependencies: [ ] ,
100
- path: " lib/LLVMSupport " ) ,
113
+ path: " lib/LLVMSupport " ,
114
+ exclude: [
115
+ " LICENSE.TXT " ,
116
+ " CMakeLists.txt " ,
117
+ // *.inc, *.def
118
+ " include/llvm/Support/AArch64TargetParser.def " ,
119
+ " include/llvm/Support/ARMTargetParser.def " ,
120
+ " include/llvm/Support/X86TargetParser.def " ,
121
+ " Support/Unix/Host.inc " ,
122
+ " Support/Unix/Memory.inc " ,
123
+ " Support/Unix/Mutex.inc " ,
124
+ " Support/Unix/Path.inc " ,
125
+ " Support/Unix/Process.inc " ,
126
+ " Support/Unix/Program.inc " ,
127
+ " Support/Unix/Signals.inc " ,
128
+ " Support/Unix/Threading.inc " ,
129
+ " Support/Unix/Watchdog.inc " ,
130
+ " Support/Windows/Host.inc " ,
131
+ " Support/Windows/Memory.inc " ,
132
+ " Support/Windows/Mutex.inc " ,
133
+ " Support/Windows/Path.inc " ,
134
+ " Support/Windows/Process.inc " ,
135
+ " Support/Windows/Program.inc " ,
136
+ " Support/Windows/Signals.inc " ,
137
+ " Support/Windows/Threading.inc " ,
138
+ " Support/Windows/Watchdog.inc " ,
139
+ ] ) ,
101
140
] ,
102
141
103
142
cxxLanguageStandard: . cxx14
0 commit comments