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