OLD | NEW |
---|---|
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | |
7 'use_system_sqlite%': 0, | |
8 }, | |
6 'includes': [ | 9 'includes': [ |
7 '../../build/common.gypi', | 10 '../../build/common.gypi', |
8 ], | 11 ], |
9 'target_defaults': { | 12 'target_defaults': { |
10 'defines': [ | 13 'defines': [ |
11 'SQLITE_ENABLE_FTS2', | 14 'SQLITE_ENABLE_FTS2', |
12 'SQLITE_ENABLE_BROKEN_FTS2', | 15 'SQLITE_ENABLE_BROKEN_FTS2', |
13 'SQLITE_ENABLE_ICU', | 16 'SQLITE_ENABLE_ICU', |
14 'SQLITE_SECURE_DELETE', | 17 'SQLITE_SECURE_DELETE', |
15 'THREADSAFE', | 18 'THREADSAFE', |
16 '_HAS_EXCEPTIONS=0', | 19 '_HAS_EXCEPTIONS=0', |
17 ], | 20 ], |
18 }, | 21 }, |
19 'targets': [ | 22 'targets': [ |
20 { | 23 { |
21 'target_name': 'sqlite', | 24 'target_name': 'sqlite', |
22 'product_name': 'sqlite3', | |
23 'type': 'static_library', | |
24 'msvs_guid': '6EAD4A4B-2BBC-4974-8E45-BB5C16CC2AC9', | |
25 'sources': [ | |
26 # This list contains all .h, .c, and .cc files in the directories | |
27 # ext, preprocessed, and src, with the exception of src/shell* and | |
28 # src/test*. Exclusions are applied below in the sources/ and | |
29 # sources! sections. | |
30 'ext/fts1/ft_hash.c', | |
31 'ext/fts1/ft_hash.h', | |
32 'ext/fts1/fts1.c', | |
33 'ext/fts1/fts1.h', | |
34 'ext/fts1/fts1_hash.c', | |
35 'ext/fts1/fts1_hash.h', | |
36 'ext/fts1/fts1_porter.c', | |
37 'ext/fts1/fts1_tokenizer.h', | |
38 'ext/fts1/fts1_tokenizer1.c', | |
39 'ext/fts1/fulltext.c', | |
40 'ext/fts1/fulltext.h', | |
41 'ext/fts1/simple_tokenizer.c', | |
42 'ext/fts1/tokenizer.h', | |
43 'ext/fts2/fts2.c', | |
44 'ext/fts2/fts2.h', | |
45 'ext/fts2/fts2_hash.c', | |
46 'ext/fts2/fts2_hash.h', | |
47 'ext/fts2/fts2_icu.c', | |
48 'ext/fts2/fts2_porter.c', | |
49 'ext/fts2/fts2_tokenizer.c', | |
50 'ext/fts2/fts2_tokenizer.h', | |
51 'ext/fts2/fts2_tokenizer1.c', | |
52 'ext/fts3/fts3.c', | |
53 'ext/fts3/fts3.h', | |
54 'ext/fts3/fts3_hash.c', | |
55 'ext/fts3/fts3_hash.h', | |
56 'ext/fts3/fts3_icu.c', | |
57 'ext/fts3/fts3_porter.c', | |
58 'ext/fts3/fts3_tokenizer.c', | |
59 'ext/fts3/fts3_tokenizer.h', | |
60 'ext/fts3/fts3_tokenizer1.c', | |
61 'ext/icu/icu.c', | |
62 'ext/rtree/rtree.c', | |
63 'ext/rtree/rtree.h', | |
64 'preprocessed/keywordhash.h', | |
65 'preprocessed/opcodes.c', | |
66 'preprocessed/opcodes.h', | |
67 'preprocessed/parse.c', | |
68 'preprocessed/parse.h', | |
69 'preprocessed/sqlite3.h', | |
70 'src/alter.c', | |
71 'src/analyze.c', | |
72 'src/attach.c', | |
73 'src/auth.c', | |
74 'src/bitvec.c', | |
75 'src/btmutex.c', | |
76 'src/btree.c', | |
77 'src/btree.h', | |
78 'src/btreeInt.h', | |
79 'src/build.c', | |
80 'src/callback.c', | |
81 'src/complete.c', | |
82 'src/date.c', | |
83 'src/delete.c', | |
84 'src/expr.c', | |
85 'src/fault.c', | |
86 'src/func.c', | |
87 'src/global.c', | |
88 'src/hash.c', | |
89 'src/hash.h', | |
90 'src/hwtime.h', | |
91 'src/insert.c', | |
92 'src/journal.c', | |
93 'src/legacy.c', | |
94 'src/loadext.c', | |
95 'src/main.c', | |
96 'src/malloc.c', | |
97 'src/md5.c', | |
98 'src/mem1.c', | |
99 'src/mem2.c', | |
100 'src/mem3.c', | |
101 'src/mem4.c', | |
102 'src/mem5.c', | |
103 'src/mem6.c', | |
104 'src/mutex.c', | |
105 'src/mutex.h', | |
106 'src/mutex_os2.c', | |
107 'src/mutex_unix.c', | |
108 'src/mutex_w32.c', | |
109 'src/os.c', | |
110 'src/os.h', | |
111 'src/os_common.h', | |
112 'src/os_os2.c', | |
113 'src/os_symbian.cc', | |
114 'src/os_unix.c', | |
115 'src/os_win.c', | |
116 'src/pager.c', | |
117 'src/pager.h', | |
118 'src/pragma.c', | |
119 'src/prepare.c', | |
120 'src/printf.c', | |
121 'src/random.c', | |
122 'src/select.c', | |
123 'src/sqlite3ext.h', | |
124 'src/sqliteInt.h', | |
125 'src/sqliteLimit.h', | |
126 'src/status.c', | |
127 'src/table.c', | |
128 'src/tclsqlite.c', | |
129 'src/tokenize.c', | |
130 'src/trigger.c', | |
131 'src/update.c', | |
132 'src/utf.c', | |
133 'src/util.c', | |
134 'src/vacuum.c', | |
135 'src/vdbe.c', | |
136 'src/vdbe.h', | |
137 'src/vdbeInt.h', | |
138 'src/vdbeapi.c', | |
139 'src/vdbeaux.c', | |
140 'src/vdbeblob.c', | |
141 'src/vdbefifo.c', | |
142 'src/vdbemem.c', | |
143 'src/vtab.c', | |
144 'src/where.c', | |
145 ], | |
146 'sources/': [ | |
147 ['exclude', '^ext/(fts[13]|rtree)/'], | |
148 ['exclude', '(symbian|os2)\\.cc?$'], | |
149 ], | |
150 'sources!': [ | |
151 'src/journal.c', | |
152 'src/md5.c', | |
153 'src/tclsqlite.c', | |
154 ], | |
155 'include_dirs': [ | |
156 'preprocessed', | |
157 'src', | |
158 ], | |
159 'dependencies': [ | |
160 '../icu38/icu38.gyp:icui18n', | |
161 '../icu38/icu38.gyp:icuuc', | |
162 ], | |
163 'direct_dependent_settings': { | |
164 'include_dirs': [ | |
165 'preprocessed', | |
166 ], | |
167 }, | |
168 'conditions': [ | 25 'conditions': [ |
169 ['OS=="win"', { | 26 ['OS=="linux" and use_system_sqlite', { |
170 'sources/': [['exclude', '_unix\\.cc?$']], | 27 'type': 'settings', |
171 }, { # else: OS!="win" | 28 'direct_dependent_settings': { |
172 'sources/': [['exclude', '_(w32|win)\\.cc?$']], | 29 'cflags': [ |
30 '<!@(python ../../build/linux/pkg_config_wrapper.py --cflags sqlit e)', | |
31 ], | |
32 }, | |
33 'link_settings': { | |
34 'libraries': [ | |
35 '<!@(python ../../build/linux/pkg_config_wrapper.py --libs sqlite) ', | |
36 ], | |
37 }, | |
38 }, { # else: OS != "linux" or ! use_system_sqlite | |
39 'product_name': 'sqlite3', | |
40 'type': 'static_library', | |
41 'msvs_guid': '6EAD4A4B-2BBC-4974-8E45-BB5C16CC2AC9', | |
42 'sources': [ | |
43 # This list contains all .h, .c, and .cc files in the directories | |
44 # ext, preprocessed, and src, with the exception of src/shell* and | |
45 # src/test*. Exclusions are applied below in the sources/ and | |
46 # sources! sections. | |
47 'ext/fts1/ft_hash.c', | |
48 'ext/fts1/ft_hash.h', | |
49 'ext/fts1/fts1.c', | |
50 'ext/fts1/fts1.h', | |
51 'ext/fts1/fts1_hash.c', | |
52 'ext/fts1/fts1_hash.h', | |
53 'ext/fts1/fts1_porter.c', | |
54 'ext/fts1/fts1_tokenizer.h', | |
55 'ext/fts1/fts1_tokenizer1.c', | |
56 'ext/fts1/fulltext.c', | |
57 'ext/fts1/fulltext.h', | |
58 'ext/fts1/simple_tokenizer.c', | |
59 'ext/fts1/tokenizer.h', | |
60 'ext/fts2/fts2.c', | |
61 'ext/fts2/fts2.h', | |
62 'ext/fts2/fts2_hash.c', | |
63 'ext/fts2/fts2_hash.h', | |
64 'ext/fts2/fts2_icu.c', | |
65 'ext/fts2/fts2_porter.c', | |
66 'ext/fts2/fts2_tokenizer.c', | |
67 'ext/fts2/fts2_tokenizer.h', | |
68 'ext/fts2/fts2_tokenizer1.c', | |
69 'ext/fts3/fts3.c', | |
70 'ext/fts3/fts3.h', | |
71 'ext/fts3/fts3_hash.c', | |
72 'ext/fts3/fts3_hash.h', | |
73 'ext/fts3/fts3_icu.c', | |
74 'ext/fts3/fts3_porter.c', | |
75 'ext/fts3/fts3_tokenizer.c', | |
76 'ext/fts3/fts3_tokenizer.h', | |
77 'ext/fts3/fts3_tokenizer1.c', | |
78 'ext/icu/icu.c', | |
79 'ext/rtree/rtree.c', | |
80 'ext/rtree/rtree.h', | |
81 'preprocessed/keywordhash.h', | |
82 'preprocessed/opcodes.c', | |
83 'preprocessed/opcodes.h', | |
84 'preprocessed/parse.c', | |
85 'preprocessed/parse.h', | |
86 'preprocessed/sqlite3.h', | |
87 'src/alter.c', | |
88 'src/analyze.c', | |
89 'src/attach.c', | |
90 'src/auth.c', | |
91 'src/bitvec.c', | |
92 'src/btmutex.c', | |
93 'src/btree.c', | |
94 'src/btree.h', | |
95 'src/btreeInt.h', | |
96 'src/build.c', | |
97 'src/callback.c', | |
98 'src/complete.c', | |
99 'src/date.c', | |
100 'src/delete.c', | |
101 'src/expr.c', | |
102 'src/fault.c', | |
103 'src/func.c', | |
104 'src/global.c', | |
105 'src/hash.c', | |
106 'src/hash.h', | |
107 'src/hwtime.h', | |
108 'src/insert.c', | |
109 'src/journal.c', | |
110 'src/legacy.c', | |
111 'src/loadext.c', | |
112 'src/main.c', | |
113 'src/malloc.c', | |
114 'src/md5.c', | |
115 'src/mem1.c', | |
116 'src/mem2.c', | |
117 'src/mem3.c', | |
118 'src/mem4.c', | |
119 'src/mem5.c', | |
120 'src/mem6.c', | |
121 'src/mutex.c', | |
122 'src/mutex.h', | |
123 'src/mutex_os2.c', | |
124 'src/mutex_unix.c', | |
125 'src/mutex_w32.c', | |
126 'src/os.c', | |
127 'src/os.h', | |
128 'src/os_common.h', | |
129 'src/os_os2.c', | |
130 'src/os_symbian.cc', | |
131 'src/os_unix.c', | |
132 'src/os_win.c', | |
133 'src/pager.c', | |
134 'src/pager.h', | |
135 'src/pragma.c', | |
136 'src/prepare.c', | |
137 'src/printf.c', | |
138 'src/random.c', | |
139 'src/select.c', | |
140 'src/sqlite3ext.h', | |
141 'src/sqliteInt.h', | |
142 'src/sqliteLimit.h', | |
143 'src/status.c', | |
144 'src/table.c', | |
145 'src/tclsqlite.c', | |
146 'src/tokenize.c', | |
147 'src/trigger.c', | |
148 'src/update.c', | |
149 'src/utf.c', | |
150 'src/util.c', | |
151 'src/vacuum.c', | |
152 'src/vdbe.c', | |
153 'src/vdbe.h', | |
154 'src/vdbeInt.h', | |
155 'src/vdbeapi.c', | |
156 'src/vdbeaux.c', | |
157 'src/vdbeblob.c', | |
158 'src/vdbefifo.c', | |
159 'src/vdbemem.c', | |
160 'src/vtab.c', | |
161 'src/where.c', | |
162 ], | |
163 'sources/': [ | |
164 ['exclude', '^ext/(fts[13]|rtree)/'], | |
165 ['exclude', '(symbian|os2)\\.cc?$'], | |
166 ], | |
167 'sources!': [ | |
168 'src/journal.c', | |
169 'src/md5.c', | |
170 'src/tclsqlite.c', | |
171 ], | |
172 'include_dirs': [ | |
173 'preprocessed', | |
174 'src', | |
175 ], | |
176 'dependencies': [ | |
177 '../icu38/icu38.gyp:icui18n', | |
178 '../icu38/icu38.gyp:icuuc', | |
179 ], | |
180 'direct_dependent_settings': { | |
181 'include_dirs': [ | |
182 'preprocessed', | |
183 ], | |
184 }, | |
185 'conditions': [ | |
186 ['OS=="win"', { | |
187 'sources/': [['exclude', '_unix\\.cc?$']], | |
188 }, { # else: OS!="win" | |
189 'sources/': [['exclude', '_(w32|win)\\.cc?$']], | |
190 }], | |
191 ], | |
173 }], | 192 }], |
174 ], | 193 ], |
175 }, | 194 }, |
176 ], | 195 ], |
177 'conditions': [ | 196 'conditions': [ |
178 ['OS=="linux"', { | 197 ['OS=="linux"', { |
Mark Mentovai
2009/03/25 23:29:03
and !use_system_sqlite
sgk
2009/03/25 23:44:22
? I don't think so. Seems like you should be abl
| |
179 'targets': [ | 198 'targets': [ |
180 { | 199 { |
181 'target_name': 'sqlite_shell', | 200 'target_name': 'sqlite_shell', |
182 'type': 'executable', | 201 'type': 'executable', |
183 'dependencies': [ | 202 'dependencies': [ |
184 '../icu38/icu38.gyp:icuuc', | 203 '../icu38/icu38.gyp:icuuc', |
185 'sqlite', | 204 'sqlite', |
186 ], | 205 ], |
187 'sources': [ | 206 'sources': [ |
188 'src/shell.c', | 207 'src/shell.c', |
189 'src/shell_icu_linux.c', | 208 'src/shell_icu_linux.c', |
190 ], | 209 ], |
191 'link_settings': { | 210 'link_settings': { |
192 'link_languages': ['c++'], | 211 'link_languages': ['c++'], |
193 'libraries': [ | 212 'libraries': [ |
194 '-ldl', | 213 '-ldl', |
195 ], | 214 ], |
196 }, | 215 }, |
197 }, | 216 }, |
198 ], | 217 ], |
199 },] | 218 },] |
200 ], | 219 ], |
201 } | 220 } |
OLD | NEW |