content_common.target.linux-x86.mk revision f2477e01787aa58f445919b809d89e252beef54f
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,STATIC_LIBRARIES,skia_skia_library_gyp)/skia_skia_library_gyp.a \
16	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
17	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
18	$(call intermediates-dir-for,GYP,content_content_resources_gyp)/content_resources.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_glue_glue_gyp)/webkit_glue_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/pepper_plugin_info.cc \
51	content/public/common/renderer_preferences.cc \
52	content/public/common/show_desktop_notification_params.cc \
53	content/public/common/speech_recognition_result.cc \
54	content/public/common/ssl_status.cc \
55	content/public/common/url_constants.cc \
56	content/public/common/url_utils.cc \
57	content/public/common/webplugininfo.cc \
58	content/common/accessibility_node_data.cc \
59	content/common/android/address_parser.cc \
60	content/common/android/address_parser_internal.cc \
61	content/common/android/common_jni_registrar.cc \
62	content/common/android/device_telephony_info.cc \
63	content/common/android/hash_set.cc \
64	content/common/android/surface_texture_peer.cc \
65	content/common/android/trace_event_binding.cc \
66	content/common/android/view_configuration.cc \
67	content/common/browser_plugin/browser_plugin_constants.cc \
68	content/common/browser_rendering_stats.cc \
69	content/common/cc_messages.cc \
70	content/common/child_process_host_impl.cc \
71	content/common/clipboard_messages.cc \
72	content/common/content_constants_internal.cc \
73	content/common/content_ipc_logging.cc \
74	content/common/content_message_generator.cc \
75	content/common/content_param_traits.cc \
76	content/common/content_paths.cc \
77	content/common/cookie_data.cc \
78	content/common/dom_storage/dom_storage_map.cc \
79	content/common/font_list_android.cc \
80	content/common/gamepad_user_gesture.cc \
81	content/common/gpu/client/command_buffer_proxy_impl.cc \
82	content/common/gpu/client/context_provider_command_buffer.cc \
83	content/common/gpu/client/gl_helper.cc \
84	content/common/gpu/client/gl_helper_scaling.cc \
85	content/common/gpu/client/gpu_channel_host.cc \
86	content/common/gpu/client/gpu_memory_buffer_impl.cc \
87	content/common/gpu/client/gpu_video_decode_accelerator_host.cc \
88	content/common/gpu/client/gpu_video_encode_accelerator_host.cc \
89	content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc \
90	content/common/gpu/devtools_gpu_agent.cc \
91	content/common/gpu/devtools_gpu_instrumentation.cc \
92	content/common/gpu/gpu_channel.cc \
93	content/common/gpu/gpu_channel_manager.cc \
94	content/common/gpu/gpu_command_buffer_stub.cc \
95	content/common/gpu/gpu_memory_manager.cc \
96	content/common/gpu/gpu_memory_manager_client.cc \
97	content/common/gpu/gpu_memory_tracking.cc \
98	content/common/gpu/gpu_rendering_stats.cc \
99	content/common/gpu/gpu_surface_lookup.cc \
100	content/common/gpu/image_transport_surface.cc \
101	content/common/gpu/image_transport_surface_android.cc \
102	content/common/gpu/media/gpu_video_decode_accelerator.cc \
103	content/common/gpu/media/gpu_video_encode_accelerator.cc \
104	content/common/gpu/media/h264_bit_reader.cc \
105	content/common/gpu/media/h264_parser.cc \
106	content/common/gpu/media/video_decode_accelerator_impl.cc \
107	content/common/gpu/stream_texture_manager_android.cc \
108	content/common/gpu/sync_point_manager.cc \
109	content/common/gpu/texture_image_transport_surface.cc \
110	content/common/indexed_db/indexed_db_key.cc \
111	content/common/indexed_db/indexed_db_key_path.cc \
112	content/common/indexed_db/indexed_db_key_range.cc \
113	content/common/indexed_db/indexed_db_param_traits.cc \
114	content/common/input/input_event.cc \
115	content/common/input/input_param_traits.cc \
116	content/common/input/scoped_web_input_event.cc \
117	content/common/input/synthetic_gesture_packet.cc \
118	content/common/input/synthetic_gesture_params.cc \
119	content/common/input/synthetic_pinch_gesture_params.cc \
120	content/common/input/synthetic_smooth_scroll_gesture_params.cc \
121	content/common/input/web_input_event_traits.cc \
122	content/common/inter_process_time_ticks_converter.cc \
123	content/common/media/media_param_traits.cc \
124	content/common/media/media_stream_options.cc \
125	content/common/message_router.cc \
126	content/common/net/url_fetcher.cc \
127	content/common/net/url_request_user_data.cc \
128	content/common/one_writer_seqlock.cc \
129	content/common/page_state_serialization.cc \
130	content/common/page_zoom.cc \
131	content/common/pepper_renderer_instance_data.cc \
132	content/common/plugin_list.cc \
133	content/common/plugin_list_posix.cc \
134	content/common/process_type.cc \
135	content/common/resource_messages.cc \
136	content/common/savable_url_schemes.cc \
137	content/common/set_process_title.cc \
138	content/common/socket_stream_handle_data.cc \
139	content/common/ssl_status_serialization.cc \
140	content/common/swapped_out_messages.cc \
141	content/common/url_schemes.cc \
142	content/common/webplugin_geometry.cc \
143	content/common/websocket.cc \
144	content/public/common/common_param_traits.cc \
145	content/public/common/content_client.cc \
146	content/public/common/window_container_type.cc \
147	content/common/gpu/media/android_video_decode_accelerator.cc
148
149
150# Flags passed to both C and C++ files.
151MY_CFLAGS_Debug := \
152	--param=ssp-buffer-size=4 \
153	-Werror \
154	-fno-exceptions \
155	-fno-strict-aliasing \
156	-Wall \
157	-Wno-unused-parameter \
158	-Wno-missing-field-initializers \
159	-fvisibility=hidden \
160	-pipe \
161	-fPIC \
162	-Wno-unknown-pragmas \
163	-m32 \
164	-mmmx \
165	-march=pentium4 \
166	-msse2 \
167	-mfpmath=sse \
168	-fuse-ld=gold \
169	-ffunction-sections \
170	-funwind-tables \
171	-g \
172	-fno-short-enums \
173	-finline-limit=64 \
174	-Wa,--noexecstack \
175	-U_FORTIFY_SOURCE \
176	-Wno-extra \
177	-Wno-ignored-qualifiers \
178	-Wno-type-limits \
179	-fno-stack-protector \
180	-Os \
181	-g \
182	-fomit-frame-pointer \
183	-fdata-sections \
184	-ffunction-sections
185
186MY_DEFS_Debug := \
187	'-DCONTENT_IMPLEMENTATION' \
188	'-DANGLE_DX11' \
189	'-D_FILE_OFFSET_BITS=64' \
190	'-DNO_TCMALLOC' \
191	'-DDISABLE_NACL' \
192	'-DCHROMIUM_BUILD' \
193	'-DUSE_LIBJPEG_TURBO=1' \
194	'-DUSE_PROPRIETARY_CODECS' \
195	'-DENABLE_CONFIGURATION_POLICY' \
196	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
197	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
198	'-DUSE_OPENSSL=1' \
199	'-DENABLE_EGLIMAGE=1' \
200	'-DCLD_VERSION=1' \
201	'-DENABLE_MANAGED_USERS=1' \
202	'-DSK_ENABLE_INST_COUNT=0' \
203	'-DSK_SUPPORT_GPU=1' \
204	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
205	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
206	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
207	'-DSK_SUPPORT_LEGACY_COLORTYPE=1' \
208	'-DGR_GL_IGNORE_ES3_MSAA=0' \
209	'-DSK_BUILD_FOR_ANDROID' \
210	'-DSK_USE_POSIX_THREADS' \
211	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
212	'-DU_USING_ICU_NAMESPACE=0' \
213	'-DMEDIA_DISABLE_LIBVPX' \
214	'-DMESA_EGL_NO_X11_HEADERS' \
215	'-DAPPCACHE_USE_SIMPLE_CACHE' \
216	'-D__STDC_CONSTANT_MACROS' \
217	'-D__STDC_FORMAT_MACROS' \
218	'-DANDROID' \
219	'-D__GNU_SOURCE=1' \
220	'-DUSE_STLPORT=1' \
221	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
222	'-DCHROME_BUILD_ID=""' \
223	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
224	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
225	'-D_DEBUG'
226
227
228# Include paths placed before CFLAGS/CPPFLAGS
229LOCAL_C_INCLUDES_Debug := \
230	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
231	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
232	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
233	$(LOCAL_PATH) \
234	$(LOCAL_PATH)/skia/config \
235	$(LOCAL_PATH)/third_party/khronos \
236	$(LOCAL_PATH)/gpu \
237	$(LOCAL_PATH)/third_party/skia/src/core \
238	$(LOCAL_PATH)/third_party/skia/include/core \
239	$(LOCAL_PATH)/third_party/skia/include/effects \
240	$(LOCAL_PATH)/third_party/skia/include/pdf \
241	$(LOCAL_PATH)/third_party/skia/include/gpu \
242	$(LOCAL_PATH)/third_party/skia/include/lazy \
243	$(LOCAL_PATH)/third_party/skia/include/pathops \
244	$(LOCAL_PATH)/third_party/skia/include/pipe \
245	$(LOCAL_PATH)/third_party/skia/include/ports \
246	$(LOCAL_PATH)/third_party/skia/include/utils \
247	$(LOCAL_PATH)/skia/ext \
248	$(PWD)/external/icu4c/common \
249	$(PWD)/external/icu4c/i18n \
250	$(gyp_shared_intermediate_dir)/content \
251	$(gyp_shared_intermediate_dir)/ui/gl \
252	$(LOCAL_PATH)/third_party/mesa/src/include \
253	$(PWD)/frameworks/wilhelm/include \
254	$(PWD)/bionic \
255	$(PWD)/external/stlport/stlport
256
257
258# Flags passed to only C++ (and not C) files.
259LOCAL_CPPFLAGS_Debug := \
260	-fno-rtti \
261	-fno-threadsafe-statics \
262	-fvisibility-inlines-hidden \
263	-Wsign-compare \
264	-Wno-error=c++0x-compat \
265	-Wno-non-virtual-dtor \
266	-Wno-sign-promo
267
268
269# Flags passed to both C and C++ files.
270MY_CFLAGS_Release := \
271	--param=ssp-buffer-size=4 \
272	-Werror \
273	-fno-exceptions \
274	-fno-strict-aliasing \
275	-Wall \
276	-Wno-unused-parameter \
277	-Wno-missing-field-initializers \
278	-fvisibility=hidden \
279	-pipe \
280	-fPIC \
281	-Wno-unknown-pragmas \
282	-m32 \
283	-mmmx \
284	-march=pentium4 \
285	-msse2 \
286	-mfpmath=sse \
287	-fuse-ld=gold \
288	-ffunction-sections \
289	-funwind-tables \
290	-g \
291	-fno-short-enums \
292	-finline-limit=64 \
293	-Wa,--noexecstack \
294	-U_FORTIFY_SOURCE \
295	-Wno-extra \
296	-Wno-ignored-qualifiers \
297	-Wno-type-limits \
298	-fno-stack-protector \
299	-Os \
300	-fno-ident \
301	-fdata-sections \
302	-ffunction-sections \
303	-fomit-frame-pointer \
304	-fno-unwind-tables \
305	-fno-asynchronous-unwind-tables
306
307MY_DEFS_Release := \
308	'-DCONTENT_IMPLEMENTATION' \
309	'-DANGLE_DX11' \
310	'-D_FILE_OFFSET_BITS=64' \
311	'-DNO_TCMALLOC' \
312	'-DDISABLE_NACL' \
313	'-DCHROMIUM_BUILD' \
314	'-DUSE_LIBJPEG_TURBO=1' \
315	'-DUSE_PROPRIETARY_CODECS' \
316	'-DENABLE_CONFIGURATION_POLICY' \
317	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
318	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
319	'-DUSE_OPENSSL=1' \
320	'-DENABLE_EGLIMAGE=1' \
321	'-DCLD_VERSION=1' \
322	'-DENABLE_MANAGED_USERS=1' \
323	'-DSK_ENABLE_INST_COUNT=0' \
324	'-DSK_SUPPORT_GPU=1' \
325	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
326	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
327	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
328	'-DSK_SUPPORT_LEGACY_COLORTYPE=1' \
329	'-DGR_GL_IGNORE_ES3_MSAA=0' \
330	'-DSK_BUILD_FOR_ANDROID' \
331	'-DSK_USE_POSIX_THREADS' \
332	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
333	'-DU_USING_ICU_NAMESPACE=0' \
334	'-DMEDIA_DISABLE_LIBVPX' \
335	'-DMESA_EGL_NO_X11_HEADERS' \
336	'-DAPPCACHE_USE_SIMPLE_CACHE' \
337	'-D__STDC_CONSTANT_MACROS' \
338	'-D__STDC_FORMAT_MACROS' \
339	'-DANDROID' \
340	'-D__GNU_SOURCE=1' \
341	'-DUSE_STLPORT=1' \
342	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
343	'-DCHROME_BUILD_ID=""' \
344	'-DNDEBUG' \
345	'-DNVALGRIND' \
346	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
347	'-D_FORTIFY_SOURCE=2'
348
349
350# Include paths placed before CFLAGS/CPPFLAGS
351LOCAL_C_INCLUDES_Release := \
352	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
353	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
354	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
355	$(LOCAL_PATH) \
356	$(LOCAL_PATH)/skia/config \
357	$(LOCAL_PATH)/third_party/khronos \
358	$(LOCAL_PATH)/gpu \
359	$(LOCAL_PATH)/third_party/skia/src/core \
360	$(LOCAL_PATH)/third_party/skia/include/core \
361	$(LOCAL_PATH)/third_party/skia/include/effects \
362	$(LOCAL_PATH)/third_party/skia/include/pdf \
363	$(LOCAL_PATH)/third_party/skia/include/gpu \
364	$(LOCAL_PATH)/third_party/skia/include/lazy \
365	$(LOCAL_PATH)/third_party/skia/include/pathops \
366	$(LOCAL_PATH)/third_party/skia/include/pipe \
367	$(LOCAL_PATH)/third_party/skia/include/ports \
368	$(LOCAL_PATH)/third_party/skia/include/utils \
369	$(LOCAL_PATH)/skia/ext \
370	$(PWD)/external/icu4c/common \
371	$(PWD)/external/icu4c/i18n \
372	$(gyp_shared_intermediate_dir)/content \
373	$(gyp_shared_intermediate_dir)/ui/gl \
374	$(LOCAL_PATH)/third_party/mesa/src/include \
375	$(PWD)/frameworks/wilhelm/include \
376	$(PWD)/bionic \
377	$(PWD)/external/stlport/stlport
378
379
380# Flags passed to only C++ (and not C) files.
381LOCAL_CPPFLAGS_Release := \
382	-fno-rtti \
383	-fno-threadsafe-statics \
384	-fvisibility-inlines-hidden \
385	-Wsign-compare \
386	-Wno-error=c++0x-compat \
387	-Wno-non-virtual-dtor \
388	-Wno-sign-promo
389
390
391LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
392LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
393LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
394### Rules for final target.
395
396LOCAL_LDFLAGS_Debug := \
397	-Wl,-z,now \
398	-Wl,-z,relro \
399	-Wl,-z,noexecstack \
400	-fPIC \
401	-m32 \
402	-fuse-ld=gold \
403	-nostdlib \
404	-Wl,--no-undefined \
405	-Wl,--exclude-libs=ALL \
406	-Wl,--fatal-warnings \
407	-Wl,--gc-sections \
408	-Wl,--warn-shared-textrel \
409	-Wl,-O1 \
410	-Wl,--as-needed
411
412
413LOCAL_LDFLAGS_Release := \
414	-Wl,-z,now \
415	-Wl,-z,relro \
416	-Wl,-z,noexecstack \
417	-fPIC \
418	-m32 \
419	-fuse-ld=gold \
420	-nostdlib \
421	-Wl,--no-undefined \
422	-Wl,--exclude-libs=ALL \
423	-Wl,-O1 \
424	-Wl,--as-needed \
425	-Wl,--gc-sections \
426	-Wl,--fatal-warnings \
427	-Wl,--warn-shared-textrel
428
429
430LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
431
432LOCAL_STATIC_LIBRARIES := \
433	skia_skia_library_gyp \
434	ui_ui_gyp \
435	ui_gl_gl_gyp \
436	webkit_glue_glue_gyp
437
438# Enable grouping to fix circular references
439LOCAL_GROUP_STATIC_LIBRARIES := true
440
441LOCAL_SHARED_LIBRARIES := \
442	libstlport \
443	libdl
444
445# Add target alias to "gyp_all_modules" target.
446.PHONY: gyp_all_modules
447gyp_all_modules: content_content_common_gyp
448
449# Alias gyp target name.
450.PHONY: content_common
451content_common: content_content_common_gyp
452
453include $(BUILD_STATIC_LIBRARY)
454