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