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