content_common.target.linux-x86.mk revision bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3
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,GYP,third_party_WebKit_public_blink_minimal_gyp)/blink_minimal.stamp \
20	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \
21	$(call intermediates-dir-for,STATIC_LIBRARIES,webkit_support_glue_gyp)/webkit_support_glue_gyp.a \
22	$(call intermediates-dir-for,GYP,content_content_jni_headers_gyp)/content_jni_headers.stamp \
23	$(call intermediates-dir-for,GYP,content_common_aidl_gyp)/common_aidl.stamp
24
25GYP_GENERATED_OUTPUTS :=
26
27# Make sure our deps and generated files are built first.
28LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
29
30LOCAL_CPP_EXTENSION := .cc
31LOCAL_GENERATED_SOURCES :=
32
33GYP_COPIED_SOURCE_ORIGIN_DIRS :=
34
35LOCAL_SRC_FILES := \
36	content/public/common/child_process_host_delegate.cc \
37	content/public/common/content_constants.cc \
38	content/public/common/content_switches.cc \
39	content/public/common/context_menu_params.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/find_match_rect_android.cc \
80	content/common/font_list.cc \
81	content/common/font_list_android.cc \
82	content/common/gamepad_user_gesture.cc \
83	content/common/gpu/client/command_buffer_proxy_impl.cc \
84	content/common/gpu/client/context_provider_command_buffer.cc \
85	content/common/gpu/client/gl_helper.cc \
86	content/common/gpu/client/gl_helper_scaling.cc \
87	content/common/gpu/client/gpu_channel_host.cc \
88	content/common/gpu/client/gpu_video_decode_accelerator_host.cc \
89	content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc \
90	content/common/gpu/gpu_channel.cc \
91	content/common/gpu/gpu_channel_manager.cc \
92	content/common/gpu/gpu_command_buffer_stub.cc \
93	content/common/gpu/gpu_memory_manager.cc \
94	content/common/gpu/gpu_memory_manager_client.cc \
95	content/common/gpu/gpu_memory_tracking.cc \
96	content/common/gpu/gpu_rendering_stats.cc \
97	content/common/gpu/gpu_surface_lookup.cc \
98	content/common/gpu/stream_texture_manager_android.cc \
99	content/common/gpu/image_transport_surface.cc \
100	content/common/gpu/image_transport_surface_android.cc \
101	content/common/gpu/media/h264_bit_reader.cc \
102	content/common/gpu/media/h264_parser.cc \
103	content/common/gpu/media/gpu_video_decode_accelerator.cc \
104	content/common/gpu/sync_point_manager.cc \
105	content/common/gpu/texture_image_transport_surface.cc \
106	content/common/indexed_db/indexed_db_key.cc \
107	content/common/indexed_db/indexed_db_key_path.cc \
108	content/common/indexed_db/indexed_db_key_range.cc \
109	content/common/indexed_db/indexed_db_param_traits.cc \
110	content/common/inter_process_time_ticks_converter.cc \
111	content/common/media/media_param_traits.cc \
112	content/common/media/media_stream_options.cc \
113	content/common/message_router.cc \
114	content/common/net/url_fetcher.cc \
115	content/common/net/url_request_user_data.cc \
116	content/common/one_writer_seqlock.cc \
117	content/common/page_state_serialization.cc \
118	content/common/page_zoom.cc \
119	content/common/pepper_renderer_instance_data.cc \
120	content/common/plugin_list.cc \
121	content/common/plugin_list_posix.cc \
122	content/common/process_type.cc \
123	content/common/resource_messages.cc \
124	content/common/sandbox_util.cc \
125	content/common/savable_url_schemes.cc \
126	content/common/set_process_title.cc \
127	content/common/socket_stream_handle_data.cc \
128	content/common/ssl_status_serialization.cc \
129	content/common/swapped_out_messages.cc \
130	content/common/url_schemes.cc \
131	content/common/webplugin_geometry.cc \
132	content/public/common/common_param_traits.cc \
133	content/public/common/content_client.cc \
134	content/public/common/window_container_type.cc \
135	content/common/gpu/media/android_video_decode_accelerator.cc
136
137
138# Flags passed to both C and C++ files.
139MY_CFLAGS_Debug := \
140	--param=ssp-buffer-size=4 \
141	-Werror \
142	-fno-exceptions \
143	-fno-strict-aliasing \
144	-Wall \
145	-Wno-unused-parameter \
146	-Wno-missing-field-initializers \
147	-fvisibility=hidden \
148	-pipe \
149	-fPIC \
150	-Wno-unknown-pragmas \
151	-m32 \
152	-mmmx \
153	-march=pentium4 \
154	-msse2 \
155	-mfpmath=sse \
156	-fuse-ld=gold \
157	-ffunction-sections \
158	-funwind-tables \
159	-g \
160	-fno-short-enums \
161	-finline-limit=64 \
162	-Wa,--noexecstack \
163	-U_FORTIFY_SOURCE \
164	-Wno-extra \
165	-Wno-ignored-qualifiers \
166	-Wno-type-limits \
167	-fno-stack-protector \
168	-Os \
169	-g \
170	-fomit-frame-pointer \
171	-fdata-sections \
172	-ffunction-sections
173
174MY_DEFS_Debug := \
175	'-DCONTENT_IMPLEMENTATION' \
176	'-DANGLE_DX11' \
177	'-D_FILE_OFFSET_BITS=64' \
178	'-DNO_TCMALLOC' \
179	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
180	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
181	'-DDISABLE_NACL' \
182	'-DCHROMIUM_BUILD' \
183	'-DUSE_LIBJPEG_TURBO=1' \
184	'-DUSE_PROPRIETARY_CODECS' \
185	'-DENABLE_CONFIGURATION_POLICY' \
186	'-DENABLE_GPU=1' \
187	'-DUSE_OPENSSL=1' \
188	'-DENABLE_EGLIMAGE=1' \
189	'-DMEDIA_DISABLE_LIBVPX' \
190	'-DSK_ENABLE_INST_COUNT=0' \
191	'-DSK_SUPPORT_GPU=1' \
192	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
193	'-DSK_BUILD_FOR_ANDROID' \
194	'-DUSE_CHROMIUM_SKIA' \
195	'-DSK_USE_POSIX_THREADS' \
196	'-DU_USING_ICU_NAMESPACE=0' \
197	'-D__STDC_CONSTANT_MACROS' \
198	'-D__STDC_FORMAT_MACROS' \
199	'-DANDROID' \
200	'-D__GNU_SOURCE=1' \
201	'-DUSE_STLPORT=1' \
202	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
203	'-DCHROME_BUILD_ID=""' \
204	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
205	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
206	'-D_DEBUG'
207
208
209# Include paths placed before CFLAGS/CPPFLAGS
210LOCAL_C_INCLUDES_Debug := \
211	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
212	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
213	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
214	$(LOCAL_PATH) \
215	$(LOCAL_PATH)/third_party/khronos \
216	$(LOCAL_PATH)/gpu \
217	$(LOCAL_PATH)/third_party/skia/src/core \
218	$(LOCAL_PATH)/skia/config \
219	$(LOCAL_PATH)/third_party/skia/include/config \
220	$(LOCAL_PATH)/third_party/skia/include/core \
221	$(LOCAL_PATH)/third_party/skia/include/effects \
222	$(LOCAL_PATH)/third_party/skia/include/pdf \
223	$(LOCAL_PATH)/third_party/skia/include/gpu \
224	$(LOCAL_PATH)/third_party/skia/include/gpu/gl \
225	$(LOCAL_PATH)/third_party/skia/include/lazy \
226	$(LOCAL_PATH)/third_party/skia/include/pathops \
227	$(LOCAL_PATH)/third_party/skia/include/pipe \
228	$(LOCAL_PATH)/third_party/skia/include/ports \
229	$(LOCAL_PATH)/third_party/skia/include/utils \
230	$(LOCAL_PATH)/skia/ext \
231	$(PWD)/external/icu4c/common \
232	$(PWD)/external/icu4c/i18n \
233	$(gyp_shared_intermediate_dir)/content \
234	$(gyp_shared_intermediate_dir)/ui/gl \
235	$(LOCAL_PATH)/third_party/mesa/src/include \
236	$(PWD)/frameworks/wilhelm/include \
237	$(PWD)/bionic \
238	$(PWD)/external/stlport/stlport
239
240
241# Flags passed to only C++ (and not C) files.
242LOCAL_CPPFLAGS_Debug := \
243	-fno-rtti \
244	-fno-threadsafe-statics \
245	-fvisibility-inlines-hidden \
246	-Wsign-compare \
247	-Wno-error=c++0x-compat \
248	-Wno-non-virtual-dtor \
249	-Wno-sign-promo
250
251
252# Flags passed to both C and C++ files.
253MY_CFLAGS_Release := \
254	--param=ssp-buffer-size=4 \
255	-Werror \
256	-fno-exceptions \
257	-fno-strict-aliasing \
258	-Wall \
259	-Wno-unused-parameter \
260	-Wno-missing-field-initializers \
261	-fvisibility=hidden \
262	-pipe \
263	-fPIC \
264	-Wno-unknown-pragmas \
265	-m32 \
266	-mmmx \
267	-march=pentium4 \
268	-msse2 \
269	-mfpmath=sse \
270	-fuse-ld=gold \
271	-ffunction-sections \
272	-funwind-tables \
273	-g \
274	-fno-short-enums \
275	-finline-limit=64 \
276	-Wa,--noexecstack \
277	-U_FORTIFY_SOURCE \
278	-Wno-extra \
279	-Wno-ignored-qualifiers \
280	-Wno-type-limits \
281	-fno-stack-protector \
282	-Os \
283	-fno-ident \
284	-fdata-sections \
285	-ffunction-sections \
286	-fomit-frame-pointer \
287	-fno-unwind-tables \
288	-fno-asynchronous-unwind-tables
289
290MY_DEFS_Release := \
291	'-DCONTENT_IMPLEMENTATION' \
292	'-DANGLE_DX11' \
293	'-D_FILE_OFFSET_BITS=64' \
294	'-DNO_TCMALLOC' \
295	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
296	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
297	'-DDISABLE_NACL' \
298	'-DCHROMIUM_BUILD' \
299	'-DUSE_LIBJPEG_TURBO=1' \
300	'-DUSE_PROPRIETARY_CODECS' \
301	'-DENABLE_CONFIGURATION_POLICY' \
302	'-DENABLE_GPU=1' \
303	'-DUSE_OPENSSL=1' \
304	'-DENABLE_EGLIMAGE=1' \
305	'-DMEDIA_DISABLE_LIBVPX' \
306	'-DSK_ENABLE_INST_COUNT=0' \
307	'-DSK_SUPPORT_GPU=1' \
308	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
309	'-DSK_BUILD_FOR_ANDROID' \
310	'-DUSE_CHROMIUM_SKIA' \
311	'-DSK_USE_POSIX_THREADS' \
312	'-DU_USING_ICU_NAMESPACE=0' \
313	'-D__STDC_CONSTANT_MACROS' \
314	'-D__STDC_FORMAT_MACROS' \
315	'-DANDROID' \
316	'-D__GNU_SOURCE=1' \
317	'-DUSE_STLPORT=1' \
318	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
319	'-DCHROME_BUILD_ID=""' \
320	'-DNDEBUG' \
321	'-DNVALGRIND' \
322	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
323	'-D_FORTIFY_SOURCE=2'
324
325
326# Include paths placed before CFLAGS/CPPFLAGS
327LOCAL_C_INCLUDES_Release := \
328	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
329	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
330	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
331	$(LOCAL_PATH) \
332	$(LOCAL_PATH)/third_party/khronos \
333	$(LOCAL_PATH)/gpu \
334	$(LOCAL_PATH)/third_party/skia/src/core \
335	$(LOCAL_PATH)/skia/config \
336	$(LOCAL_PATH)/third_party/skia/include/config \
337	$(LOCAL_PATH)/third_party/skia/include/core \
338	$(LOCAL_PATH)/third_party/skia/include/effects \
339	$(LOCAL_PATH)/third_party/skia/include/pdf \
340	$(LOCAL_PATH)/third_party/skia/include/gpu \
341	$(LOCAL_PATH)/third_party/skia/include/gpu/gl \
342	$(LOCAL_PATH)/third_party/skia/include/lazy \
343	$(LOCAL_PATH)/third_party/skia/include/pathops \
344	$(LOCAL_PATH)/third_party/skia/include/pipe \
345	$(LOCAL_PATH)/third_party/skia/include/ports \
346	$(LOCAL_PATH)/third_party/skia/include/utils \
347	$(LOCAL_PATH)/skia/ext \
348	$(PWD)/external/icu4c/common \
349	$(PWD)/external/icu4c/i18n \
350	$(gyp_shared_intermediate_dir)/content \
351	$(gyp_shared_intermediate_dir)/ui/gl \
352	$(LOCAL_PATH)/third_party/mesa/src/include \
353	$(PWD)/frameworks/wilhelm/include \
354	$(PWD)/bionic \
355	$(PWD)/external/stlport/stlport
356
357
358# Flags passed to only C++ (and not C) files.
359LOCAL_CPPFLAGS_Release := \
360	-fno-rtti \
361	-fno-threadsafe-statics \
362	-fvisibility-inlines-hidden \
363	-Wsign-compare \
364	-Wno-error=c++0x-compat \
365	-Wno-non-virtual-dtor \
366	-Wno-sign-promo
367
368
369LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
370LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
371LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
372### Rules for final target.
373
374LOCAL_LDFLAGS_Debug := \
375	-Wl,-z,now \
376	-Wl,-z,relro \
377	-Wl,-z,noexecstack \
378	-fPIC \
379	-m32 \
380	-fuse-ld=gold \
381	-nostdlib \
382	-Wl,--no-undefined \
383	-Wl,--exclude-libs=ALL \
384	-Wl,--gc-sections \
385	-Wl,-O1 \
386	-Wl,--as-needed
387
388
389LOCAL_LDFLAGS_Release := \
390	-Wl,-z,now \
391	-Wl,-z,relro \
392	-Wl,-z,noexecstack \
393	-fPIC \
394	-m32 \
395	-fuse-ld=gold \
396	-nostdlib \
397	-Wl,--no-undefined \
398	-Wl,--exclude-libs=ALL \
399	-Wl,-O1 \
400	-Wl,--as-needed \
401	-Wl,--gc-sections
402
403
404LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
405
406LOCAL_STATIC_LIBRARIES := \
407	skia_skia_library_gyp \
408	ui_ui_gyp \
409	ui_gl_gl_gyp \
410	webkit_support_glue_gyp
411
412# Enable grouping to fix circular references
413LOCAL_GROUP_STATIC_LIBRARIES := true
414
415LOCAL_SHARED_LIBRARIES := \
416	libstlport \
417	libdl
418
419# Add target alias to "gyp_all_modules" target.
420.PHONY: gyp_all_modules
421gyp_all_modules: content_content_common_gyp
422
423# Alias gyp target name.
424.PHONY: content_common
425content_common: content_content_common_gyp
426
427include $(BUILD_STATIC_LIBRARY)
428