1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_leveldatabase_leveldatabase_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
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_CPP_EXTENSION := .cc
21LOCAL_GENERATED_SOURCES :=
22
23GYP_COPIED_SOURCE_ORIGIN_DIRS :=
24
25LOCAL_SRC_FILES := \
26	third_party/leveldatabase/env_chromium.cc \
27	third_party/leveldatabase/env_chromium_stdio.cc \
28	third_party/leveldatabase/port/port_chromium.cc \
29	third_party/leveldatabase/src/db/builder.cc \
30	third_party/leveldatabase/src/db/db_impl.cc \
31	third_party/leveldatabase/src/db/db_iter.cc \
32	third_party/leveldatabase/src/db/filename.cc \
33	third_party/leveldatabase/src/db/dbformat.cc \
34	third_party/leveldatabase/src/db/log_reader.cc \
35	third_party/leveldatabase/src/db/log_writer.cc \
36	third_party/leveldatabase/src/db/memtable.cc \
37	third_party/leveldatabase/src/db/repair.cc \
38	third_party/leveldatabase/src/db/table_cache.cc \
39	third_party/leveldatabase/src/db/version_edit.cc \
40	third_party/leveldatabase/src/db/version_set.cc \
41	third_party/leveldatabase/src/db/write_batch.cc \
42	third_party/leveldatabase/src/helpers/memenv/memenv.cc \
43	third_party/leveldatabase/src/table/block.cc \
44	third_party/leveldatabase/src/table/block_builder.cc \
45	third_party/leveldatabase/src/table/filter_block.cc \
46	third_party/leveldatabase/src/table/format.cc \
47	third_party/leveldatabase/src/table/iterator.cc \
48	third_party/leveldatabase/src/table/merger.cc \
49	third_party/leveldatabase/src/table/table.cc \
50	third_party/leveldatabase/src/table/table_builder.cc \
51	third_party/leveldatabase/src/table/two_level_iterator.cc \
52	third_party/leveldatabase/src/util/arena.cc \
53	third_party/leveldatabase/src/util/bloom.cc \
54	third_party/leveldatabase/src/util/cache.cc \
55	third_party/leveldatabase/src/util/coding.cc \
56	third_party/leveldatabase/src/util/comparator.cc \
57	third_party/leveldatabase/src/util/crc32c.cc \
58	third_party/leveldatabase/src/util/env.cc \
59	third_party/leveldatabase/src/util/filter_policy.cc \
60	third_party/leveldatabase/src/util/hash.cc \
61	third_party/leveldatabase/src/util/logging.cc \
62	third_party/leveldatabase/src/util/options.cc \
63	third_party/leveldatabase/src/util/status.cc
64
65
66# Flags passed to both C and C++ files.
67MY_CFLAGS_Debug := \
68	-fstack-protector \
69	--param=ssp-buffer-size=4 \
70	-fno-strict-aliasing \
71	-Wno-unused-parameter \
72	-Wno-missing-field-initializers \
73	-fvisibility=hidden \
74	-pipe \
75	-fPIC \
76	-Wno-unused-local-typedefs \
77	-Wno-format \
78	-fno-tree-sra \
79	-fno-caller-saves \
80	-Wno-psabi \
81	-fno-partial-inlining \
82	-fno-early-inlining \
83	-fno-tree-copy-prop \
84	-fno-tree-loop-optimize \
85	-fno-move-loop-invariants \
86	-ffunction-sections \
87	-funwind-tables \
88	-g \
89	-fstack-protector \
90	-fno-short-enums \
91	-finline-limit=64 \
92	-Wa,--noexecstack \
93	-U_FORTIFY_SOURCE \
94	-Wno-extra \
95	-Wno-ignored-qualifiers \
96	-Wno-type-limits \
97	-Wno-unused-but-set-variable \
98	-Wno-address \
99	-Wno-format-security \
100	-Wno-return-type \
101	-Wno-sequence-point \
102	-Os \
103	-g \
104	-gdwarf-4 \
105	-fdata-sections \
106	-ffunction-sections \
107	-fomit-frame-pointer \
108	-funwind-tables
109
110MY_DEFS_Debug := \
111	'-DLEVELDB_PLATFORM_CHROMIUM=1' \
112	'-DV8_DEPRECATION_WARNINGS' \
113	'-D_FILE_OFFSET_BITS=64' \
114	'-DNO_TCMALLOC' \
115	'-DDISABLE_NACL' \
116	'-DCHROMIUM_BUILD' \
117	'-DUSE_LIBJPEG_TURBO=1' \
118	'-DENABLE_WEBRTC=1' \
119	'-DUSE_PROPRIETARY_CODECS' \
120	'-DENABLE_BROWSER_CDMS' \
121	'-DENABLE_CONFIGURATION_POLICY' \
122	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
123	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
124	'-DENABLE_EGLIMAGE=1' \
125	'-DCLD_VERSION=1' \
126	'-DENABLE_PRINTING=1' \
127	'-DENABLE_MANAGED_USERS=1' \
128	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
129	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
130	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
131	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
132	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
133	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
134	'-DVIDEO_HOLE=1' \
135	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
136	'-DUSE_OPENSSL=1' \
137	'-DUSE_OPENSSL_CERTS=1' \
138	'-DANDROID' \
139	'-D__GNU_SOURCE=1' \
140	'-DUSE_STLPORT=1' \
141	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
142	'-DCHROME_BUILD_ID=""' \
143	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
144	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
145	'-D_DEBUG'
146
147
148# Include paths placed before CFLAGS/CPPFLAGS
149LOCAL_C_INCLUDES_Debug := \
150	$(LOCAL_PATH)/third_party/leveldatabase \
151	$(LOCAL_PATH)/third_party/leveldatabase/src \
152	$(LOCAL_PATH)/third_party/leveldatabase/src/include \
153	$(gyp_shared_intermediate_dir) \
154	$(LOCAL_PATH)/third_party/re2 \
155	$(LOCAL_PATH) \
156	$(PWD)/frameworks/wilhelm/include \
157	$(PWD)/bionic \
158	$(PWD)/external/stlport/stlport
159
160
161# Flags passed to only C++ (and not C) files.
162LOCAL_CPPFLAGS_Debug := \
163	-fno-exceptions \
164	-fno-rtti \
165	-fno-threadsafe-statics \
166	-fvisibility-inlines-hidden \
167	-Wno-deprecated \
168	-Wno-abi \
169	-std=gnu++11 \
170	-Wno-narrowing \
171	-Wno-literal-suffix \
172	-Wno-non-virtual-dtor \
173	-Wno-sign-promo \
174	-Wno-non-virtual-dtor
175
176
177# Flags passed to both C and C++ files.
178MY_CFLAGS_Release := \
179	-fstack-protector \
180	--param=ssp-buffer-size=4 \
181	-fno-strict-aliasing \
182	-Wno-unused-parameter \
183	-Wno-missing-field-initializers \
184	-fvisibility=hidden \
185	-pipe \
186	-fPIC \
187	-Wno-unused-local-typedefs \
188	-Wno-format \
189	-fno-tree-sra \
190	-fno-caller-saves \
191	-Wno-psabi \
192	-fno-partial-inlining \
193	-fno-early-inlining \
194	-fno-tree-copy-prop \
195	-fno-tree-loop-optimize \
196	-fno-move-loop-invariants \
197	-ffunction-sections \
198	-funwind-tables \
199	-g \
200	-fstack-protector \
201	-fno-short-enums \
202	-finline-limit=64 \
203	-Wa,--noexecstack \
204	-U_FORTIFY_SOURCE \
205	-Wno-extra \
206	-Wno-ignored-qualifiers \
207	-Wno-type-limits \
208	-Wno-unused-but-set-variable \
209	-Wno-address \
210	-Wno-format-security \
211	-Wno-return-type \
212	-Wno-sequence-point \
213	-Os \
214	-fno-ident \
215	-fdata-sections \
216	-ffunction-sections \
217	-fomit-frame-pointer \
218	-funwind-tables
219
220MY_DEFS_Release := \
221	'-DLEVELDB_PLATFORM_CHROMIUM=1' \
222	'-DV8_DEPRECATION_WARNINGS' \
223	'-D_FILE_OFFSET_BITS=64' \
224	'-DNO_TCMALLOC' \
225	'-DDISABLE_NACL' \
226	'-DCHROMIUM_BUILD' \
227	'-DUSE_LIBJPEG_TURBO=1' \
228	'-DENABLE_WEBRTC=1' \
229	'-DUSE_PROPRIETARY_CODECS' \
230	'-DENABLE_BROWSER_CDMS' \
231	'-DENABLE_CONFIGURATION_POLICY' \
232	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
233	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
234	'-DENABLE_EGLIMAGE=1' \
235	'-DCLD_VERSION=1' \
236	'-DENABLE_PRINTING=1' \
237	'-DENABLE_MANAGED_USERS=1' \
238	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
239	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
240	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
241	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
242	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
243	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
244	'-DVIDEO_HOLE=1' \
245	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
246	'-DUSE_OPENSSL=1' \
247	'-DUSE_OPENSSL_CERTS=1' \
248	'-DANDROID' \
249	'-D__GNU_SOURCE=1' \
250	'-DUSE_STLPORT=1' \
251	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
252	'-DCHROME_BUILD_ID=""' \
253	'-DNDEBUG' \
254	'-DNVALGRIND' \
255	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
256
257
258# Include paths placed before CFLAGS/CPPFLAGS
259LOCAL_C_INCLUDES_Release := \
260	$(LOCAL_PATH)/third_party/leveldatabase \
261	$(LOCAL_PATH)/third_party/leveldatabase/src \
262	$(LOCAL_PATH)/third_party/leveldatabase/src/include \
263	$(gyp_shared_intermediate_dir) \
264	$(LOCAL_PATH)/third_party/re2 \
265	$(LOCAL_PATH) \
266	$(PWD)/frameworks/wilhelm/include \
267	$(PWD)/bionic \
268	$(PWD)/external/stlport/stlport
269
270
271# Flags passed to only C++ (and not C) files.
272LOCAL_CPPFLAGS_Release := \
273	-fno-exceptions \
274	-fno-rtti \
275	-fno-threadsafe-statics \
276	-fvisibility-inlines-hidden \
277	-Wno-deprecated \
278	-Wno-abi \
279	-std=gnu++11 \
280	-Wno-narrowing \
281	-Wno-literal-suffix \
282	-Wno-non-virtual-dtor \
283	-Wno-sign-promo \
284	-Wno-non-virtual-dtor
285
286
287LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
288LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
289LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
290LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
291### Rules for final target.
292
293LOCAL_SHARED_LIBRARIES := \
294	libstlport \
295	libdl
296
297# Add target alias to "gyp_all_modules" target.
298.PHONY: gyp_all_modules
299gyp_all_modules: third_party_leveldatabase_leveldatabase_gyp
300
301# Alias gyp target name.
302.PHONY: leveldatabase
303leveldatabase: third_party_leveldatabase_leveldatabase_gyp
304
305include $(BUILD_STATIC_LIBRARY)
306