• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \
15	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/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_Debug := \
38	-fstack-protector \
39	--param=ssp-buffer-size=4 \
40	-fno-strict-aliasing \
41	-Wno-unused-parameter \
42	-Wno-missing-field-initializers \
43	-fvisibility=hidden \
44	-pipe \
45	-fPIC \
46	-Wno-unused-local-typedefs \
47	-Wno-format \
48	-fno-tree-sra \
49	-fno-caller-saves \
50	-Wno-psabi \
51	-fno-partial-inlining \
52	-fno-early-inlining \
53	-fno-tree-copy-prop \
54	-fno-tree-loop-optimize \
55	-fno-move-loop-invariants \
56	-ffunction-sections \
57	-funwind-tables \
58	-g \
59	-fstack-protector \
60	-fno-short-enums \
61	-finline-limit=64 \
62	-Wa,--noexecstack \
63	-U_FORTIFY_SOURCE \
64	-Wno-extra \
65	-Wno-ignored-qualifiers \
66	-Wno-type-limits \
67	-Wno-unused-but-set-variable \
68	-Wno-address \
69	-Wno-format-security \
70	-Wno-return-type \
71	-Wno-sequence-point \
72	-Os \
73	-g \
74	-gdwarf-4 \
75	-fdata-sections \
76	-ffunction-sections \
77	-fomit-frame-pointer \
78	-funwind-tables
79
80MY_DEFS_Debug := \
81	'-DSQLITE_CORE' \
82	'-DSQLITE_ENABLE_BROKEN_FTS2' \
83	'-DSQLITE_ENABLE_FTS2' \
84	'-DSQLITE_ENABLE_FTS3' \
85	'-DSQLITE_ENABLE_ICU' \
86	'-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \
87	'-DSQLITE_SECURE_DELETE' \
88	'-DSQLITE_SEPARATE_CACHE_POOLS' \
89	'-DTHREADSAFE' \
90	'-D_HAS_EXCEPTIONS=0' \
91	'-DV8_DEPRECATION_WARNINGS' \
92	'-D_FILE_OFFSET_BITS=64' \
93	'-DNO_TCMALLOC' \
94	'-DDISABLE_NACL' \
95	'-DCHROMIUM_BUILD' \
96	'-DUSE_LIBJPEG_TURBO=1' \
97	'-DENABLE_WEBRTC=1' \
98	'-DUSE_PROPRIETARY_CODECS' \
99	'-DENABLE_BROWSER_CDMS' \
100	'-DENABLE_CONFIGURATION_POLICY' \
101	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
102	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
103	'-DENABLE_EGLIMAGE=1' \
104	'-DCLD_VERSION=1' \
105	'-DENABLE_PRINTING=1' \
106	'-DENABLE_MANAGED_USERS=1' \
107	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
108	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
109	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
110	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
111	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
112	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
113	'-DVIDEO_HOLE=1' \
114	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
115	'-DHAVE_USLEEP=1' \
116	'-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576' \
117	'-DSQLITE_DEFAULT_AUTOVACUUM=1' \
118	'-DSQLITE_TEMP_STORE=3' \
119	'-DSQLITE_ENABLE_FTS3_BACKWARDS' \
120	'-DDSQLITE_DEFAULT_FILE_FORMAT=4' \
121	'-DU_USING_ICU_NAMESPACE=0' \
122	'-DU_ENABLE_DYLOAD=0' \
123	'-DUSE_OPENSSL=1' \
124	'-DUSE_OPENSSL_CERTS=1' \
125	'-DANDROID' \
126	'-D__GNU_SOURCE=1' \
127	'-DUSE_STLPORT=1' \
128	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
129	'-DCHROME_BUILD_ID=""' \
130	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
131	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
132	'-D_DEBUG'
133
134
135# Include paths placed before CFLAGS/CPPFLAGS
136LOCAL_C_INCLUDES_Debug := \
137	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
138	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
139	$(gyp_shared_intermediate_dir) \
140	$(LOCAL_PATH)/third_party/sqlite/amalgamation \
141	$(LOCAL_PATH)/third_party/sqlite/src/src \
142	$(PWD)/external/icu/icu4c/source/common \
143	$(PWD)/external/icu/icu4c/source/i18n \
144	$(PWD)/frameworks/wilhelm/include \
145	$(PWD)/bionic \
146	$(PWD)/external/stlport/stlport
147
148
149# Flags passed to only C++ (and not C) files.
150LOCAL_CPPFLAGS_Debug := \
151	-fno-exceptions \
152	-fno-rtti \
153	-fno-threadsafe-statics \
154	-fvisibility-inlines-hidden \
155	-Wno-deprecated \
156	-Wno-abi \
157	-std=gnu++11 \
158	-Wno-narrowing \
159	-Wno-literal-suffix \
160	-Wno-non-virtual-dtor \
161	-Wno-sign-promo \
162	-Wno-non-virtual-dtor
163
164
165# Flags passed to both C and C++ files.
166MY_CFLAGS_Release := \
167	-fstack-protector \
168	--param=ssp-buffer-size=4 \
169	-fno-strict-aliasing \
170	-Wno-unused-parameter \
171	-Wno-missing-field-initializers \
172	-fvisibility=hidden \
173	-pipe \
174	-fPIC \
175	-Wno-unused-local-typedefs \
176	-Wno-format \
177	-fno-tree-sra \
178	-fno-caller-saves \
179	-Wno-psabi \
180	-fno-partial-inlining \
181	-fno-early-inlining \
182	-fno-tree-copy-prop \
183	-fno-tree-loop-optimize \
184	-fno-move-loop-invariants \
185	-ffunction-sections \
186	-funwind-tables \
187	-g \
188	-fstack-protector \
189	-fno-short-enums \
190	-finline-limit=64 \
191	-Wa,--noexecstack \
192	-U_FORTIFY_SOURCE \
193	-Wno-extra \
194	-Wno-ignored-qualifiers \
195	-Wno-type-limits \
196	-Wno-unused-but-set-variable \
197	-Wno-address \
198	-Wno-format-security \
199	-Wno-return-type \
200	-Wno-sequence-point \
201	-Os \
202	-fno-ident \
203	-fdata-sections \
204	-ffunction-sections \
205	-fomit-frame-pointer \
206	-funwind-tables
207
208MY_DEFS_Release := \
209	'-DSQLITE_CORE' \
210	'-DSQLITE_ENABLE_BROKEN_FTS2' \
211	'-DSQLITE_ENABLE_FTS2' \
212	'-DSQLITE_ENABLE_FTS3' \
213	'-DSQLITE_ENABLE_ICU' \
214	'-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \
215	'-DSQLITE_SECURE_DELETE' \
216	'-DSQLITE_SEPARATE_CACHE_POOLS' \
217	'-DTHREADSAFE' \
218	'-D_HAS_EXCEPTIONS=0' \
219	'-DV8_DEPRECATION_WARNINGS' \
220	'-D_FILE_OFFSET_BITS=64' \
221	'-DNO_TCMALLOC' \
222	'-DDISABLE_NACL' \
223	'-DCHROMIUM_BUILD' \
224	'-DUSE_LIBJPEG_TURBO=1' \
225	'-DENABLE_WEBRTC=1' \
226	'-DUSE_PROPRIETARY_CODECS' \
227	'-DENABLE_BROWSER_CDMS' \
228	'-DENABLE_CONFIGURATION_POLICY' \
229	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
230	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
231	'-DENABLE_EGLIMAGE=1' \
232	'-DCLD_VERSION=1' \
233	'-DENABLE_PRINTING=1' \
234	'-DENABLE_MANAGED_USERS=1' \
235	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
236	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
237	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
238	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
239	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
240	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
241	'-DVIDEO_HOLE=1' \
242	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
243	'-DHAVE_USLEEP=1' \
244	'-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576' \
245	'-DSQLITE_DEFAULT_AUTOVACUUM=1' \
246	'-DSQLITE_TEMP_STORE=3' \
247	'-DSQLITE_ENABLE_FTS3_BACKWARDS' \
248	'-DDSQLITE_DEFAULT_FILE_FORMAT=4' \
249	'-DU_USING_ICU_NAMESPACE=0' \
250	'-DU_ENABLE_DYLOAD=0' \
251	'-DUSE_OPENSSL=1' \
252	'-DUSE_OPENSSL_CERTS=1' \
253	'-DANDROID' \
254	'-D__GNU_SOURCE=1' \
255	'-DUSE_STLPORT=1' \
256	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
257	'-DCHROME_BUILD_ID=""' \
258	'-DNDEBUG' \
259	'-DNVALGRIND' \
260	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
261
262
263# Include paths placed before CFLAGS/CPPFLAGS
264LOCAL_C_INCLUDES_Release := \
265	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
266	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
267	$(gyp_shared_intermediate_dir) \
268	$(LOCAL_PATH)/third_party/sqlite/amalgamation \
269	$(LOCAL_PATH)/third_party/sqlite/src/src \
270	$(PWD)/external/icu/icu4c/source/common \
271	$(PWD)/external/icu/icu4c/source/i18n \
272	$(PWD)/frameworks/wilhelm/include \
273	$(PWD)/bionic \
274	$(PWD)/external/stlport/stlport
275
276
277# Flags passed to only C++ (and not C) files.
278LOCAL_CPPFLAGS_Release := \
279	-fno-exceptions \
280	-fno-rtti \
281	-fno-threadsafe-statics \
282	-fvisibility-inlines-hidden \
283	-Wno-deprecated \
284	-Wno-abi \
285	-std=gnu++11 \
286	-Wno-narrowing \
287	-Wno-literal-suffix \
288	-Wno-non-virtual-dtor \
289	-Wno-sign-promo \
290	-Wno-non-virtual-dtor
291
292
293LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
294LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
295LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
296LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
297### Rules for final target.
298
299LOCAL_SHARED_LIBRARIES := \
300	libstlport \
301	libdl
302
303### Set directly by aosp_build_settings.
304LOCAL_FDO_SUPPORT := true
305
306# Add target alias to "gyp_all_modules" target.
307.PHONY: gyp_all_modules
308gyp_all_modules: third_party_sqlite_sqlite_gyp
309
310# Alias gyp target name.
311.PHONY: sqlite
312sqlite: third_party_sqlite_sqlite_gyp
313
314include $(BUILD_STATIC_LIBRARY)
315