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