content_common.target.linux-x86.mk revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
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,STATIC_LIBRARIES,skia_skia_gyp)/skia_skia_gyp.a \
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_npapi_npapi_gyp)/npapi.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/dx_diag_node.cc \
40	content/public/common/favicon_url.cc \
41	content/public/common/file_chooser_params.cc \
42	content/public/common/frame_navigate_params.cc \
43	content/public/common/geoposition.cc \
44	content/public/common/gpu_info.cc \
45	content/public/common/gpu_memory_stats.cc \
46	content/public/common/media_stream_request.cc \
47	content/public/common/page_transition_types.cc \
48	content/public/common/password_form.cc \
49	content/public/common/pepper_plugin_info.cc \
50	content/public/common/renderer_preferences.cc \
51	content/public/common/show_desktop_notification_params.cc \
52	content/public/common/speech_recognition_result.cc \
53	content/public/common/ssl_status.cc \
54	content/public/common/url_constants.cc \
55	content/common/accessibility_node_data.cc \
56	content/common/android/address_parser.cc \
57	content/common/android/address_parser_internal.cc \
58	content/common/android/command_line.cc \
59	content/common/android/common_jni_registrar.cc \
60	content/common/android/device_telephony_info.cc \
61	content/common/android/hash_set.cc \
62	content/common/android/surface_texture_peer.cc \
63	content/common/android/trace_event_binding.cc \
64	content/common/appcache/appcache_backend_proxy.cc \
65	content/common/appcache/appcache_dispatcher.cc \
66	content/common/browser_plugin/browser_plugin_constants.cc \
67	content/common/cc_messages.cc \
68	content/common/child_histogram_message_filter.cc \
69	content/common/child_process.cc \
70	content/common/child_process_host_impl.cc \
71	content/common/child_thread.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/database_util.cc \
79	content/common/db_message_filter.cc \
80	content/common/fileapi/file_system_dispatcher.cc \
81	content/common/fileapi/webblobregistry_impl.cc \
82	content/common/fileapi/webfilesystem_callback_dispatcher.cc \
83	content/common/fileapi/webfilesystem_impl.cc \
84	content/common/fileapi/webfilewriter_impl.cc \
85	content/common/find_match_rect_android.cc \
86	content/common/font_list.cc \
87	content/common/font_list_android.cc \
88	content/common/gamepad_seqlock.cc \
89	content/common/gamepad_user_gesture.cc \
90	content/common/gpu/client/command_buffer_proxy_impl.cc \
91	content/common/gpu/client/context_provider_command_buffer.cc \
92	content/common/gpu/client/gl_helper.cc \
93	content/common/gpu/client/gpu_channel_host.cc \
94	content/common/gpu/client/gpu_video_decode_accelerator_host.cc \
95	content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc \
96	content/common/gpu/gl_scoped_binders.cc \
97	content/common/gpu/gpu_channel.cc \
98	content/common/gpu/gpu_channel_manager.cc \
99	content/common/gpu/gpu_command_buffer_stub.cc \
100	content/common/gpu/gpu_memory_manager.cc \
101	content/common/gpu/gpu_memory_manager_client.cc \
102	content/common/gpu/gpu_memory_tracking.cc \
103	content/common/gpu/gpu_rendering_stats.cc \
104	content/common/gpu/gpu_surface_lookup.cc \
105	content/common/gpu/stream_texture_manager_android.cc \
106	content/common/gpu/image_transport_surface.cc \
107	content/common/gpu/image_transport_surface_android.cc \
108	content/common/gpu/media/h264_bit_reader.cc \
109	content/common/gpu/media/h264_parser.cc \
110	content/common/gpu/media/gpu_video_decode_accelerator.cc \
111	content/common/gpu/sync_point_manager.cc \
112	content/common/gpu/texture_image_transport_surface.cc \
113	content/common/indexed_db/indexed_db_key.cc \
114	content/common/indexed_db/indexed_db_key_path.cc \
115	content/common/indexed_db/indexed_db_key_range.cc \
116	content/common/indexed_db/indexed_db_param_traits.cc \
117	content/common/indexed_db/indexed_db_dispatcher.cc \
118	content/common/indexed_db/indexed_db_message_filter.cc \
119	content/common/indexed_db/proxy_webidbcursor_impl.cc \
120	content/common/indexed_db/proxy_webidbdatabase_impl.cc \
121	content/common/indexed_db/proxy_webidbfactory_impl.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/np_channel_base.cc \
129	content/common/npobject_proxy.cc \
130	content/common/npobject_stub.cc \
131	content/common/npobject_util.cc \
132	content/common/page_zoom.cc \
133	content/common/partial_circular_buffer.cc \
134	content/common/pepper_renderer_instance_data.cc \
135	content/common/process_type.cc \
136	content/common/quota_dispatcher.cc \
137	content/common/request_extra_data.cc \
138	content/common/resource_dispatcher.cc \
139	content/common/resource_messages.cc \
140	content/common/sandbox_util.cc \
141	content/common/savable_url_schemes.cc \
142	content/common/set_process_title.cc \
143	content/common/socket_stream_dispatcher.cc \
144	content/common/socket_stream_handle_data.cc \
145	content/common/ssl_status_serialization.cc \
146	content/common/swapped_out_messages.cc \
147	content/common/thread_safe_sender.cc \
148	content/common/url_schemes.cc \
149	content/common/web_database_observer_impl.cc \
150	content/common/webkitplatformsupport_impl.cc \
151	content/common/webmessageportchannel_impl.cc \
152	content/public/common/common_param_traits.cc \
153	content/public/common/content_client.cc \
154	content/public/common/window_container_type.cc \
155	content/common/gpu/media/android_video_decode_accelerator.cc
156
157
158# Flags passed to both C and C++ files.
159MY_CFLAGS := \
160	--param=ssp-buffer-size=4 \
161	-Werror \
162	-fno-exceptions \
163	-fno-strict-aliasing \
164	-Wall \
165	-Wno-unused-parameter \
166	-Wno-missing-field-initializers \
167	-fvisibility=hidden \
168	-pipe \
169	-fPIC \
170	-m32 \
171	-mmmx \
172	-march=pentium4 \
173	-msse2 \
174	-mfpmath=sse \
175	-fuse-ld=gold \
176	-ffunction-sections \
177	-funwind-tables \
178	-g \
179	-fno-short-enums \
180	-finline-limit=64 \
181	-Wa,--noexecstack \
182	-U_FORTIFY_SOURCE \
183	-Wno-extra \
184	-Wno-ignored-qualifiers \
185	-Wno-type-limits \
186	-fno-stack-protector \
187	-Os \
188	-g \
189	-fomit-frame-pointer \
190	-fdata-sections \
191	-ffunction-sections
192
193MY_CFLAGS_C :=
194
195MY_DEFS := \
196	'-DCONTENT_IMPLEMENTATION' \
197	'-D_FILE_OFFSET_BITS=64' \
198	'-DUSE_LINUX_BREAKPAD' \
199	'-DNO_TCMALLOC' \
200	'-DDISABLE_NACL' \
201	'-DCHROMIUM_BUILD' \
202	'-DUSE_LIBJPEG_TURBO=1' \
203	'-DUSE_PROPRIETARY_CODECS' \
204	'-DENABLE_GPU=1' \
205	'-DUSE_OPENSSL=1' \
206	'-DENABLE_EGLIMAGE=1' \
207	'-DENABLE_LANGUAGE_DETECTION=1' \
208	'-DMEDIA_DISABLE_LIBVPX' \
209	'-DSK_BUILD_NO_IMAGE_ENCODE' \
210	'-DSK_DEFERRED_CANVAS_USES_GPIPE=1' \
211	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
212	'-DGR_AGGRESSIVE_SHADER_OPTS=1' \
213	'-DSK_ENABLE_INST_COUNT=0' \
214	'-DSK_USE_POSIX_THREADS' \
215	'-DSK_BUILD_FOR_ANDROID_NDK' \
216	'-DU_USING_ICU_NAMESPACE=0' \
217	'-D__STDC_CONSTANT_MACROS' \
218	'-D__STDC_FORMAT_MACROS' \
219	'-DANDROID' \
220	'-D__GNU_SOURCE=1' \
221	'-DUSE_STLPORT=1' \
222	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
223	'-DCHROME_BUILD_ID=""' \
224	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
225	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
226	'-D_DEBUG'
227
228LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
229
230# Include paths placed before CFLAGS/CPPFLAGS
231LOCAL_C_INCLUDES := \
232	$(LOCAL_PATH) \
233	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
234	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
235	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
236	$(LOCAL_PATH)/third_party/khronos \
237	$(LOCAL_PATH)/gpu \
238	$(LOCAL_PATH)/skia/config \
239	$(LOCAL_PATH)/third_party/skia/src/core \
240	$(LOCAL_PATH)/third_party/skia/include/config \
241	$(LOCAL_PATH)/third_party/skia/include/core \
242	$(LOCAL_PATH)/third_party/skia/include/effects \
243	$(LOCAL_PATH)/third_party/skia/include/pdf \
244	$(LOCAL_PATH)/third_party/skia/include/gpu \
245	$(LOCAL_PATH)/third_party/skia/include/gpu/gl \
246	$(LOCAL_PATH)/third_party/skia/include/pathops \
247	$(LOCAL_PATH)/third_party/skia/include/pipe \
248	$(LOCAL_PATH)/third_party/skia/include/ports \
249	$(LOCAL_PATH)/third_party/skia/include/utils \
250	$(LOCAL_PATH)/skia/ext \
251	$(GYP_ABS_ANDROID_TOP_DIR)/external/icu4c/common \
252	$(GYP_ABS_ANDROID_TOP_DIR)/external/icu4c/i18n \
253	$(gyp_shared_intermediate_dir)/content \
254	$(LOCAL_PATH)/third_party/npapi \
255	$(LOCAL_PATH)/third_party/npapi/bindings \
256	$(LOCAL_PATH)/third_party/WebKit/Source/Platform/chromium \
257	$(LOCAL_PATH)/third_party/WebKit/Source/Platform/chromium \
258	$(LOCAL_PATH)/v8/include \
259	$(gyp_shared_intermediate_dir)/ui/gl \
260	$(LOCAL_PATH)/third_party/mesa/MesaLib/include \
261	$(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \
262	$(GYP_ABS_ANDROID_TOP_DIR)/bionic \
263	$(GYP_ABS_ANDROID_TOP_DIR)/external/stlport/stlport
264
265LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
266
267# Flags passed to only C++ (and not C) files.
268LOCAL_CPPFLAGS := \
269	-fno-rtti \
270	-fno-threadsafe-statics \
271	-fvisibility-inlines-hidden \
272	-Wsign-compare \
273	-Wno-error=c++0x-compat \
274	-Wno-non-virtual-dtor \
275	-Wno-sign-promo
276
277### Rules for final target.
278
279LOCAL_LDFLAGS := \
280	-Wl,-z,now \
281	-Wl,-z,relro \
282	-Wl,-z,noexecstack \
283	-fPIC \
284	-m32 \
285	-fuse-ld=gold \
286	-nostdlib \
287	-Wl,--no-undefined \
288	-Wl,--exclude-libs=ALL \
289	-Wl,--gc-sections \
290	-Wl,-O1 \
291	-Wl,--as-needed
292
293
294LOCAL_STATIC_LIBRARIES := \
295	skia_skia_gyp \
296	ui_ui_gyp \
297	ui_gl_gl_gyp \
298	webkit_support_glue_gyp
299
300# Enable grouping to fix circular references
301LOCAL_GROUP_STATIC_LIBRARIES := true
302
303LOCAL_SHARED_LIBRARIES := \
304	libstlport \
305	libdl
306
307# Add target alias to "gyp_all_modules" target.
308.PHONY: gyp_all_modules
309gyp_all_modules: content_content_common_gyp
310
311# Alias gyp target name.
312.PHONY: content_common
313content_common: content_content_common_gyp
314
315include $(BUILD_STATIC_LIBRARY)
316