OLD | NEW |
| (Empty) |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 Import('env') | |
6 | |
7 env = env.Clone() | |
8 | |
9 env.Prepend( | |
10 CPPPATH = [ | |
11 '$ICU38_DIR/public/common', | |
12 '$ICU38_DIR/public/i18n', | |
13 '$CHROME_SRC_DIR', | |
14 'preprocessed', | |
15 'src', | |
16 ], | |
17 ) | |
18 | |
19 env.Append( | |
20 CPPDEFINES = [ | |
21 'U_STATIC_IMPLEMENTATION', | |
22 | |
23 'SQLITE_ENABLE_FTS2', | |
24 'SQLITE_ENABLE_BROKEN_FTS2', | |
25 'SQLITE_ENABLE_ICU', | |
26 'SQLITE_SECURE_DELETE', | |
27 'THREADSAFE', | |
28 ['_HAS_EXCEPTIONS', '0'], | |
29 ], | |
30 ) | |
31 | |
32 input_files = ChromeFileList([ | |
33 'src/alter.c', | |
34 'src/analyze.c', | |
35 'src/attach.c', | |
36 'src/auth.c', | |
37 'src/bitvec.c', | |
38 'src/btmutex.c', | |
39 'src/btree.c', | |
40 'src/btree.h', | |
41 'src/btreeInt.h', | |
42 'src/build.c', | |
43 'src/callback.c', | |
44 'src/complete.c', | |
45 'src/date.c', | |
46 'src/delete.c', | |
47 'src/expr.c', | |
48 'src/fault.c', | |
49 'ext/fts2/fts2.c', | |
50 'ext/fts2/fts2.h', | |
51 'ext/fts2/fts2_hash.c', | |
52 'ext/fts2/fts2_hash.h', | |
53 'ext/fts2/fts2_icu.c', | |
54 'ext/fts2/fts2_porter.c', | |
55 'ext/fts2/fts2_tokenizer.c', | |
56 'ext/fts2/fts2_tokenizer.h', | |
57 'ext/fts2/fts2_tokenizer1.c', | |
58 'src/func.c', | |
59 'src/global.c', | |
60 'src/hash.c', | |
61 'src/hash.h', | |
62 'ext/icu/icu.c', | |
63 'src/insert.c', | |
64 'preprocessed/keywordhash.h', | |
65 'src/legacy.c', | |
66 'src/loadext.c', | |
67 'src/main.c', | |
68 'src/malloc.c', | |
69 'src/mem1.c', | |
70 'src/mem2.c', | |
71 'src/mem3.c', | |
72 'src/mem4.c', | |
73 'src/mem5.c', | |
74 'src/mem6.c', | |
75 'src/mutex.c', | |
76 'src/mutex.h', | |
77 'src/mutex_unix.c', | |
78 'preprocessed/opcodes.c', | |
79 'preprocessed/opcodes.h', | |
80 'src/os.c', | |
81 'src/os.h', | |
82 'src/os_common.h', | |
83 'src/os_unix.c', | |
84 'src/pager.c', | |
85 'src/pager.h', | |
86 'preprocessed/parse.c', | |
87 'preprocessed/parse.h', | |
88 'src/pragma.c', | |
89 'src/prepare.c', | |
90 'src/printf.c', | |
91 'src/random.c', | |
92 'src/select.c', | |
93 'preprocessed/sqlite3.h', | |
94 'src/sqlite3ext.h', | |
95 'src/sqliteInt.h', | |
96 'src/sqliteLimit.h', | |
97 'src/status.c', | |
98 'src/table.c', | |
99 'src/tokenize.c', | |
100 'src/trigger.c', | |
101 'src/update.c', | |
102 'src/utf.c', | |
103 'src/util.c', | |
104 'src/vacuum.c', | |
105 'src/vdbe.c', | |
106 'src/vdbe.h', | |
107 'src/vdbeapi.c', | |
108 'src/vdbeaux.c', | |
109 'src/vdbeblob.c', | |
110 'src/vdbefifo.c', | |
111 'src/vdbeInt.h', | |
112 'src/vdbemem.c', | |
113 'src/vtab.c', | |
114 'src/where.c', | |
115 ]) | |
116 | |
117 sqlite_lib = env.ChromeLibrary('sqlite', input_files) | |
118 | |
119 # Build a stand alone sqlite shell so we can inspect the sqlite files. | |
120 env_shell = env.Clone() | |
121 | |
122 shell_input_files = [ | |
123 'src/shell.c', | |
124 'src/shell_icu_linux.c', | |
125 ] | |
126 | |
127 env_shell.Append( | |
128 LIBS = [ | |
129 'icu', | |
130 'sqlite', | |
131 'stdc++', | |
132 ] | |
133 ) | |
134 | |
135 env_shell.ChromeProgram('sqlite_shell', shell_input_files) | |
OLD | NEW |