1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := content_content_child_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	$(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
15	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
16	$(call intermediates-dir-for,GYP,content_content_resources_gyp)/content_resources.stamp \
17	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_gyp)/blink.stamp \
18	$(call intermediates-dir-for,GYP,third_party_npapi_npapi_gyp)/npapi.stamp \
19	$(call intermediates-dir-for,STATIC_LIBRARIES,webkit_support_glue_child_gyp)/webkit_support_glue_child_gyp.a
20
21GYP_GENERATED_OUTPUTS :=
22
23# Make sure our deps and generated files are built first.
24LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
25
26LOCAL_CPP_EXTENSION := .cc
27LOCAL_GENERATED_SOURCES :=
28
29GYP_COPIED_SOURCE_ORIGIN_DIRS :=
30
31LOCAL_SRC_FILES := \
32	content/child/android/child_jni_registrar.cc \
33	content/child/appcache/appcache_backend_proxy.cc \
34	content/child/appcache/appcache_dispatcher.cc \
35	content/child/appcache/appcache_frontend_impl.cc \
36	content/child/appcache/web_application_cache_host_impl.cc \
37	content/child/child_histogram_message_filter.cc \
38	content/child/child_process.cc \
39	content/child/child_resource_message_filter.cc \
40	content/child/child_thread.cc \
41	content/child/database_util.cc \
42	content/child/db_message_filter.cc \
43	content/child/fileapi/file_system_dispatcher.cc \
44	content/child/fileapi/webfilesystem_callback_adapters.cc \
45	content/child/fileapi/webfilesystem_impl.cc \
46	content/child/fileapi/webfilewriter_impl.cc \
47	content/child/image_decoder.cc \
48	content/child/indexed_db/indexed_db_dispatcher.cc \
49	content/child/indexed_db/indexed_db_key_builders.cc \
50	content/child/indexed_db/indexed_db_message_filter.cc \
51	content/child/indexed_db/proxy_webidbcursor_impl.cc \
52	content/child/indexed_db/proxy_webidbdatabase_impl.cc \
53	content/child/indexed_db/proxy_webidbfactory_impl.cc \
54	content/child/npapi/np_channel_base.cc \
55	content/child/npapi/npobject_proxy.cc \
56	content/child/npapi/npobject_stub.cc \
57	content/child/npapi/npobject_util.cc \
58	content/child/npapi/npruntime_util.cc \
59	content/child/plugin_message_generator.cc \
60	content/child/plugin_param_traits.cc \
61	content/child/power_monitor_broadcast_source.cc \
62	content/child/quota_dispatcher.cc \
63	content/child/quota_message_filter.cc \
64	content/child/request_extra_data.cc \
65	content/child/resource_dispatcher.cc \
66	content/child/runtime_features.cc \
67	content/child/socket_stream_dispatcher.cc \
68	content/child/thread_safe_sender.cc \
69	content/child/web_database_observer_impl.cc \
70	content/child/webblobregistry_impl.cc \
71	content/child/webkitplatformsupport_impl.cc \
72	content/child/webmessageportchannel_impl.cc
73
74
75# Flags passed to both C and C++ files.
76MY_CFLAGS_Debug := \
77	-fstack-protector \
78	--param=ssp-buffer-size=4 \
79	-Werror \
80	-fno-exceptions \
81	-fno-strict-aliasing \
82	-Wall \
83	-Wno-unused-parameter \
84	-Wno-missing-field-initializers \
85	-fvisibility=hidden \
86	-pipe \
87	-fPIC \
88	-fno-tree-sra \
89	-fuse-ld=gold \
90	-Wno-psabi \
91	-ffunction-sections \
92	-funwind-tables \
93	-g \
94	-fstack-protector \
95	-fno-short-enums \
96	-finline-limit=64 \
97	-Wa,--noexecstack \
98	-U_FORTIFY_SOURCE \
99	-Wno-extra \
100	-Wno-ignored-qualifiers \
101	-Wno-type-limits \
102	-Os \
103	-g \
104	-fomit-frame-pointer \
105	-fdata-sections \
106	-ffunction-sections
107
108MY_DEFS_Debug := \
109	'-DCONTENT_IMPLEMENTATION' \
110	'-DANGLE_DX11' \
111	'-D_FILE_OFFSET_BITS=64' \
112	'-DNO_TCMALLOC' \
113	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
114	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
115	'-DDISABLE_NACL' \
116	'-DCHROMIUM_BUILD' \
117	'-DUSE_LIBJPEG_TURBO=1' \
118	'-DUSE_PROPRIETARY_CODECS' \
119	'-DENABLE_CONFIGURATION_POLICY' \
120	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
121	'-DTRACING_IS_OFFICIAL_BUILD=1' \
122	'-DENABLE_GPU=1' \
123	'-DUSE_OPENSSL=1' \
124	'-DENABLE_EGLIMAGE=1' \
125	'-DENABLE_PRINTING=1' \
126	'-DPOSIX_AVOID_MMAP' \
127	'-DU_USING_ICU_NAMESPACE=0' \
128	'-D__STDC_CONSTANT_MACROS' \
129	'-D__STDC_FORMAT_MACROS' \
130	'-DANDROID' \
131	'-D__GNU_SOURCE=1' \
132	'-DUSE_STLPORT=1' \
133	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
134	'-DCHROME_BUILD_ID=""' \
135	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
136	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
137	'-D_DEBUG'
138
139
140# Include paths placed before CFLAGS/CPPFLAGS
141LOCAL_C_INCLUDES_Debug := \
142	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
143	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
144	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
145	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
146	$(LOCAL_PATH) \
147	$(LOCAL_PATH)/third_party/khronos \
148	$(LOCAL_PATH)/gpu \
149	$(LOCAL_PATH)/third_party/skia/src/core \
150	$(LOCAL_PATH)/skia/ext \
151	$(PWD)/external/icu4c/common \
152	$(PWD)/external/icu4c/i18n \
153	$(gyp_shared_intermediate_dir)/content \
154	$(LOCAL_PATH)/third_party/WebKit \
155	$(LOCAL_PATH)/v8/include \
156	$(LOCAL_PATH)/third_party/npapi \
157	$(LOCAL_PATH)/third_party/npapi/bindings \
158	$(PWD)/frameworks/wilhelm/include \
159	$(PWD)/bionic \
160	$(PWD)/external/stlport/stlport
161
162
163# Flags passed to only C++ (and not C) files.
164LOCAL_CPPFLAGS_Debug := \
165	-fno-rtti \
166	-fno-threadsafe-statics \
167	-fvisibility-inlines-hidden \
168	-Wsign-compare \
169	-Wno-abi \
170	-Wno-error=c++0x-compat \
171	-Wno-non-virtual-dtor \
172	-Wno-sign-promo
173
174
175# Flags passed to both C and C++ files.
176MY_CFLAGS_Release := \
177	-fstack-protector \
178	--param=ssp-buffer-size=4 \
179	-Werror \
180	-fno-exceptions \
181	-fno-strict-aliasing \
182	-Wall \
183	-Wno-unused-parameter \
184	-Wno-missing-field-initializers \
185	-fvisibility=hidden \
186	-pipe \
187	-fPIC \
188	-fno-tree-sra \
189	-fuse-ld=gold \
190	-Wno-psabi \
191	-ffunction-sections \
192	-funwind-tables \
193	-g \
194	-fstack-protector \
195	-fno-short-enums \
196	-finline-limit=64 \
197	-Wa,--noexecstack \
198	-U_FORTIFY_SOURCE \
199	-Wno-extra \
200	-Wno-ignored-qualifiers \
201	-Wno-type-limits \
202	-Os \
203	-fno-ident \
204	-fdata-sections \
205	-ffunction-sections \
206	-fomit-frame-pointer
207
208MY_DEFS_Release := \
209	'-DCONTENT_IMPLEMENTATION' \
210	'-DANGLE_DX11' \
211	'-D_FILE_OFFSET_BITS=64' \
212	'-DNO_TCMALLOC' \
213	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
214	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
215	'-DDISABLE_NACL' \
216	'-DCHROMIUM_BUILD' \
217	'-DUSE_LIBJPEG_TURBO=1' \
218	'-DUSE_PROPRIETARY_CODECS' \
219	'-DENABLE_CONFIGURATION_POLICY' \
220	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
221	'-DTRACING_IS_OFFICIAL_BUILD=1' \
222	'-DENABLE_GPU=1' \
223	'-DUSE_OPENSSL=1' \
224	'-DENABLE_EGLIMAGE=1' \
225	'-DENABLE_PRINTING=1' \
226	'-DPOSIX_AVOID_MMAP' \
227	'-DU_USING_ICU_NAMESPACE=0' \
228	'-D__STDC_CONSTANT_MACROS' \
229	'-D__STDC_FORMAT_MACROS' \
230	'-DANDROID' \
231	'-D__GNU_SOURCE=1' \
232	'-DUSE_STLPORT=1' \
233	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
234	'-DCHROME_BUILD_ID=""' \
235	'-DNDEBUG' \
236	'-DNVALGRIND' \
237	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
238	'-D_FORTIFY_SOURCE=2'
239
240
241# Include paths placed before CFLAGS/CPPFLAGS
242LOCAL_C_INCLUDES_Release := \
243	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
244	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
245	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
246	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
247	$(LOCAL_PATH) \
248	$(LOCAL_PATH)/third_party/khronos \
249	$(LOCAL_PATH)/gpu \
250	$(LOCAL_PATH)/third_party/skia/src/core \
251	$(LOCAL_PATH)/skia/ext \
252	$(PWD)/external/icu4c/common \
253	$(PWD)/external/icu4c/i18n \
254	$(gyp_shared_intermediate_dir)/content \
255	$(LOCAL_PATH)/third_party/WebKit \
256	$(LOCAL_PATH)/v8/include \
257	$(LOCAL_PATH)/third_party/npapi \
258	$(LOCAL_PATH)/third_party/npapi/bindings \
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	-Wsign-compare \
270	-Wno-abi \
271	-Wno-error=c++0x-compat \
272	-Wno-non-virtual-dtor \
273	-Wno-sign-promo
274
275
276LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
277LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
278LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
279### Rules for final target.
280
281LOCAL_LDFLAGS_Debug := \
282	-Wl,-z,now \
283	-Wl,-z,relro \
284	-Wl,-z,noexecstack \
285	-fPIC \
286	-Wl,-z,relro \
287	-Wl,-z,now \
288	-fuse-ld=gold \
289	-nostdlib \
290	-Wl,--no-undefined \
291	-Wl,--exclude-libs=ALL \
292	-Wl,--icf=safe \
293	-Wl,--fatal-warnings \
294	-Wl,--gc-sections \
295	-Wl,--warn-shared-textrel \
296	-Wl,-O1 \
297	-Wl,--as-needed
298
299
300LOCAL_LDFLAGS_Release := \
301	-Wl,-z,now \
302	-Wl,-z,relro \
303	-Wl,-z,noexecstack \
304	-fPIC \
305	-Wl,-z,relro \
306	-Wl,-z,now \
307	-fuse-ld=gold \
308	-nostdlib \
309	-Wl,--no-undefined \
310	-Wl,--exclude-libs=ALL \
311	-Wl,--icf=safe \
312	-Wl,-O1 \
313	-Wl,--as-needed \
314	-Wl,--gc-sections \
315	-Wl,--fatal-warnings \
316	-Wl,--warn-shared-textrel
317
318
319LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
320
321LOCAL_STATIC_LIBRARIES := \
322	cpufeatures \
323	ui_ui_gyp \
324	webkit_support_glue_child_gyp
325
326# Enable grouping to fix circular references
327LOCAL_GROUP_STATIC_LIBRARIES := true
328
329LOCAL_SHARED_LIBRARIES := \
330	libskia \
331	libstlport \
332	libdl
333
334# Add target alias to "gyp_all_modules" target.
335.PHONY: gyp_all_modules
336gyp_all_modules: content_content_child_gyp
337
338# Alias gyp target name.
339.PHONY: content_child
340content_child: content_content_child_gyp
341
342include $(BUILD_STATIC_LIBRARY)
343