blob: d7b0056852c2e703e8a1f678a06df886cd512f61 [file] [log] [blame]
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +01001# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_sqlite_sqlite_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14 $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \
15 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27 third_party/sqlite/amalgamation/sqlite3.c \
28 third_party/sqlite/src/ext/fts2/fts2.c \
29 third_party/sqlite/src/ext/fts2/fts2_hash.c \
30 third_party/sqlite/src/ext/fts2/fts2_icu.c \
31 third_party/sqlite/src/ext/fts2/fts2_porter.c \
32 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c \
33 third_party/sqlite/src/ext/fts2/fts2_tokenizer1.c
34
35
36# Flags passed to both C and C++ files.
37MY_CFLAGS := \
38 -fstack-protector \
39 --param=ssp-buffer-size=4 \
40 -fno-exceptions \
41 -fno-strict-aliasing \
42 -Wno-unused-parameter \
43 -Wno-missing-field-initializers \
44 -fvisibility=hidden \
45 -pipe \
46 -fPIC \
47 -Wno-format \
48 -fno-tree-sra \
49 -fuse-ld=gold \
50 -Wno-psabi \
51 -ffunction-sections \
52 -funwind-tables \
53 -g \
54 -fstack-protector \
55 -fno-short-enums \
56 -finline-limit=64 \
57 -Wa,--noexecstack \
58 -U_FORTIFY_SOURCE \
59 -Wno-extra \
60 -Wno-ignored-qualifiers \
61 -Wno-type-limits \
62 -Wno-address \
63 -Wno-format-security \
64 -Wno-return-type \
65 -Wno-sequence-point \
66 -Os \
67 -g \
68 -fomit-frame-pointer \
69 -fdata-sections \
70 -ffunction-sections
71
72MY_CFLAGS_C :=
73
74MY_DEFS := \
75 '-DSQLITE_CORE' \
76 '-DSQLITE_ENABLE_BROKEN_FTS2' \
77 '-DSQLITE_ENABLE_FTS2' \
78 '-DSQLITE_ENABLE_FTS3' \
79 '-DSQLITE_ENABLE_ICU' \
80 '-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \
81 '-DSQLITE_SECURE_DELETE' \
82 '-DTHREADSAFE' \
83 '-D_HAS_EXCEPTIONS=0' \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010084 '-DANGLE_DX11' \
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +010085 '-D_FILE_OFFSET_BITS=64' \
86 '-DUSE_LINUX_BREAKPAD' \
87 '-DNO_TCMALLOC' \
88 '-DDISABLE_NACL' \
89 '-DCHROMIUM_BUILD' \
90 '-DUSE_LIBJPEG_TURBO=1' \
91 '-DUSE_PROPRIETARY_CODECS' \
92 '-DENABLE_GPU=1' \
93 '-DUSE_OPENSSL=1' \
94 '-DENABLE_EGLIMAGE=1' \
95 '-DENABLE_LANGUAGE_DETECTION=1' \
96 '-DHAVE_USLEEP=1' \
97 '-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576' \
98 '-DSQLITE_DEFAULT_AUTOVACUUM=1' \
99 '-DSQLITE_TEMP_STORE=3' \
100 '-DSQLITE_ENABLE_FTS3_BACKWARDS' \
101 '-DDSQLITE_DEFAULT_FILE_FORMAT=4' \
102 '-DU_USING_ICU_NAMESPACE=0' \
103 '-DANDROID' \
104 '-D__GNU_SOURCE=1' \
105 '-DUSE_STLPORT=1' \
106 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
107 '-DCHROME_BUILD_ID=""' \
108 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
109 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
110 '-D_DEBUG'
111
112LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
113
114# Include paths placed before CFLAGS/CPPFLAGS
115LOCAL_C_INCLUDES := \
116 $(LOCAL_PATH)/third_party/sqlite/amalgamation \
117 $(LOCAL_PATH)/third_party/sqlite/src/src \
118 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
119 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +0100120 $(PWD)/external/icu4c/common \
121 $(PWD)/external/icu4c/i18n \
122 $(PWD)/frameworks/wilhelm/include \
123 $(PWD)/bionic \
124 $(PWD)/external/stlport/stlport
Torne (Richard Coles)c2e0dbd2013-05-09 18:35:53 +0100125
126LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
127
128# Flags passed to only C++ (and not C) files.
129LOCAL_CPPFLAGS := \
130 -fno-rtti \
131 -fno-threadsafe-statics \
132 -fvisibility-inlines-hidden \
133 -Wno-deprecated \
134 -Wno-abi \
135 -Wno-error=c++0x-compat \
136 -Wno-non-virtual-dtor \
137 -Wno-sign-promo \
138 -Wno-non-virtual-dtor
139
140### Rules for final target.
141
142LOCAL_LDFLAGS := \
143 -Wl,-z,now \
144 -Wl,-z,relro \
145 -Wl,-z,noexecstack \
146 -fPIC \
147 -Wl,-z,relro \
148 -Wl,-z,now \
149 -fuse-ld=gold \
150 -nostdlib \
151 -Wl,--no-undefined \
152 -Wl,--exclude-libs=ALL \
153 -Wl,--icf=safe \
154 -Wl,--gc-sections \
155 -Wl,-O1 \
156 -Wl,--as-needed
157
158
159LOCAL_STATIC_LIBRARIES :=
160
161# Enable grouping to fix circular references
162LOCAL_GROUP_STATIC_LIBRARIES := true
163
164LOCAL_SHARED_LIBRARIES := \
165 libstlport \
166 libdl
167
168# Add target alias to "gyp_all_modules" target.
169.PHONY: gyp_all_modules
170gyp_all_modules: third_party_sqlite_sqlite_gyp
171
172# Alias gyp target name.
173.PHONY: sqlite
174sqlite: third_party_sqlite_sqlite_gyp
175
176include $(BUILD_STATIC_LIBRARY)