• 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_leveldatabase_leveldatabase_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
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/port/port_chromium.cc \
28	third_party/leveldatabase/src/db/builder.cc \
29	third_party/leveldatabase/src/db/db_impl.cc \
30	third_party/leveldatabase/src/db/db_iter.cc \
31	third_party/leveldatabase/src/db/filename.cc \
32	third_party/leveldatabase/src/db/dbformat.cc \
33	third_party/leveldatabase/src/db/log_reader.cc \
34	third_party/leveldatabase/src/db/log_writer.cc \
35	third_party/leveldatabase/src/db/memtable.cc \
36	third_party/leveldatabase/src/db/repair.cc \
37	third_party/leveldatabase/src/db/table_cache.cc \
38	third_party/leveldatabase/src/db/version_edit.cc \
39	third_party/leveldatabase/src/db/version_set.cc \
40	third_party/leveldatabase/src/db/write_batch.cc \
41	third_party/leveldatabase/src/helpers/memenv/memenv.cc \
42	third_party/leveldatabase/src/table/block.cc \
43	third_party/leveldatabase/src/table/block_builder.cc \
44	third_party/leveldatabase/src/table/filter_block.cc \
45	third_party/leveldatabase/src/table/format.cc \
46	third_party/leveldatabase/src/table/iterator.cc \
47	third_party/leveldatabase/src/table/merger.cc \
48	third_party/leveldatabase/src/table/table.cc \
49	third_party/leveldatabase/src/table/table_builder.cc \
50	third_party/leveldatabase/src/table/two_level_iterator.cc \
51	third_party/leveldatabase/src/util/arena.cc \
52	third_party/leveldatabase/src/util/bloom.cc \
53	third_party/leveldatabase/src/util/cache.cc \
54	third_party/leveldatabase/src/util/coding.cc \
55	third_party/leveldatabase/src/util/comparator.cc \
56	third_party/leveldatabase/src/util/crc32c.cc \
57	third_party/leveldatabase/src/util/env.cc \
58	third_party/leveldatabase/src/util/filter_policy.cc \
59	third_party/leveldatabase/src/util/hash.cc \
60	third_party/leveldatabase/src/util/logging.cc \
61	third_party/leveldatabase/src/util/options.cc \
62	third_party/leveldatabase/src/util/status.cc
63
64
65# Flags passed to both C and C++ files.
66MY_CFLAGS_Debug := \
67	-fstack-protector \
68	--param=ssp-buffer-size=4 \
69	-fno-exceptions \
70	-fno-strict-aliasing \
71	-Wno-unused-parameter \
72	-Wno-missing-field-initializers \
73	-fvisibility=hidden \
74	-pipe \
75	-fPIC \
76	-Wno-format \
77	-fno-tree-sra \
78	-fuse-ld=gold \
79	-Wno-psabi \
80	-ffunction-sections \
81	-funwind-tables \
82	-g \
83	-fstack-protector \
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-address \
92	-Wno-format-security \
93	-Wno-return-type \
94	-Wno-sequence-point \
95	-Os \
96	-g \
97	-fomit-frame-pointer \
98	-fdata-sections \
99	-ffunction-sections
100
101MY_DEFS_Debug := \
102	'-DLEVELDB_PLATFORM_CHROMIUM=1' \
103	'-DV8_DEPRECATION_WARNINGS' \
104	'-D_FILE_OFFSET_BITS=64' \
105	'-DNO_TCMALLOC' \
106	'-DDISABLE_NACL' \
107	'-DCHROMIUM_BUILD' \
108	'-DUSE_LIBJPEG_TURBO=1' \
109	'-DUSE_PROPRIETARY_CODECS' \
110	'-DENABLE_CONFIGURATION_POLICY' \
111	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
112	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
113	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
114	'-DUSE_OPENSSL=1' \
115	'-DENABLE_EGLIMAGE=1' \
116	'-DCLD_VERSION=1' \
117	'-DENABLE_PRINTING=1' \
118	'-DENABLE_MANAGED_USERS=1' \
119	'-DANDROID' \
120	'-D__GNU_SOURCE=1' \
121	'-DUSE_STLPORT=1' \
122	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
123	'-DCHROME_BUILD_ID=""' \
124	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
125	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
126	'-D_DEBUG'
127
128
129# Include paths placed before CFLAGS/CPPFLAGS
130LOCAL_C_INCLUDES_Debug := \
131	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
132	$(LOCAL_PATH)/third_party/leveldatabase \
133	$(LOCAL_PATH)/third_party/leveldatabase/src \
134	$(LOCAL_PATH)/third_party/leveldatabase/src/include \
135	$(LOCAL_PATH) \
136	$(LOCAL_PATH)/third_party/re2 \
137	$(PWD)/frameworks/wilhelm/include \
138	$(PWD)/bionic \
139	$(PWD)/external/stlport/stlport
140
141
142# Flags passed to only C++ (and not C) files.
143LOCAL_CPPFLAGS_Debug := \
144	-fno-rtti \
145	-fno-threadsafe-statics \
146	-fvisibility-inlines-hidden \
147	-Wno-deprecated \
148	-Wno-abi \
149	-Wno-error=c++0x-compat \
150	-Wno-non-virtual-dtor \
151	-Wno-sign-promo \
152	-Wno-non-virtual-dtor
153
154
155# Flags passed to both C and C++ files.
156MY_CFLAGS_Release := \
157	-fstack-protector \
158	--param=ssp-buffer-size=4 \
159	-fno-exceptions \
160	-fno-strict-aliasing \
161	-Wno-unused-parameter \
162	-Wno-missing-field-initializers \
163	-fvisibility=hidden \
164	-pipe \
165	-fPIC \
166	-Wno-format \
167	-fno-tree-sra \
168	-fuse-ld=gold \
169	-Wno-psabi \
170	-ffunction-sections \
171	-funwind-tables \
172	-g \
173	-fstack-protector \
174	-fno-short-enums \
175	-finline-limit=64 \
176	-Wa,--noexecstack \
177	-U_FORTIFY_SOURCE \
178	-Wno-extra \
179	-Wno-ignored-qualifiers \
180	-Wno-type-limits \
181	-Wno-address \
182	-Wno-format-security \
183	-Wno-return-type \
184	-Wno-sequence-point \
185	-Os \
186	-fno-ident \
187	-fdata-sections \
188	-ffunction-sections \
189	-fomit-frame-pointer
190
191MY_DEFS_Release := \
192	'-DLEVELDB_PLATFORM_CHROMIUM=1' \
193	'-DV8_DEPRECATION_WARNINGS' \
194	'-D_FILE_OFFSET_BITS=64' \
195	'-DNO_TCMALLOC' \
196	'-DDISABLE_NACL' \
197	'-DCHROMIUM_BUILD' \
198	'-DUSE_LIBJPEG_TURBO=1' \
199	'-DUSE_PROPRIETARY_CODECS' \
200	'-DENABLE_CONFIGURATION_POLICY' \
201	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
202	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
203	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
204	'-DUSE_OPENSSL=1' \
205	'-DENABLE_EGLIMAGE=1' \
206	'-DCLD_VERSION=1' \
207	'-DENABLE_PRINTING=1' \
208	'-DENABLE_MANAGED_USERS=1' \
209	'-DANDROID' \
210	'-D__GNU_SOURCE=1' \
211	'-DUSE_STLPORT=1' \
212	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
213	'-DCHROME_BUILD_ID=""' \
214	'-DNDEBUG' \
215	'-DNVALGRIND' \
216	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
217
218
219# Include paths placed before CFLAGS/CPPFLAGS
220LOCAL_C_INCLUDES_Release := \
221	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
222	$(LOCAL_PATH)/third_party/leveldatabase \
223	$(LOCAL_PATH)/third_party/leveldatabase/src \
224	$(LOCAL_PATH)/third_party/leveldatabase/src/include \
225	$(LOCAL_PATH) \
226	$(LOCAL_PATH)/third_party/re2 \
227	$(PWD)/frameworks/wilhelm/include \
228	$(PWD)/bionic \
229	$(PWD)/external/stlport/stlport
230
231
232# Flags passed to only C++ (and not C) files.
233LOCAL_CPPFLAGS_Release := \
234	-fno-rtti \
235	-fno-threadsafe-statics \
236	-fvisibility-inlines-hidden \
237	-Wno-deprecated \
238	-Wno-abi \
239	-Wno-error=c++0x-compat \
240	-Wno-non-virtual-dtor \
241	-Wno-sign-promo \
242	-Wno-non-virtual-dtor
243
244
245LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
246LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
247LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
248### Rules for final target.
249
250LOCAL_LDFLAGS_Debug := \
251	-Wl,-z,now \
252	-Wl,-z,relro \
253	-Wl,-z,noexecstack \
254	-fPIC \
255	-Wl,-z,relro \
256	-Wl,-z,now \
257	-fuse-ld=gold \
258	-nostdlib \
259	-Wl,--no-undefined \
260	-Wl,--exclude-libs=ALL \
261	-Wl,--icf=safe \
262	-Wl,--fatal-warnings \
263	-Wl,--gc-sections \
264	-Wl,--warn-shared-textrel \
265	-Wl,-O1 \
266	-Wl,--as-needed
267
268
269LOCAL_LDFLAGS_Release := \
270	-Wl,-z,now \
271	-Wl,-z,relro \
272	-Wl,-z,noexecstack \
273	-fPIC \
274	-Wl,-z,relro \
275	-Wl,-z,now \
276	-fuse-ld=gold \
277	-nostdlib \
278	-Wl,--no-undefined \
279	-Wl,--exclude-libs=ALL \
280	-Wl,--icf=safe \
281	-Wl,-O1 \
282	-Wl,--as-needed \
283	-Wl,--gc-sections \
284	-Wl,--fatal-warnings \
285	-Wl,--warn-shared-textrel
286
287
288LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
289
290LOCAL_STATIC_LIBRARIES :=
291
292# Enable grouping to fix circular references
293LOCAL_GROUP_STATIC_LIBRARIES := true
294
295LOCAL_SHARED_LIBRARIES := \
296	libstlport \
297	libdl
298
299# Add target alias to "gyp_all_modules" target.
300.PHONY: gyp_all_modules
301gyp_all_modules: third_party_leveldatabase_leveldatabase_gyp
302
303# Alias gyp target name.
304.PHONY: leveldatabase
305leveldatabase: third_party_leveldatabase_leveldatabase_gyp
306
307include $(BUILD_STATIC_LIBRARY)
308