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