forked from sqlcipher/sqlcipher
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBUILD.gn
More file actions
83 lines (78 loc) · 1.84 KB
/
BUILD.gn
File metadata and controls
83 lines (78 loc) · 1.84 KB
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
import("../../webrtc.gni")
config("sqlcipher_config") {
}
rtc_library("sqlcipher") {
defines = [
"NDEBUG=1",
"SQLCIPHER_CRYPTO_OPENSSL",
"SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576",
"SQLITE_OS_UNIX=1",
"SQLITE_ENABLE_COLUMN_METADATA",
"SQLITE_ENABLE_DBSTAT_VTAB",
# "SQLITE_ENABLE_FTS3_PARENTHESIS",
# "SQLITE_ENABLE_FTS4",
# "SQLITE_ENABLE_FTS5",
# "SQLITE_ENABLE_JSON1",
# "SQLITE_ENABLE_LOAD_EXTENSION",
"SQLITE_OMIT_LOAD_EXTENSION=1",
"SQLITE_OMIT_JSON",
"SQLITE_ENABLE_MEMORY_MANAGEMENT=1",
"SQLITE_ENABLE_RTREE",
"SQLITE_ENABLE_STAT3",
"SQLITE_ENABLE_STAT4",
"SQLITE_ENABLE_UNLOCK_NOTIFY",
"SQLITE_HAS_CODEC",
"SQLITE_MAX_VARIABLE_NUMBER=99999",
"SQLITE_SOUNDEX",
"SQLITE_TEMP_STORE=3",
"SQLITE_THREADSAFE=1",
]
if (is_android) {
defines += [
"ANDROID",
"_FILE_OFFSET_BITS=64",
"HAVE_USLEEP=1",
"LOG_NDEBUG",
]
}
if (is_ios) {
defines += [
"SQLCIPHER_CRYPTO_CC",
]
}
if (is_linux) {
defines += [
"ANDROID",
"_FILE_OFFSET_BITS=64",
"HAVE_USLEEP=1",
"LOG_NDEBUG",
]
}
include_dirs = [
"src",
]
sources = [
"src/sqlite3.c",
]
if (!is_ios) {
sources += [
"android/CursorWindow.cpp",
"android/jni_exception.cpp",
"android/net_sqlcipher_CursorWindow.cpp",
"android/net_sqlcipher_database_SQLiteCompiledSql.cpp",
"android/net_sqlcipher_database_SQLiteDatabase.cpp",
"android/net_sqlcipher_database_SQLiteQuery.cpp",
"android/net_sqlcipher_database_SQLiteProgram.cpp",
"android/net_sqlcipher_database_SQLiteStatement.cpp",
]
include_dirs += [
"android",
]
}
deps = [
"//third_party/boringssl",
]
if (!is_android && !is_ios) {
public_configs = [ "//third_party/jdk:jdk" ]
}
}