chromeos: dbus: add Bluetooth properties support
[chromium-blink-merge.git] / content / content_common.gypi
blobd860215d38f27a60bb77071d5773009451e64474
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'dependencies': [
7     '../base/base.gyp:base',
8     '../build/temp_gyp/googleurl.gyp:googleurl',
9     '../gpu/gpu.gyp:gles2_implementation',
10     '../gpu/gpu.gyp:gpu_ipc',
11     '../ipc/ipc.gyp:ipc',
12     '../media/media.gyp:media',
13     '../net/net.gyp:net',
14     '../skia/skia.gyp:skia',
15     '../third_party/icu/icu.gyp:icuuc',
16     '../third_party/npapi/npapi.gyp:npapi',
17     '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
18     '../ui/gfx/gl/gl.gyp:gl',
19     '../ui/ui.gyp:ui',
20     '../webkit/support/webkit_support.gyp:appcache',
21     '../webkit/support/webkit_support.gyp:blob',
22     '../webkit/support/webkit_support.gyp:database',
23     '../webkit/support/webkit_support.gyp:fileapi',
24   ],
25   'include_dirs': [
26     '..',
27   ],
28   'export_dependent_settings': [
29     '../base/base.gyp:base',
30   ],
31   'sources': [
32     'public/common/bindings_policy.h',
33     'public/common/child_process_host.h',
34     'public/common/child_process_host_delegate.cc',
35     'public/common/child_process_host_delegate.h',
36     'public/common/child_process_sandbox_support_linux.h',
37     'public/common/content_constants.cc',
38     'public/common/content_constants.h',
39     'public/common/content_paths.h',
40     'public/common/content_restriction.h',
41     'public/common/content_switches.cc',
42     'public/common/content_switches.h',
43     'public/common/context_menu_params.cc',
44     'public/common/context_menu_params.h',
45     'public/common/dx_diag_node.cc',
46     'public/common/dx_diag_node.h',
47     'public/common/file_chooser_params.cc',
48     'public/common/file_chooser_params.h',
49     'public/common/frame_navigate_params.cc',
50     'public/common/frame_navigate_params.h',
51     'public/common/gpu_feature_type.h',
52     'public/common/gpu_info.cc',
53     'public/common/gpu_info.h',
54     'public/common/main_function_params.h',
55     'public/common/page_transition_types.cc',
56     'public/common/page_transition_types.h',
57     'public/common/page_type.h',
58     'public/common/page_zoom.h',
59     'public/common/pepper_plugin_info.cc',
60     'public/common/pepper_plugin_info.h',
61     'public/common/process_type.h',
62     'public/common/referrer.h',
63     'public/common/renderer_preferences.cc',
64     'public/common/renderer_preferences.h',
65     'public/common/resource_dispatcher_delegate.h',
66     'public/common/resource_response.h',
67     'public/common/result_codes.h',
68     'public/common/sandbox_init.h',
69     'public/common/sandbox_type_mac.h',
70     'public/common/security_style.h',
71     'public/common/serialized_script_value.cc',
72     'public/common/serialized_script_value.h',
73     'public/common/show_desktop_notification_params.cc',
74     'public/common/show_desktop_notification_params.h',
75     'public/common/speech_input_result.cc',
76     'public/common/speech_input_result.h',
77     'public/common/ssl_status.cc',
78     'public/common/ssl_status.h',
79     'public/common/stop_find_action.h',
80     'public/common/url_constants.cc',
81     'public/common/url_constants.h',
82     'public/common/url_fetcher.h',
83     'public/common/url_fetcher_delegate.h',
84     'public/common/url_fetcher_factory.h',
85     'public/common/view_type.h',
86     'public/common/zygote_fork_delegate_linux.h',
87     'common/accessibility_messages.h',
88     'common/appcache/appcache_backend_proxy.cc',
89     'common/appcache/appcache_backend_proxy.h',
90     'common/appcache/appcache_dispatcher.cc',
91     'common/appcache/appcache_dispatcher.h',
92     'common/appcache_messages.h',
93     'common/child_process.cc',
94     'common/child_process.h',
95     'common/child_process_host_impl.cc',
96     'common/child_process_host_impl.h',
97     'common/child_process_messages.h',
98     'common/child_process_sandbox_support_impl_linux.cc',
99     'common/child_process_sandbox_support_impl_linux.h',
100     'common/child_process_sandbox_support_impl_shm_linux.cc',
101     'common/child_thread.cc',
102     'common/child_thread.h',
103     'common/child_trace_message_filter.cc',
104     'common/child_trace_message_filter.h',
105     'common/chrome_descriptors.h',
106     'common/clipboard_messages.cc',
107     'common/clipboard_messages.h',
108     'common/content_message_generator.cc',
109     'common/content_message_generator.h',
110     'common/content_export.h',
111     'common/content_counters.cc',
112     'common/content_counters.h',
113     'common/content_paths.cc',
114     'common/css_colors.h',
115     'common/database_messages.h',
116     'common/database_util.cc',
117     'common/database_util.h',
118     'common/db_message_filter.cc',
119     'common/db_message_filter.h',
120     'common/debug_flags.cc',
121     'common/debug_flags.h',
122     'common/desktop_notification_messages.h',
123     'common/device_orientation_messages.h',
124     'common/devtools_messages.h',
125     'common/dom_storage_common.h',
126     'common/dom_storage_messages.h',
127     'common/drag_messages.h',
128     'common/edit_command.h',
129     'common/file_system/file_system_dispatcher.cc',
130     'common/file_system/file_system_dispatcher.h',
131     'common/file_system/webfilesystem_callback_dispatcher.cc',
132     'common/file_system/webfilesystem_callback_dispatcher.h',
133     'common/file_system/webfilesystem_impl.cc',
134     'common/file_system/webfilesystem_impl.h',
135     'common/file_system/webfilewriter_impl.cc',
136     'common/file_system/webfilewriter_impl.h',
137     'common/file_system_messages.h',
138     'common/file_utilities_messages.h',
139     'common/font_cache_dispatcher_win.cc',
140     'common/font_cache_dispatcher_win.h',
141     'common/font_config_ipc_linux.cc',
142     'common/font_config_ipc_linux.h',
143     'common/font_list.h',
144     'common/font_list_android.cc',
145     'common/font_list_mac.mm',
146     'common/font_list_win.cc',
147     'common/font_list_x11.cc',
148     'common/gamepad_hardware_buffer.h',
149     'common/gamepad_messages.h',
150     'common/gamepad_seqlock.cc',
151     'common/gamepad_seqlock.h',
152     'common/geolocation_messages.h',
153     'common/geoposition.cc',
154     'common/geoposition.h',
155     'common/gpu/client/command_buffer_proxy.cc',
156     'common/gpu/client/command_buffer_proxy.h',
157     'common/gpu/client/content_gl_context.cc',
158     'common/gpu/client/content_gl_context.h',
159     'common/gpu/client/gpu_channel_host.cc',
160     'common/gpu/client/gpu_channel_host.h',
161     'common/gpu/client/gpu_video_decode_accelerator_host.cc',
162     'common/gpu/client/gpu_video_decode_accelerator_host.h',
163     'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
164     'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
165     'common/gpu/gpu_channel.cc',
166     'common/gpu/gpu_channel.h',
167     'common/gpu/gpu_channel_manager.cc',
168     'common/gpu/gpu_channel_manager.h',
169     'common/gpu/gpu_command_buffer_stub.cc',
170     'common/gpu/gpu_command_buffer_stub.h',
171     'common/gpu/gpu_config.h',
172     'common/gpu/gpu_memory_allocation.h',
173     'common/gpu/gpu_memory_manager.cc',
174     'common/gpu/gpu_memory_manager.h',
175     'common/gpu/gpu_messages.h',
176     'common/gpu/gpu_process_launch_causes.h',
177     'common/gpu/gpu_watchdog.h',
178     'common/gpu/image_transport_surface.h',
179     'common/gpu/image_transport_surface.cc',
180     'common/gpu/image_transport_surface_android.cc',
181     'common/gpu/image_transport_surface_linux.cc',
182     'common/gpu/image_transport_surface_mac.cc',
183     'common/gpu/image_transport_surface_win.cc',
184     'common/gpu/media/gpu_video_decode_accelerator.cc',
185     'common/gpu/media/gpu_video_decode_accelerator.h',
186     'common/gpu/texture_image_transport_surface.h',
187     'common/gpu/texture_image_transport_surface.cc',
188     'common/handle_enumerator_win.cc',
189     'common/handle_enumerator_win.h',
190     'common/hi_res_timer_manager_posix.cc',
191     'common/hi_res_timer_manager_win.cc',
192     'common/hi_res_timer_manager.h',
193     'common/indexed_db/indexed_db_key.cc',
194     'common/indexed_db/indexed_db_key.h',
195     'common/indexed_db/indexed_db_messages.h',
196     'common/indexed_db/indexed_db_param_traits.cc',
197     'common/indexed_db/indexed_db_param_traits.h',
198     'common/indexed_db/indexed_db_dispatcher.cc',
199     'common/indexed_db/indexed_db_dispatcher.h',
200     'common/indexed_db/indexed_db_message_filter.cc',
201     'common/indexed_db/indexed_db_message_filter.h',
202     'common/indexed_db/proxy_webidbcursor_impl.cc',
203     'common/indexed_db/proxy_webidbcursor_impl.h',
204     'common/indexed_db/proxy_webidbdatabase_impl.cc',
205     'common/indexed_db/proxy_webidbdatabase_impl.h',
206     'common/indexed_db/proxy_webidbfactory_impl.cc',
207     'common/indexed_db/proxy_webidbfactory_impl.h',
208     'common/indexed_db/proxy_webidbindex_impl.cc',
209     'common/indexed_db/proxy_webidbindex_impl.h',
210     'common/indexed_db/proxy_webidbobjectstore_impl.cc',
211     'common/indexed_db/proxy_webidbobjectstore_impl.h',
212     'common/indexed_db/proxy_webidbtransaction_impl.cc',
213     'common/indexed_db/proxy_webidbtransaction_impl.h',
214     'common/inter_process_time_ticks_converter.cc',
215     'common/inter_process_time_ticks_converter.h',
216     'common/intents_messages.h',
217     'common/java_bridge_messages.h',
218     'common/mac/attributed_string_coder.h',
219     'common/mac/attributed_string_coder.mm',
220     'common/mac/font_descriptor.h',
221     'common/mac/font_descriptor.mm',
222     'common/mac/font_loader.h',
223     'common/mac/font_loader.mm',
224     'common/media/audio_messages.h',
225     'common/media/audio_stream_state.h',
226     'common/media/media_stream_messages.h',
227     'common/media/media_stream_options.cc',
228     'common/media/media_stream_options.h',
229     'common/media/video_capture.h',
230     'common/media/video_capture_messages.h',
231     'common/message_router.cc',
232     'common/message_router.h',
233     'common/mime_registry_messages.h',
234     'common/navigation_gesture.h',
235     'common/net/url_fetcher_impl.cc',
236     'common/net/url_fetcher_impl.h',
237     'common/np_channel_base.cc',
238     'common/np_channel_base.h',
239     'common/npobject_base.h',
240     'common/npobject_proxy.cc',
241     'common/npobject_proxy.h',
242     'common/npobject_stub.cc',
243     'common/npobject_stub.h',
244     'common/npobject_util.cc',
245     'common/npobject_util.h',
246     'common/p2p_messages.h',
247     'common/p2p_sockets.h',
248     'common/page_zoom.cc',
249     'common/pepper_file_messages.cc',
250     'common/pepper_file_messages.h',
251     'common/pepper_messages.h',
252     'common/pepper_plugin_registry.cc',
253     'common/pepper_plugin_registry.h',
254     'common/plugin_carbon_interpose_constants_mac.cc',
255     'common/plugin_carbon_interpose_constants_mac.h',
256     'common/plugin_messages.h',
257     'common/process_type.cc',
258     'common/quota_messages.h',
259     'common/quota_dispatcher.cc',
260     'common/quota_dispatcher.h',
261     'common/request_extra_data.cc',
262     'common/request_extra_data.h',
263     'common/resource_dispatcher.cc',
264     'common/resource_dispatcher.h',
265     'common/resource_messages.h',
266     'common/sandbox_init_mac.cc',
267     'common/sandbox_init_mac.h',
268     'common/sandbox_init_win.cc',
269     'common/sandbox_mac.h',
270     'common/sandbox_mac.mm',
271     'common/sandbox_methods_linux.h',
272     'common/sandbox_policy.cc',
273     'common/sandbox_policy.h',
274     'common/set_process_title.cc',
275     'common/set_process_title.h',
276     'common/set_process_title_linux.cc',
277     'common/set_process_title_linux.h',
278     'common/socket_stream.h',
279     'common/socket_stream_dispatcher.cc',
280     'common/socket_stream_dispatcher.h',
281     'common/socket_stream_messages.h',
282     'common/speech_input_messages.h',
283     'common/ssl_status_serialization.cc',
284     'common/ssl_status_serialization.h',
285     'common/swapped_out_messages.cc',
286     'common/swapped_out_messages.h',
287     'common/text_input_client_messages.h',
288     'common/unix_domain_socket_posix.cc',
289     'common/unix_domain_socket_posix.h',
290     'common/utility_messages.h',
291     'common/view_messages.h',
292     'common/view_message_enums.h',
293     'common/web_database_observer_impl.cc',
294     'common/web_database_observer_impl.h',
295     'common/webblobregistry_impl.cc',
296     'common/webblobregistry_impl.h',
297     'common/webblob_messages.h',
298     'common/webkitplatformsupport_impl.cc',
299     'common/webkitplatformsupport_impl.h',
300     'common/webmessageportchannel_impl.cc',
301     'common/webmessageportchannel_impl.h',
302     'common/worker_messages.h',
303     'public/common/common_param_traits.cc',
304     'public/common/common_param_traits.h',
305     'public/common/content_client.cc',
306     'public/common/content_client.h',
307     'public/common/window_container_type.cc',
308     'public/common/window_container_type.h',
309     'public/common/webkit_param_traits.cc',
310     'public/common/webkit_param_traits.h',
311   ],
312   'conditions': [
313     ['OS!="win"', {
314       'sources!': [
315         'common/sandbox_policy.cc',
316         'common/sandbox_policy.h',
317       ],
318     }],
319     ['toolkit_uses_gtk == 1', {
320       'dependencies': [
321         '../build/linux/system.gyp:gtk',
322       ],
323     }],
324     ['use_x11 == 1', {
325       'dependencies': [
326         '../build/linux/system.gyp:pangocairo',
327       ],
328       'include_dirs': [
329         '<(DEPTH)/third_party/angle/include',
330       ],
331       'link_settings': {
332         'libraries': [
333           '-lXcomposite',
334         ],
335       },
336     }],
337     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
338       'sources': [
339         'common/gpu/x_util.cc',
340         'common/gpu/x_util.h',
341       ],
342     }],
343     ['enable_gpu==1', {
344       'dependencies': [
345         '../gpu/gpu.gyp:command_buffer_service',
346       ],
347     }],
348     ['target_arch=="arm" and chromeos == 1', {
349       'dependencies': [
350         '../media/media.gyp:media',
351       ],
352       'sources': [
353         'common/gpu/media/gles2_texture_to_egl_image_translator.cc',
354         'common/gpu/media/gles2_texture_to_egl_image_translator.h',
355         'common/gpu/media/omx_video_decode_accelerator.cc',
356         'common/gpu/media/omx_video_decode_accelerator.h',
357       ],
358       'include_dirs': [
359         '<(DEPTH)/third_party/angle/include',
360         '<(DEPTH)/third_party/openmax/il',
361       ],
362       'link_settings': {
363         'libraries': [
364           '-lEGL',
365           '-lGLESv2',
366         ],
367       },
368     }],
369     ['OS=="win"', {
370       'dependencies': [
371         '../media/media.gyp:media',
372         '../ui/gfx/gl/gl.gyp:gl',        
373       ],
374       'link_settings': {
375         'libraries': [
376            '-ld3d9.lib',
377            '-ld3dx9.lib',
378            '-ldxva2.lib',
379            '-lstrmiids.lib',
380            '-lmf.lib',
381            '-lmfplat.lib',
382            '-lmfuuid.lib',
383         ],
384         'msvs_settings': {
385           'VCLinkerTool': {
386             'DelayLoadDLLs': [
387               'd3d9.dll',
388               'd3dx9_43.dll',
389               'dxva2.dll',
390               'mf.dll',
391               'mfplat.dll',
392             ],
393           },
394         },
395       },
396       'sources': [
397         'common/gpu/media/dxva_video_decode_accelerator.cc',
398         'common/gpu/media/dxva_video_decode_accelerator.h',
399       ],
400       'include_dirs': [
401         '<(DEPTH)/third_party/angle/include',
402       ],
403     }],
404     ['OS=="win" and directxsdk_exists=="True"', {
405       'actions': [
406       {
407         'action_name': 'extract_xinput',
408         'variables': {
409           'input': 'APR2007_xinput_x86.cab',
410           'output': 'xinput1_3.dll',
411         },
412         'inputs': [
413           '../third_party/directxsdk/files/Redist/<(input)',
414         ],
415         'outputs': [
416           '<(PRODUCT_DIR)/<(output)',
417         ],
418         'action': [
419           'python',
420         '../build/extract_from_cab.py',
421         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
422         '<(output)',
423         '<(PRODUCT_DIR)',
424         ],
425       },
426      ]
427     }]
428   ],