1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := content_content_common_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,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
16	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
17	$(call intermediates-dir-for,GYP,content_content_resources_gyp)/content_resources.stamp \
18	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_minimal_gyp)/blink_minimal.stamp \
19	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \
20	$(call intermediates-dir-for,STATIC_LIBRARIES,webkit_support_glue_gyp)/webkit_support_glue_gyp.a \
21	$(call intermediates-dir-for,GYP,content_content_jni_headers_gyp)/content_jni_headers.stamp \
22	$(call intermediates-dir-for,GYP,content_common_aidl_gyp)/common_aidl.stamp
23
24GYP_GENERATED_OUTPUTS :=
25
26# Make sure our deps and generated files are built first.
27LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
28
29LOCAL_CPP_EXTENSION := .cc
30LOCAL_GENERATED_SOURCES :=
31
32GYP_COPIED_SOURCE_ORIGIN_DIRS :=
33
34LOCAL_SRC_FILES := \
35	content/public/common/child_process_host_delegate.cc \
36	content/public/common/content_constants.cc \
37	content/public/common/content_switches.cc \
38	content/public/common/context_menu_params.cc \
39	content/public/common/desktop_media_id.cc \
40	content/public/common/drop_data.cc \
41	content/public/common/favicon_url.cc \
42	content/public/common/file_chooser_params.cc \
43	content/public/common/frame_navigate_params.cc \
44	content/public/common/geoposition.cc \
45	content/public/common/gpu_memory_stats.cc \
46	content/public/common/media_stream_request.cc \
47	content/public/common/menu_item.cc \
48	content/public/common/page_state.cc \
49	content/public/common/page_transition_types.cc \
50	content/public/common/password_form.cc \
51	content/public/common/pepper_plugin_info.cc \
52	content/public/common/renderer_preferences.cc \
53	content/public/common/show_desktop_notification_params.cc \
54	content/public/common/speech_recognition_result.cc \
55	content/public/common/ssl_status.cc \
56	content/public/common/url_constants.cc \
57	content/public/common/url_utils.cc \
58	content/public/common/webplugininfo.cc \
59	content/common/accessibility_node_data.cc \
60	content/common/android/address_parser.cc \
61	content/common/android/address_parser_internal.cc \
62	content/common/android/command_line.cc \
63	content/common/android/common_jni_registrar.cc \
64	content/common/android/device_telephony_info.cc \
65	content/common/android/hash_set.cc \
66	content/common/android/surface_texture_peer.cc \
67	content/common/android/trace_event_binding.cc \
68	content/common/browser_plugin/browser_plugin_constants.cc \
69	content/common/browser_rendering_stats.cc \
70	content/common/cc_messages.cc \
71	content/common/child_process_host_impl.cc \
72	content/common/clipboard_messages.cc \
73	content/common/content_constants_internal.cc \
74	content/common/content_ipc_logging.cc \
75	content/common/content_message_generator.cc \
76	content/common/content_param_traits.cc \
77	content/common/content_paths.cc \
78	content/common/cookie_data.cc \
79	content/common/dom_storage/dom_storage_map.cc \
80	content/common/find_match_rect_android.cc \
81	content/common/font_list.cc \
82	content/common/font_list_android.cc \
83	content/common/gamepad_user_gesture.cc \
84	content/common/gpu/client/command_buffer_proxy_impl.cc \
85	content/common/gpu/client/context_provider_command_buffer.cc \
86	content/common/gpu/client/gl_helper.cc \
87	content/common/gpu/client/gl_helper_scaling.cc \
88	content/common/gpu/client/gpu_channel_host.cc \
89	content/common/gpu/client/gpu_video_decode_accelerator_host.cc \
90	content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc \
91	content/common/gpu/gpu_channel.cc \
92	content/common/gpu/gpu_channel_manager.cc \
93	content/common/gpu/gpu_command_buffer_stub.cc \
94	content/common/gpu/gpu_memory_manager.cc \
95	content/common/gpu/gpu_memory_manager_client.cc \
96	content/common/gpu/gpu_memory_tracking.cc \
97	content/common/gpu/gpu_rendering_stats.cc \
98	content/common/gpu/gpu_surface_lookup.cc \
99	content/common/gpu/stream_texture_manager_android.cc \
100	content/common/gpu/image_transport_surface.cc \
101	content/common/gpu/image_transport_surface_android.cc \
102	content/common/gpu/media/h264_bit_reader.cc \
103	content/common/gpu/media/h264_parser.cc \
104	content/common/gpu/media/gpu_video_decode_accelerator.cc \
105	content/common/gpu/sync_point_manager.cc \
106	content/common/gpu/texture_image_transport_surface.cc \
107	content/common/indexed_db/indexed_db_key.cc \
108	content/common/indexed_db/indexed_db_key_path.cc \
109	content/common/indexed_db/indexed_db_key_range.cc \
110	content/common/indexed_db/indexed_db_param_traits.cc \
111	content/common/inter_process_time_ticks_converter.cc \
112	content/common/media/media_param_traits.cc \
113	content/common/media/media_stream_options.cc \
114	content/common/message_router.cc \
115	content/common/net/url_fetcher.cc \
116	content/common/net/url_request_user_data.cc \
117	content/common/one_writer_seqlock.cc \
118	content/common/page_state_serialization.cc \
119	content/common/page_zoom.cc \
120	content/common/pepper_renderer_instance_data.cc \
121	content/common/plugin_list.cc \
122	content/common/plugin_list_posix.cc \
123	content/common/process_type.cc \
124	content/common/resource_messages.cc \
125	content/common/sandbox_util.cc \
126	content/common/savable_url_schemes.cc \
127	content/common/set_process_title.cc \
128	content/common/socket_stream_handle_data.cc \
129	content/common/ssl_status_serialization.cc \
130	content/common/swapped_out_messages.cc \
131	content/common/url_schemes.cc \
132	content/common/webplugin_geometry.cc \
133	content/public/common/common_param_traits.cc \
134	content/public/common/content_client.cc \
135	content/public/common/window_container_type.cc \
136	content/common/gpu/media/android_video_decode_accelerator.cc
137
138
139# Flags passed to both C and C++ files.
140MY_CFLAGS_Debug := \
141	-fstack-protector \
142	--param=ssp-buffer-size=4 \
143	 \
144	-fno-exceptions \
145	-fno-strict-aliasing \
146	-Wall \
147	-Wno-unused-parameter \
148	-Wno-missing-field-initializers \
149	-fvisibility=hidden \
150	-pipe \
151	-fPIC \
152	-Wno-unknown-pragmas \
153	-EL \
154	-mhard-float \
155	-ffunction-sections \
156	-funwind-tables \
157	-g \
158	-fstack-protector \
159	-fno-short-enums \
160	-finline-limit=64 \
161	-Wa,--noexecstack \
162	-U_FORTIFY_SOURCE \
163	-Wno-extra \
164	-Wno-ignored-qualifiers \
165	-Wno-type-limits \
166	-Os \
167	-g \
168	-fomit-frame-pointer \
169	-fdata-sections \
170	-ffunction-sections
171
172MY_DEFS_Debug := \
173	'-DCONTENT_IMPLEMENTATION' \
174	'-DANGLE_DX11' \
175	'-D_FILE_OFFSET_BITS=64' \
176	'-DNO_TCMALLOC' \
177	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
178	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
179	'-DDISABLE_NACL' \
180	'-DCHROMIUM_BUILD' \
181	'-DUSE_LIBJPEG_TURBO=1' \
182	'-DUSE_PROPRIETARY_CODECS' \
183	'-DENABLE_CONFIGURATION_POLICY' \
184	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
185	'-DTRACING_IS_OFFICIAL_BUILD=1' \
186	'-DENABLE_GPU=1' \
187	'-DUSE_OPENSSL=1' \
188	'-DENABLE_EGLIMAGE=1' \
189	'-DENABLE_PRINTING=1' \
190	'-DMEDIA_DISABLE_LIBVPX' \
191	'-DPOSIX_AVOID_MMAP' \
192	'-DU_USING_ICU_NAMESPACE=0' \
193	'-DMESA_EGL_NO_X11_HEADERS' \
194	'-D__STDC_CONSTANT_MACROS' \
195	'-D__STDC_FORMAT_MACROS' \
196	'-DANDROID' \
197	'-D__GNU_SOURCE=1' \
198	'-DUSE_STLPORT=1' \
199	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
200	'-DCHROME_BUILD_ID=""' \
201	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
202	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
203	'-D_DEBUG'
204
205
206# Include paths placed before CFLAGS/CPPFLAGS
207LOCAL_C_INCLUDES_Debug := \
208	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
209	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
210	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
211	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
212	$(LOCAL_PATH) \
213	$(LOCAL_PATH)/third_party/khronos \
214	$(LOCAL_PATH)/gpu \
215	$(LOCAL_PATH)/third_party/skia/src/core \
216	$(LOCAL_PATH)/skia/ext \
217	$(PWD)/external/icu4c/common \
218	$(PWD)/external/icu4c/i18n \
219	$(gyp_shared_intermediate_dir)/content \
220	$(LOCAL_PATH)/v8/include \
221	$(gyp_shared_intermediate_dir)/ui/gl \
222	$(LOCAL_PATH)/third_party/mesa/src/include \
223	$(PWD)/frameworks/wilhelm/include \
224	$(PWD)/bionic \
225	$(PWD)/external/stlport/stlport
226
227
228# Flags passed to only C++ (and not C) files.
229LOCAL_CPPFLAGS_Debug := \
230	-fno-rtti \
231	-fno-threadsafe-statics \
232	-fvisibility-inlines-hidden \
233	-Wsign-compare \
234	-Wno-uninitialized \
235	-Wno-error=c++0x-compat \
236	-Wno-non-virtual-dtor \
237	-Wno-sign-promo
238
239
240# Flags passed to both C and C++ files.
241MY_CFLAGS_Release := \
242	-fstack-protector \
243	--param=ssp-buffer-size=4 \
244	 \
245	-fno-exceptions \
246	-fno-strict-aliasing \
247	-Wall \
248	-Wno-unused-parameter \
249	-Wno-missing-field-initializers \
250	-fvisibility=hidden \
251	-pipe \
252	-fPIC \
253	-Wno-unknown-pragmas \
254	-EL \
255	-mhard-float \
256	-ffunction-sections \
257	-funwind-tables \
258	-g \
259	-fstack-protector \
260	-fno-short-enums \
261	-finline-limit=64 \
262	-Wa,--noexecstack \
263	-U_FORTIFY_SOURCE \
264	-Wno-extra \
265	-Wno-ignored-qualifiers \
266	-Wno-type-limits \
267	-Os \
268	-fno-ident \
269	-fdata-sections \
270	-ffunction-sections \
271	-fomit-frame-pointer
272
273MY_DEFS_Release := \
274	'-DCONTENT_IMPLEMENTATION' \
275	'-DANGLE_DX11' \
276	'-D_FILE_OFFSET_BITS=64' \
277	'-DNO_TCMALLOC' \
278	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
279	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
280	'-DDISABLE_NACL' \
281	'-DCHROMIUM_BUILD' \
282	'-DUSE_LIBJPEG_TURBO=1' \
283	'-DUSE_PROPRIETARY_CODECS' \
284	'-DENABLE_CONFIGURATION_POLICY' \
285	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
286	'-DTRACING_IS_OFFICIAL_BUILD=1' \
287	'-DENABLE_GPU=1' \
288	'-DUSE_OPENSSL=1' \
289	'-DENABLE_EGLIMAGE=1' \
290	'-DENABLE_PRINTING=1' \
291	'-DMEDIA_DISABLE_LIBVPX' \
292	'-DPOSIX_AVOID_MMAP' \
293	'-DU_USING_ICU_NAMESPACE=0' \
294	'-DMESA_EGL_NO_X11_HEADERS' \
295	'-D__STDC_CONSTANT_MACROS' \
296	'-D__STDC_FORMAT_MACROS' \
297	'-DANDROID' \
298	'-D__GNU_SOURCE=1' \
299	'-DUSE_STLPORT=1' \
300	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
301	'-DCHROME_BUILD_ID=""' \
302	'-DNDEBUG' \
303	'-DNVALGRIND' \
304	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
305	'-D_FORTIFY_SOURCE=2'
306
307
308# Include paths placed before CFLAGS/CPPFLAGS
309LOCAL_C_INCLUDES_Release := \
310	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
311	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
312	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
313	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
314	$(LOCAL_PATH) \
315	$(LOCAL_PATH)/third_party/khronos \
316	$(LOCAL_PATH)/gpu \
317	$(LOCAL_PATH)/third_party/skia/src/core \
318	$(LOCAL_PATH)/skia/ext \
319	$(PWD)/external/icu4c/common \
320	$(PWD)/external/icu4c/i18n \
321	$(gyp_shared_intermediate_dir)/content \
322	$(LOCAL_PATH)/v8/include \
323	$(gyp_shared_intermediate_dir)/ui/gl \
324	$(LOCAL_PATH)/third_party/mesa/src/include \
325	$(PWD)/frameworks/wilhelm/include \
326	$(PWD)/bionic \
327	$(PWD)/external/stlport/stlport
328
329
330# Flags passed to only C++ (and not C) files.
331LOCAL_CPPFLAGS_Release := \
332	-fno-rtti \
333	-fno-threadsafe-statics \
334	-fvisibility-inlines-hidden \
335	-Wsign-compare \
336	-Wno-uninitialized \
337	-Wno-error=c++0x-compat \
338	-Wno-non-virtual-dtor \
339	-Wno-sign-promo
340
341
342LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
343LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
344LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
345### Rules for final target.
346
347LOCAL_LDFLAGS_Debug := \
348	-Wl,-z,now \
349	-Wl,-z,relro \
350	-Wl,-z,noexecstack \
351	-fPIC \
352	-EL \
353	-Wl,--no-keep-memory \
354	-nostdlib \
355	-Wl,--no-undefined \
356	-Wl,--exclude-libs=ALL \
357	-Wl,--fatal-warnings \
358	-Wl,--gc-sections \
359	-Wl,--warn-shared-textrel \
360	-Wl,-O1 \
361	-Wl,--as-needed
362
363
364LOCAL_LDFLAGS_Release := \
365	-Wl,-z,now \
366	-Wl,-z,relro \
367	-Wl,-z,noexecstack \
368	-fPIC \
369	-EL \
370	-Wl,--no-keep-memory \
371	-nostdlib \
372	-Wl,--no-undefined \
373	-Wl,--exclude-libs=ALL \
374	-Wl,-O1 \
375	-Wl,--as-needed \
376	-Wl,--gc-sections \
377	-Wl,--fatal-warnings \
378	-Wl,--warn-shared-textrel
379
380
381LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
382
383LOCAL_STATIC_LIBRARIES := \
384	ui_ui_gyp \
385	ui_gl_gl_gyp \
386	webkit_support_glue_gyp
387
388# Enable grouping to fix circular references
389LOCAL_GROUP_STATIC_LIBRARIES := true
390
391LOCAL_SHARED_LIBRARIES := \
392	libskia \
393	libstlport \
394	libdl
395
396# Add target alias to "gyp_all_modules" target.
397.PHONY: gyp_all_modules
398gyp_all_modules: content_content_common_gyp
399
400# Alias gyp target name.
401.PHONY: content_common
402content_common: content_content_common_gyp
403
404include $(BUILD_STATIC_LIBRARY)
405