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
96
|
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Import('env')
env = env.Clone(
)
env.Prepend(
CPPPATH = [
'$ICU38_DIR/public/common',
'$ICU38_DIR/public/i18n',
'$CHROME_SRC_DIR',
],
)
env.Append(
CPPDEFINES = [
'U_STATIC_IMPLEMENTATION',
'SQLITE_ENABLE_FTS2',
'SQLITE_ENABLE_BROKEN_FTS2',
'SQLITE_ENABLE_ICU',
'SQLITE_SECURE_DELETE',
'THREADSAFE',
['_HAS_EXCEPTIONS', '0'],
],
)
if env.Bit('windows'):
env.Append(
CCFLAGS = [
'/TC',
'/wd4800',
'/wd4244',
],
)
input_files = [
'alter.c',
'analyze.c',
'attach.c',
'auth.c',
'btree.c',
'build.c',
'callback.c',
'complete.c',
'date.c',
'delete.c',
'expr.c',
'fts2.c',
'fts2_hash.c',
'fts2_icu.c',
'fts2_porter.c',
'fts2_tokenizer.c',
'fts2_tokenizer1.c',
'func.c',
'hash.c',
'icu.c',
'insert.c',
'legacy.c',
'loadext.c',
'main.c',
'malloc.c',
'opcodes.c',
'os.c',
'os_unix.c',
'os_win.c',
'pager.c',
'parse.c',
'pragma.c',
'prepare.c',
'printf.c',
'random.c',
'select.c',
'table.c',
'tokenize.c',
'trigger.c',
'update.c',
'utf.c',
'util.c',
'vacuum.c',
'vdbe.c',
'vdbeapi.c',
'vdbeaux.c',
'vdbefifo.c',
'vdbemem.c',
'vtab.c',
'where.c',
]
env.ChromeStaticLibrary('sqlite', input_files)
# TODO(tc): There should be a target to build the stand alone sqlite shell.
|