summaryrefslogtreecommitdiffstats
path: root/content/content_common.gypi
blob: 5623da2492d6b003be2fb5ccd43d540a663512ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      'target_name': 'content_common',
      'type': 'static_library',
      'dependencies': [
        '../base/base.gyp:base',
        '../gpu/gpu.gyp:gpu_ipc',
        '../ipc/ipc.gyp:ipc',
        '../media/media.gyp:media',
        '../net/net.gyp:net',
        '../skia/skia.gyp:skia',
        '../third_party/icu/icu.gyp:icuuc',
        '../third_party/npapi/npapi.gyp:npapi',
        '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
        '../ui/gfx/gl/gl.gyp:gl',
        '../ui/ui.gyp:ui',
        '../webkit/support/webkit_support.gyp:appcache',
        '../webkit/support/webkit_support.gyp:blob',
        '../webkit/support/webkit_support.gyp:database',
        '../webkit/support/webkit_support.gyp:fileapi',
      ],
      'include_dirs': [
        '..',
      ],
      'export_dependent_settings': [
        '../base/base.gyp:base',
      ],
      'sources': [
        'common/appcache/appcache_backend_proxy.cc',
        'common/appcache/appcache_backend_proxy.h',
        'common/appcache/appcache_dispatcher.cc',
        'common/appcache/appcache_dispatcher.h',
        'common/appcache_messages.h',
        'common/bindings_policy.h',
        'common/child_process.cc',
        'common/child_process.h',
        'common/child_process_host.cc',
        'common/child_process_host.h',
        'common/child_process_info.cc',
        'common/child_process_info.h',
        'common/child_process_messages.h',
        'common/child_process_sandbox_support_linux.cc',
        'common/child_process_sandbox_support_linux.h',
        'common/child_thread.cc',
        'common/child_thread.h',
        'common/child_trace_message_filter.cc',
        'common/child_trace_message_filter.h',
        'common/chrome_application_mac.h',
        'common/chrome_application_mac.mm',
        'common/chrome_descriptors.h',
        'common/cloud_print_class_mac.h',
        'common/cloud_print_class_mac.mm',
        'common/clipboard_messages.h',
        'common/common_param_traits.cc',
        'common/common_param_traits.h',
        'common/content_message_generator.cc',
        'common/content_message_generator.h',
        'common/content_notification_types.h',
        'common/content_export.h',
        'common/content_client.cc',
        'common/content_client.h',
        'common/content_constants.cc',
        'common/content_constants.h',
        'common/content_counters.cc',
        'common/content_counters.h',
        'common/content_paths.cc',
        'common/content_paths.h',
        'common/content_restriction.h',
        'common/content_switches.cc',
        'common/content_switches.h',
        'common/css_colors.h',
        'common/database_messages.h',
        'common/database_util.cc',
        'common/database_util.h',
        'common/db_message_filter.cc',
        'common/db_message_filter.h',
        'common/debug_flags.cc',
        'common/debug_flags.h',
        'common/desktop_notification_messages.h',
        'common/device_orientation_messages.h',
        'common/devtools_messages.h',
        'common/dom_storage_common.h',
        'common/dom_storage_messages.h',
        'common/drag_messages.h',
        'common/dx_diag_node.cc',
        'common/dx_diag_node.h',
        'common/edit_command.h',
        'common/file_system/file_system_dispatcher.cc',
        'common/file_system/file_system_dispatcher.h',
        'common/file_system/webfilesystem_callback_dispatcher.cc',
        'common/file_system/webfilesystem_callback_dispatcher.h',
        'common/file_system/webfilesystem_impl.cc',
        'common/file_system/webfilesystem_impl.h',
        'common/file_system/webfilewriter_impl.cc',
        'common/file_system/webfilewriter_impl.h',
        'common/file_system_messages.h',
        'common/file_utilities_messages.h',
        'common/font_config_ipc_linux.cc',
        'common/font_config_ipc_linux.h',
        'common/font_list.h',
        'common/font_list_gtk.cc',
        'common/font_list_mac.mm',
        'common/font_list_win.cc',
        'common/geolocation_messages.h',
        'common/geoposition.cc',
        'common/geoposition.h',
        'common/gpu/gpu_channel.cc',
        'common/gpu/gpu_channel.h',
        'common/gpu/gpu_channel_manager.cc',
        'common/gpu/gpu_channel_manager.h',
        'common/gpu/gpu_command_buffer_stub.cc',
        'common/gpu/gpu_command_buffer_stub.h',
        'common/gpu/gpu_config.h',
        'common/gpu/gpu_feature_flags.cc',
        'common/gpu/gpu_feature_flags.h',
        'common/gpu/gpu_info.cc',
        'common/gpu/gpu_info.h',
        'common/gpu/gpu_messages.h',
        'common/gpu/gpu_process_launch_causes.h',
        'common/gpu/gpu_watchdog.h',
        'common/gpu/media/gpu_video_decode_accelerator.cc',
        'common/gpu/media/gpu_video_decode_accelerator.h',
        'common/gpu/transport_texture.cc',
        'common/gpu/transport_texture.h',
        'common/hi_res_timer_manager_posix.cc',
        'common/hi_res_timer_manager_win.cc',
        'common/hi_res_timer_manager.h',
        'common/indexed_db_key.cc',
        'common/indexed_db_key.h',
        'common/indexed_db_messages.h',
        'common/indexed_db_param_traits.cc',
        'common/indexed_db_param_traits.h',
        'common/json_value_serializer.cc',
        'common/json_value_serializer.h',
        'common/mac/attributed_string_coder.h',
        'common/mac/attributed_string_coder.mm',
        'common/mac/font_descriptor.h',
        'common/mac/font_descriptor.mm',
        'common/mac/font_loader.h',
        'common/mac/font_loader.mm',
        'common/main_function_params.h',
        'common/media/audio_messages.h',
        'common/media/audio_stream_state.h',
        'common/media/media_stream_messages.h',
        'common/media/media_stream_options.cc',
        'common/media/media_stream_options.h',
        'common/media/video_capture_messages.h',
        'common/message_router.cc',
        'common/message_router.h',
        'common/mime_registry_messages.h',
        'common/native_web_keyboard_event.h',
        'common/native_web_keyboard_event_linux.cc',
        'common/native_web_keyboard_event_mac.mm',
        'common/native_web_keyboard_event_win.cc',
        'common/navigation_gesture.h',
        'common/navigation_types.h',
        'common/notification_details.cc',
        'common/notification_details.h',
        'common/notification_observer.h',
        'common/notification_registrar.cc',
        'common/notification_registrar.h',
        'common/notification_service.cc',
        'common/notification_service.h',
        'common/notification_source.cc',
        'common/notification_source.h',
        'common/p2p_messages.h',
        'common/p2p_sockets.h',
        'common/page_transition_types.cc',
        'common/page_transition_types.h',
        'common/page_type.h',
        'common/page_zoom.h',
        'common/pepper_file_messages.cc',
        'common/pepper_file_messages.h',
        'common/pepper_messages.cc',
        'common/pepper_messages.h',
        'common/pepper_plugin_registry.cc',
        'common/pepper_plugin_registry.h',
        'common/plugin_carbon_interpose_constants_mac.cc',
        'common/plugin_carbon_interpose_constants_mac.h',
        'common/plugin_messages.h',
        'common/process_watcher.h',
        'common/process_watcher_mac.cc',
        'common/process_watcher_posix.cc',
        'common/process_watcher_win.cc',
        'common/property_bag.cc',
        'common/property_bag.h',
        'common/quota_messages.h',
        'common/quota_dispatcher.cc',
        'common/quota_dispatcher.h',
        'common/renderer_preferences.cc',
        'common/renderer_preferences.h',
        'common/request_extra_data.cc',
        'common/request_extra_data.h',
        'common/resource_dispatcher.cc',
        'common/resource_dispatcher.h',
        'common/resource_dispatcher_delegate.cc',
        'common/resource_dispatcher_delegate.h',
        'common/resource_messages.h',
        'common/resource_response.cc',
        'common/resource_response.h',
        'common/sandbox_init_wrapper.h',
        'common/sandbox_init_wrapper_linux.cc',
        'common/sandbox_init_wrapper_mac.cc',
        'common/sandbox_init_wrapper_win.cc',
        'common/sandbox_mac.h',
        'common/sandbox_mac.mm',
        'common/sandbox_methods_linux.h',
        'common/sandbox_policy.cc',
        'common/sandbox_policy.h',
        'common/section_util_win.cc',
        'common/section_util_win.h',
        'common/security_style.h',
        'common/sensors.h',
        'common/sensors_listener.h',
        'common/serialized_script_value.cc',
        'common/serialized_script_value.h',
        'common/set_process_title.cc',
        'common/set_process_title.h',
        'common/set_process_title_linux.cc',
        'common/set_process_title_linux.h',
        'common/socket_stream.h',
        'common/socket_stream_dispatcher.cc',
        'common/socket_stream_dispatcher.h',
        'common/socket_stream_messages.h',
        'common/speech_input_messages.h',
        'common/speech_input_result.h',
        'common/swapped_out_messages.cc',
        'common/swapped_out_messages.h',
        'common/text_input_client_messages.h',
        'common/unix_domain_socket_posix.cc',
        'common/unix_domain_socket_posix.h',
        'common/url_constants.cc',
        'common/url_constants.h',
        'common/url_fetcher.cc',
        'common/url_fetcher.h',
        'common/utility_messages.h',
        'common/view_messages.h',
        'common/view_types.cc',
        'common/view_types.h',
        'common/web_database_observer_impl.cc',
        'common/web_database_observer_impl.h',
        'common/webblobregistry_impl.cc',
        'common/webblobregistry_impl.h',
        'common/webblob_messages.h',
        'common/webkit_param_traits.cc',
        'common/webkit_param_traits.h',
        'common/webmessageportchannel_impl.cc',
        'common/webmessageportchannel_impl.h',
        'common/window_container_type.cc',
        'common/window_container_type.h',
        'common/worker_messages.h',
      ],
      'conditions': [
        ['OS!="win"', {
          'sources!': [
            'common/sandbox_policy.cc',
            'common/sandbox_policy.h',
          ],
        }],
        ['OS=="mac"', {
          'sources!': [
            'common/process_watcher_posix.cc',
          ],
          'link_settings': {
            'mac_bundle_resources': [
              'common/common.sb',
            ],
          },
        }],
        ['toolkit_uses_gtk == 1', {
          'dependencies': [
            '../build/linux/system.gyp:gtk',
          ],
        }],
        ['use_x11 == 1 and target_arch != "arm"', {
          'sources': [
            'common/gpu/x_util.cc',
            'common/gpu/x_util.h',
          ],
        }],
        ['touchui==1', {
          'sources': [
            'common/gpu/image_transport_surface_linux.h',
            'common/gpu/image_transport_surface_linux.cc',
          ],
          'include_dirs': [
            '<(DEPTH)/third_party/angle/include',
          ],
          'link_settings': {
            'libraries': [
              '-lXcomposite',
            ],
          },
        }],
        ['enable_gpu==1', {
          'dependencies': [
            '../gpu/gpu.gyp:command_buffer_service',
          ],
        }],
        ['target_arch=="arm"', {
          'dependencies': [
            '../media/media.gyp:media',
          ],
          'sources': [
            'common/gpu/media/gles2_texture_to_egl_image_translator.cc',
            'common/gpu/media/gles2_texture_to_egl_image_translator.h',
            'common/gpu/media/omx_video_decode_accelerator.cc',
            'common/gpu/media/omx_video_decode_accelerator.h',
          ],
          'include_dirs': [
            '<(DEPTH)/third_party/angle/include',
            '<(DEPTH)/third_party/openmax/il',
          ],
          'link_settings': {
            'libraries': [
              '-lEGL',
              '-lGLESv2',
            ],
          },
        }],
      ],
    },
  ],

  'conditions': [
    ['target_arch=="arm"', {
      'targets': [
        {
          'target_name': 'omx_video_decode_accelerator_unittest',
          'type': 'executable',
          'dependencies': [
            'content_common',
            '../testing/gtest.gyp:gtest',
          ],
          'include_dirs': [
            '<(DEPTH)/third_party/angle/include',
            '<(DEPTH)/third_party/openmax/il',
          ],
          'sources': [
            'common/gpu/media/omx_video_decode_accelerator_unittest.cc',
          ],
        }
      ],
    },
   ],
  ],
}