blob: dc85add3e5a4ad91d3d0b76e4076b87b64214f06 [file] [log] [blame]
[email protected]df3ecfde2014-05-20 21:52:341# Copyright 2014 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.
4
[email protected]7e4c33142014-05-21 22:01:325import("//build/config/features.gni")
6import("//build/config/ui.gni")
[email protected]df3ecfde2014-05-20 21:52:347import("//content/common/common.gni")
xhwang13eab742015-11-18 20:29:378import("//media/media_options.gni")
rockot85dce0862015-11-13 01:33:599import("//mojo/public/tools/bindings/mojom.gni")
dpranke517335e2015-08-01 02:41:1410if (is_mac) {
11 import("//build/config/mac/mac_sdk.gni")
12}
[email protected]df3ecfde2014-05-20 21:52:3413
dpranke43276212015-02-20 02:55:1914if (is_chromeos && current_cpu != "arm") {
mukaif7571f32014-09-30 19:19:1015 action("libva_generate_stubs") {
16 extra_header = "gpu/media/va_stub_header.fragment"
17
18 script = "../../tools/generate_stubs/generate_stubs.py"
scottmg7afc4092014-12-03 19:22:4219 sources = [
20 "gpu/media/va.sigs",
21 ]
22 inputs = [
23 extra_header,
24 ]
lionel.g.landwerlin2c653de32014-12-25 19:05:0225 if (use_x11) {
26 sources += [ "gpu/media/va_x11.sigs" ]
27 }
lionel.g.landwerlinb056abc2015-01-02 23:50:5228 if (use_ozone) {
29 sources += [ "gpu/media/va_drm.sigs" ]
30 }
mukaif7571f32014-09-30 19:19:1031 stubs_filename_root = "va_stubs"
32
33 outputs = [
34 "$target_gen_dir/gpu/media/$stubs_filename_root.cc",
35 "$target_gen_dir/gpu/media/$stubs_filename_root.h",
36 ]
37 args = [
scottmg7afc4092014-12-03 19:22:4238 "-i",
39 rebase_path("$target_gen_dir/gpu/media", root_build_dir),
40 "-o",
41 rebase_path("$target_gen_dir/gpu/media", root_build_dir),
42 "-t",
43 "posix_stubs",
44 "-e",
45 rebase_path(extra_header, root_build_dir),
46 "-s",
47 stubs_filename_root,
48 "-p",
49 "content/common/gpu/media",
mukaif7571f32014-09-30 19:19:1050 ]
51
52 args += rebase_path(sources, root_build_dir)
53 }
54}
55
henryhsu51592672015-02-08 05:01:0056if (is_chromeos && use_v4lplugin) {
57 action("libv4l2_generate_stubs") {
58 extra_header = "gpu/media/v4l2_stub_header.fragment"
59
60 script = "../../tools/generate_stubs/generate_stubs.py"
61 sources = [
62 "gpu/media/v4l2.sig",
63 ]
64 inputs = [
65 extra_header,
66 ]
67 stubs_filename_root = "v4l2_stubs"
68
69 outputs = [
70 "$target_gen_dir/gpu/media/$stubs_filename_root.cc",
71 "$target_gen_dir/gpu/media/$stubs_filename_root.h",
72 ]
73 args = [
74 "-i",
75 rebase_path("$target_gen_dir/gpu/media", root_build_dir),
76 "-o",
77 rebase_path("$target_gen_dir/gpu/media", root_build_dir),
78 "-t",
79 "posix_stubs",
80 "-e",
81 rebase_path(extra_header, root_build_dir),
82 "-s",
83 stubs_filename_root,
84 "-p",
85 "content/common/gpu/media",
86 ]
87
88 args += rebase_path(sources, root_build_dir)
89 }
90}
91
dpranke380390f2014-11-21 06:08:5392if (is_mac) {
93 action("libvt_generate_stubs") {
94 extra_header = "gpu/media/vt_stubs_header.fragment"
95
96 script = "../../tools/generate_stubs/generate_stubs.py"
scottmg7afc4092014-12-03 19:22:4297 sources = [
98 "gpu/media/vt.sig",
99 ]
100 inputs = [
101 extra_header,
102 ]
dpranke380390f2014-11-21 06:08:53103 stubs_filename_root = "vt_stubs"
104
105 outputs = [
106 "$target_gen_dir/gpu/media/$stubs_filename_root.cc",
107 "$target_gen_dir/gpu/media/$stubs_filename_root.h",
108 ]
109 args = [
scottmg7afc4092014-12-03 19:22:42110 "-i",
111 rebase_path("$target_gen_dir/gpu/media", root_build_dir),
112 "-o",
113 rebase_path("$target_gen_dir/gpu/media", root_build_dir),
114 "-t",
115 "posix_stubs",
116 "-e",
117 rebase_path(extra_header, root_build_dir),
118 "-s",
119 stubs_filename_root,
120 "-p",
121 "content/common/gpu/media",
dpranke380390f2014-11-21 06:08:53122 ]
123
124 args += rebase_path(sources, root_build_dir)
125 }
126}
127
[email protected]df3ecfde2014-05-20 21:52:34128source_set("common") {
Brett Wilson8f1323042014-09-11 16:58:56129 # Only the public target should depend on this. All other targets (even
130 # internal content ones) should depend on the public one.
131 visibility = [ "//content/public/common:common_sources" ]
[email protected]df3ecfde2014-05-20 21:52:34132
133 sources = rebase_path(content_common_gypi_values.private_common_sources,
scottmg7afc4092014-12-03 19:22:42134 ".",
135 "//content")
[email protected]df3ecfde2014-05-20 21:52:34136
ben03b7b9d2015-11-15 12:13:09137 # These files are only built in a GN build because they bring in
138 # dependencies that don't build with GYP.
139 sources += [
140 "mojo/mojo_shell_connection_impl.cc",
141 "mojo/mojo_shell_connection_impl.h",
142 ]
143
brettw1deb76bc2015-02-18 19:28:20144 configs += [
145 "//content:content_implementation",
brettwbc8b2a22015-07-28 18:24:42146 "//build/config:precompiled_headers",
brettw1deb76bc2015-02-18 19:28:20147 "//build/config/compiler:no_size_t_to_int_warning",
148 ]
[email protected]df3ecfde2014-05-20 21:52:34149
Brett Wilsone53895272014-09-23 23:41:46150 public_deps = [
151 "//gpu/command_buffer/common",
agrievee786dac2015-12-02 14:45:22152 "//ipc",
Brett Wilsone53895272014-09-23 23:41:46153 "//third_party/WebKit/public:blink_headers",
154 ]
[email protected]df3ecfde2014-05-20 21:52:34155 deps = [
156 "//base",
[email protected]7e4c33142014-05-21 22:01:32157 "//build/util:webkit_version",
ben03b7b9d2015-11-15 12:13:09158 "//components/mus/public/interfaces",
[email protected]df3ecfde2014-05-20 21:52:34159 "//components/tracing",
zhenw062a94522015-06-22 20:55:28160 "//components/tracing:startup_tracing",
jbromancba3d2fe2014-09-16 01:04:24161 "//gpu/command_buffer/client:gles2_interface",
brettw542f7532015-04-06 22:35:45162 "//gpu/command_buffer/common:gles2_utils",
ben03b7b9d2015-11-15 12:13:09163 "//mojo/application/public/cpp",
164 "//mojo/converters/network",
165 "//mojo/runner/child:lib",
[email protected]df3ecfde2014-05-20 21:52:34166 "//net",
167 "//skia",
168 "//third_party/icu",
rockotac2a36e2015-11-20 17:56:54169 "//third_party/libjingle",
[email protected]df3ecfde2014-05-20 21:52:34170 "//ui/accessibility",
[email protected]52140d882014-05-30 19:22:40171 "//ui/base",
spang1c36fac2015-02-05 19:55:12172 "//ui/base/ime",
miletus45effdc42015-08-05 00:29:18173 "//ui/events/ipc:events_ipc",
[email protected]df3ecfde2014-05-20 21:52:34174 "//ui/gfx",
175 "//ui/gfx/geometry",
[email protected]d7e69fa2014-07-24 21:19:28176 "//ui/gfx/ipc",
[email protected]a1d7d4f2014-07-16 21:33:36177 "//ui/shell_dialogs",
[email protected]df3ecfde2014-05-20 21:52:34178 "//url",
[email protected]df3ecfde2014-05-20 21:52:34179 ]
[email protected]7e4c33142014-05-21 22:01:32180
181 if (!is_ios) {
rockotac2a36e2015-11-20 17:56:54182 public_deps += [ ":mojo_bindings" ]
183
[email protected]7e4c33142014-05-21 22:01:32184 deps += [
[email protected]824288842014-06-20 05:26:59185 "//cc",
jyasskin710d15dfc2015-07-22 16:25:20186 "//device/bluetooth",
[email protected]7e4c33142014-05-21 22:01:32187 "//ipc",
[email protected]64860882014-08-04 23:44:17188 "//ipc/mojo",
scottmg7afc4092014-12-03 19:22:42189
[email protected]7e4c33142014-05-21 22:01:32190 # TODO: the dependency on gl_in_process_context should be decoupled from
191 # content and moved to android_webview. See crbug.com/365797.
tfarina13f5f5e52014-12-20 05:42:04192 "//gpu/blink",
[email protected]824288842014-06-20 05:26:59193 "//gpu/command_buffer/client:gl_in_process_context",
194 "//gpu/command_buffer/client:gles2_c_lib",
Brett Wilson8f1323042014-09-11 16:58:56195 "//gpu/command_buffer/client:gles2_cmd_helper",
[email protected]824288842014-06-20 05:26:59196 "//gpu/command_buffer/client:gles2_implementation",
197 "//gpu/command_buffer/service",
198 "//gpu/ipc",
[email protected]d7e69fa2014-07-24 21:19:28199 "//gpu/skia_bindings",
200 "//media",
201 "//media:shared_memory_support",
rockotac2a36e2015-11-20 17:56:54202 "//media/midi",
jam05a3de42015-05-14 22:56:10203 "//mojo/application/public/interfaces",
lionel.g.landwerlin57ba5122015-08-14 16:26:32204 "//mojo/common:common_base",
[email protected]22fe91d2014-08-12 17:07:12205 "//mojo/environment:chromium",
[email protected]22fe91d2014-08-12 17:07:12206 "//sandbox",
pilgrim4af8c212014-09-05 17:30:15207 "//storage/common",
[email protected]d7e69fa2014-07-24 21:19:28208 "//third_party/WebKit/public:blink",
blundell70fb547672015-01-19 17:18:33209 "//third_party/mojo/src/mojo/edk/system",
[email protected]824288842014-06-20 05:26:59210 "//ui/gl",
[email protected]7e4c33142014-05-21 22:01:32211 ]
212 }
213
ben3f5f9992015-11-19 10:38:30214 defines = []
[email protected]7e4c33142014-05-21 22:01:32215 include_dirs = []
[email protected]7e4c33142014-05-21 22:01:32216 libs = []
217 ldflags = []
218
219 if (is_android && use_seccomp_bpf) {
220 set_sources_assignment_filter([])
221 sources += [
222 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
223 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
224 ]
225 set_sources_assignment_filter(sources_assignment_filter)
226 }
227
228 if (is_mac) {
229 sources += [
scottmg7afc4092014-12-03 19:22:42230 "gpu/client/gpu_memory_buffer_impl_io_surface.cc",
231 "gpu/client/gpu_memory_buffer_impl_io_surface.h",
jiangj2bd42fd2015-04-18 13:29:06232 "gpu/gpu_memory_buffer_factory_io_surface.cc",
233 "gpu/gpu_memory_buffer_factory_io_surface.h",
234 "gpu/media/vt.h",
235 "gpu/media/vt_video_decode_accelerator.cc",
236 "gpu/media/vt_video_decode_accelerator.h",
scottmg7afc4092014-12-03 19:22:42237 ] + get_target_outputs(":libvt_generate_stubs")
dpranke380390f2014-11-21 06:08:53238
scottmg7afc4092014-12-03 19:22:42239 sources -= [ "plugin_list_posix.cc" ]
[email protected]7e4c33142014-05-21 22:01:32240
[email protected]79ff77e62014-07-08 10:59:16241 deps += [
dpranke380390f2014-11-21 06:08:53242 ":libvt_generate_stubs",
[email protected]79ff77e62014-07-08 10:59:16243 "//content:resources",
rockotac2a36e2015-11-20 17:56:54244 "//content/app/resources",
erga3c614c92015-04-03 17:47:51245 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46246 "//third_party/WebKit/public:resources",
tapted736e1442014-12-01 22:25:46247 "//ui/accelerated_widget_mac",
[email protected]79ff77e62014-07-08 10:59:16248 ]
dpranke517335e2015-08-01 02:41:14249 lib_dirs = [ "$mac_sdk_path/usr/lib" ]
jiangj2bd42fd2015-04-18 13:29:06250 libs += [
251 "IOSurface.framework",
252 "OpenGL.framework",
253 "QuartzCore.framework",
dpranke517335e2015-08-01 02:41:14254 "sandbox",
jiangj2bd42fd2015-04-18 13:29:06255 ]
[email protected]7e4c33142014-05-21 22:01:32256 }
257
258 if (is_android) {
259 sources += [
260 "gpu/client/gpu_memory_buffer_impl_surface_texture.cc",
261 "gpu/client/gpu_memory_buffer_impl_surface_texture.h",
reveman6f3e3652014-10-10 03:32:00262 "gpu/gpu_memory_buffer_factory_surface_texture.cc",
263 "gpu/gpu_memory_buffer_factory_surface_texture.h",
[email protected]7e4c33142014-05-21 22:01:32264 ]
265
James Robinson060f2e32014-09-10 22:31:37266 deps += [
James Robinson060f2e32014-09-10 22:31:37267 "//content/public/android:common_aidl",
rockotac2a36e2015-11-20 17:56:54268 "//content/public/android:jni",
James Robinson060f2e32014-09-10 22:31:37269 ]
[email protected]7e4c33142014-05-21 22:01:32270
271 libs += [ "android" ]
272 }
273
agrievee786dac2015-12-02 14:45:22274 if (is_debug && !is_component_build && enable_plugins) {
erg85ac9312015-04-16 18:20:53275 # Content depends on the PPAPI message logging stuff; if this isn't here,
276 # some unit test binaries won't compile. This only worked in release mode
277 # because logging is disabled there.
278 deps += [ "//ppapi/proxy:ipc_sources" ]
279 }
280
[email protected]7e4c33142014-05-21 22:01:32281 if (is_ios) {
282 sources -= [ "user_agent.cc" ]
283 assert(false, "Need to add lots of conditions here")
284 }
285
revemanbc2de2b2014-11-17 03:21:32286 if (use_ozone) {
dongseong.hwang2a785aa2015-10-19 17:04:57287 configs += [ "//ui/ozone:vgem_map" ]
288
dprankeacd282e2014-11-05 03:54:47289 deps += [
dnicoaradce73b032014-11-18 22:15:39290 "//ui/ozone:ozone",
291 "//ui/ozone:ozone_base",
dprankeacd282e2014-11-05 03:54:47292 ]
revemanbc2de2b2014-11-17 03:21:32293 } else {
294 sources -= [
295 "cursors/webcursor_ozone.cc",
296 "font_list_ozone.cc",
dongseong.hwang6a80cc02015-07-24 11:55:11297 "gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc",
298 "gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h",
299 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc",
300 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h",
revemanbc2de2b2014-11-17 03:21:32301 ]
[email protected]7e4c33142014-05-21 22:01:32302 }
303
mfomitchev2977ebf2015-08-07 00:12:29304 if (!use_aura || is_android) {
[email protected]79ff77e62014-07-08 10:59:16305 sources -= [ "cursors/webcursor_aura.cc" ]
306 }
307
[email protected]7e4c33142014-05-21 22:01:32308 if (!use_aura || !use_x11) {
309 sources -= [ "cursors/webcursor_aurax11.cc" ]
310 }
311
312 if (use_pango) {
313 configs += [ "//build/config/linux:pangocairo" ]
314 if (use_ozone) {
315 # If we're using pango, never use this ozone file (it was removed in all
316 # non-ozone cases above).
317 sources -= [ "font_list_ozone.cc" ]
318 }
319 } else {
scottmg7afc4092014-12-03 19:22:42320 sources -= [ "font_list_pango.cc" ]
[email protected]7e4c33142014-05-21 22:01:32321 }
322
323 if (use_x11) {
brettw542f7532015-04-06 22:35:45324 configs += [
325 "//build/config/linux:xcomposite",
326 "//third_party/khronos:khronos_headers",
327 ]
[email protected]7e4c33142014-05-21 22:01:32328
dpranke43276212015-02-20 02:55:19329 if (current_cpu != "arm" || !is_chromeos) {
Sadrul Habib Chowdhuryc351e952015-03-10 01:34:22330 sources += [ "gpu/x_util.h" ]
[email protected]7e4c33142014-05-21 22:01:32331 }
332 }
333
334 if (enable_plugins) {
brettwf7eb6ca2015-02-14 01:37:31335 deps += [ "//ppapi/shared_impl" ]
[email protected]7e4c33142014-05-21 22:01:32336 } else {
337 sources -= [
thestigc4cac8f2014-09-04 21:17:50338 "pepper_file_util.cc",
339 "pepper_file_util.h",
340 "pepper_messages.h",
[email protected]7e4c33142014-05-21 22:01:32341 "pepper_plugin_list.cc",
342 "pepper_plugin_list.h",
thestigc4cac8f2014-09-04 21:17:50343 "pepper_renderer_instance_data.cc",
344 "pepper_renderer_instance_data.h",
345 "plugin_list.cc",
346 "plugin_list.h",
347 "plugin_list_posix.cc",
[email protected]7e4c33142014-05-21 22:01:32348 "sandbox_util.cc",
349 ]
350 }
351
352 if (is_android) {
353 sources += [
liberatoc7658822015-09-14 23:54:19354 "gpu/media/android_copying_backing_strategy.cc",
355 "gpu/media/android_copying_backing_strategy.h",
xhwangf3510922015-10-21 22:29:34356 "gpu/media/android_deferred_rendering_backing_strategy.cc",
357 "gpu/media/android_deferred_rendering_backing_strategy.h",
[email protected]7e4c33142014-05-21 22:01:32358 "gpu/media/android_video_decode_accelerator.cc",
359 "gpu/media/android_video_decode_accelerator.h",
xhwangf3510922015-10-21 22:29:34360 "gpu/media/avda_codec_image.cc",
361 "gpu/media/avda_codec_image.h",
liberatoc7658822015-09-14 23:54:19362 "gpu/media/avda_return_on_failure.h",
xhwangf3510922015-10-21 22:29:34363 "gpu/media/avda_shared_state.h",
364 "gpu/media/avda_state_provider.h",
[email protected]7e4c33142014-05-21 22:01:32365 ]
[email protected]7e4c33142014-05-21 22:01:32366
367 if (enable_webrtc) {
368 deps += [ "//third_party/libyuv" ]
pkotwicz699de142015-10-22 15:26:51369 sources += [
370 "gpu/media/android_video_encode_accelerator.cc",
371 "gpu/media/android_video_encode_accelerator.h",
372 ]
[email protected]7e4c33142014-05-21 22:01:32373 }
xhwang13eab742015-11-18 20:29:37374
375 if (enable_mojo_media == "gpu") {
376 deps += [ "//media/mojo/services:application" ]
377 }
[email protected]7e4c33142014-05-21 22:01:32378 }
379
lionel.g.landwerlin2c653de32014-12-25 19:05:02380 if (is_chromeos) {
posciakd9ee533e2015-04-11 10:32:38381 sources += [
382 "gpu/media/accelerated_video_decoder.h",
383 "gpu/media/h264_decoder.cc",
384 "gpu/media/h264_decoder.h",
385 "gpu/media/h264_dpb.cc",
386 "gpu/media/h264_dpb.h",
posciakef403af2015-05-06 06:32:41387 "gpu/media/vp8_decoder.cc",
388 "gpu/media/vp8_decoder.h",
389 "gpu/media/vp8_picture.cc",
390 "gpu/media/vp8_picture.h",
posciakd94b2b082015-09-18 04:03:40391 "gpu/media/vp9_decoder.cc",
392 "gpu/media/vp9_decoder.h",
393 "gpu/media/vp9_picture.cc",
394 "gpu/media/vp9_picture.h",
posciakd9ee533e2015-04-11 10:32:38395 ]
henryhsu51592672015-02-08 05:01:00396 if (use_v4lplugin) {
397 defines += [ "USE_LIBV4L2" ]
398 sources += get_target_outputs(":libv4l2_generate_stubs")
399 deps += [ ":libv4l2_generate_stubs" ]
400 }
henryhsu712f1ac2015-01-09 11:25:45401 if (use_v4l2_codec) {
402 defines += [ "USE_V4L2_CODEC" ]
[email protected]7e4c33142014-05-21 22:01:32403 sources += [
emircan2090fc2b2015-02-26 17:50:43404 "gpu/media/generic_v4l2_device.cc",
405 "gpu/media/generic_v4l2_device.h",
emircan2090fc2b2015-02-26 17:50:43406 "gpu/media/v4l2_device.cc",
407 "gpu/media/v4l2_device.h",
[email protected]7e4c33142014-05-21 22:01:32408 "gpu/media/v4l2_image_processor.cc",
409 "gpu/media/v4l2_image_processor.h",
henryhsu840b38ed2015-07-09 05:29:48410 "gpu/media/v4l2_jpeg_decode_accelerator.cc",
411 "gpu/media/v4l2_jpeg_decode_accelerator.h",
henryhsu51592672015-02-08 05:01:00412 "gpu/media/v4l2_slice_video_decode_accelerator.cc",
413 "gpu/media/v4l2_slice_video_decode_accelerator.h",
[email protected]7e4c33142014-05-21 22:01:32414 "gpu/media/v4l2_video_decode_accelerator.cc",
415 "gpu/media/v4l2_video_decode_accelerator.h",
[email protected]7e4c33142014-05-21 22:01:32416 "gpu/media/v4l2_video_encode_accelerator.cc",
417 "gpu/media/v4l2_video_encode_accelerator.h",
418 ]
scottmg7afc4092014-12-03 19:22:42419 libs = [
420 "EGL",
421 "GLESv2",
422 ]
henryhsu51592672015-02-08 05:01:00423 }
dpranke43276212015-02-20 02:55:19424 if (current_cpu == "arm") {
henryhsu51592672015-02-08 05:01:00425 sources += [
emircan2090fc2b2015-02-26 17:50:43426 "gpu/media/tegra_v4l2_device.cc",
427 "gpu/media/tegra_v4l2_device.h",
henryhsu51592672015-02-08 05:01:00428 ]
lionel.g.landwerlin2c653de32014-12-25 19:05:02429 }
dpranke43276212015-02-20 02:55:19430 if (current_cpu != "arm") {
[email protected]7e4c33142014-05-21 22:01:32431 sources += [
scottmg7afc4092014-12-03 19:22:42432 "gpu/media/va_surface.h",
kcwu2bdb8a42015-06-18 10:44:49433 "gpu/media/vaapi_jpeg_decode_accelerator.cc",
434 "gpu/media/vaapi_jpeg_decode_accelerator.h",
435 "gpu/media/vaapi_jpeg_decoder.cc",
436 "gpu/media/vaapi_jpeg_decoder.h",
lionel.g.landwerlin2c653de32014-12-25 19:05:02437 "gpu/media/vaapi_picture.cc",
438 "gpu/media/vaapi_picture.h",
scottmg7afc4092014-12-03 19:22:42439 "gpu/media/vaapi_video_decode_accelerator.cc",
440 "gpu/media/vaapi_video_decode_accelerator.h",
441 "gpu/media/vaapi_video_encode_accelerator.cc",
442 "gpu/media/vaapi_video_encode_accelerator.h",
443 "gpu/media/vaapi_wrapper.cc",
444 "gpu/media/vaapi_wrapper.h",
445 ] + get_target_outputs(":libva_generate_stubs")
mukaif7571f32014-09-30 19:19:10446 configs += [
447 "//third_party/libva:libva_config",
448 "//third_party/libyuv:libyuv_config",
449 ]
450 deps += [
451 ":libva_generate_stubs",
452 "//media",
453 "//third_party/libyuv",
454 ]
lionel.g.landwerlin2c653de32014-12-25 19:05:02455 if (use_x11) {
456 sources += [
457 "gpu/media/vaapi_tfp_picture.cc",
458 "gpu/media/vaapi_tfp_picture.h",
459 ]
460 }
lionel.g.landwerlinb056abc2015-01-02 23:50:52461 if (use_ozone) {
462 sources += [
463 "gpu/media/vaapi_drm_picture.cc",
464 "gpu/media/vaapi_drm_picture.h",
465 ]
466 }
[email protected]7e4c33142014-05-21 22:01:32467 }
468 }
469
470 if (is_win) {
471 sources += [
472 "gpu/media/dxva_video_decode_accelerator.cc",
473 "gpu/media/dxva_video_decode_accelerator.h",
474 ]
brettw542f7532015-04-06 22:35:45475 configs += [ "//third_party/khronos:khronos_headers" ]
scottmg7afc4092014-12-03 19:22:42476 deps += [ "//ui/gl" ]
vchigrinfd9bd7de2015-01-14 08:35:18477 libs += [
478 "d3d9.lib",
ananta3b01db92015-02-28 00:39:18479 "d3d11.lib",
vchigrinfd9bd7de2015-01-14 08:35:18480 "dxva2.lib",
481 "strmiids.lib",
482 "mf.lib",
483 "mfplat.lib",
484 "mfuuid.lib",
485 ]
486 ldflags += [
487 "/DELAYLOAD:d3d9.dll",
ananta3b01db92015-02-28 00:39:18488 "/DELAYLOAD:d3d11.dll",
vchigrinfd9bd7de2015-01-14 08:35:18489 "/DELAYLOAD:dxva2.dll",
490 "/DELAYLOAD:mf.dll",
491 "/DELAYLOAD:mfplat.dll",
492 ]
[email protected]7e4c33142014-05-21 22:01:32493
494 # TODO(GYP): extract_xinput action.
495 }
496
497 if (!is_win || !use_aura) {
498 sources -= [ "cursors/webcursor_aurawin.cc" ]
499 }
[email protected]7e4c33142014-05-21 22:01:32500
501 if (use_seccomp_bpf) {
502 defines += [ "USE_SECCOMP_BPF" ]
503 } else {
504 if (is_linux) {
505 sources -= [
506 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc",
507 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.h",
508 "sandbox_linux/bpf_gpu_policy_linux.cc",
509 "sandbox_linux/bpf_gpu_policy_linux.h",
510 "sandbox_linux/bpf_ppapi_policy_linux.cc",
511 "sandbox_linux/bpf_ppapi_policy_linux.h",
512 "sandbox_linux/bpf_renderer_policy_linux.cc",
513 "sandbox_linux/bpf_renderer_policy_linux.h",
[email protected]692a9542014-06-25 23:04:47514 "sandbox_linux/bpf_utility_policy_linux.cc",
515 "sandbox_linux/bpf_utility_policy_linux.h",
[email protected]7e4c33142014-05-21 22:01:32516 "sandbox_linux/sandbox_bpf_base_policy_linux.cc",
517 "sandbox_linux/sandbox_bpf_base_policy_linux.h",
518 ]
519 }
520 if (is_android) {
521 sources -= [
522 "sandbox_linux/android/sandbox_bpf_base_policy_android.cc",
523 "sandbox_linux/android/sandbox_bpf_base_policy_android.h",
524 ]
525 }
526 }
[email protected]df3ecfde2014-05-20 21:52:34527}
[email protected]7e4c33142014-05-21 22:01:32528
[email protected]189add52014-05-28 16:51:44529mojom("mojo_bindings") {
530 sources = [
rockot775ce0d2015-01-27 18:35:01531 "application_setup.mojom",
iclelland534768522015-04-30 18:32:00532 "background_sync_service.mojom",
blundellc57b93f2014-10-29 13:19:57533 "geolocation_service.mojom",
halton.huoca2eabd2015-07-06 08:17:40534 "image_downloader/image_downloader.mojom",
mlamouri4ebe69f2014-11-14 17:25:21535 "permission_service.mojom",
avayvodbca35fad2015-01-29 20:20:57536 "presentation/presentation_service.mojom",
rockotb814a582015-06-05 00:30:52537 "process_control.mojom",
fsamuel6c6da0232015-11-26 05:13:46538 "render_widget_window_tree_client_factory.mojom",
rockotac2a36e2015-11-20 17:56:54539 "routed_service_provider.mojom",
mekd4ff9b52015-06-29 21:02:23540 "service_port_service.mojom",
mek27c9d742015-07-16 18:30:18541 "service_worker/embedded_worker_setup.mojom",
bajones02443532015-06-22 21:17:40542 "vr_service.mojom",
alogvinovf50445a2015-10-30 13:00:12543 "wake_lock_service.mojom",
[email protected]189add52014-05-28 16:51:44544 ]
[email protected]e2051232014-06-30 17:45:45545
rockotb814a582015-06-05 00:30:52546 import_dirs = [ "//mojo/services" ]
547
[email protected]e2051232014-06-30 17:45:45548 deps = [
vabr90450d72015-12-01 16:13:54549 "//components/mus/public/interfaces",
blundellc57b93f2014-10-29 13:19:57550 "//content/public/common:mojo_bindings",
jam05a3de42015-05-14 22:56:10551 "//mojo/application/public/interfaces",
halton.huoca2eabd2015-07-06 08:17:40552 "//skia/public/interfaces",
553 "//ui/mojo/geometry:interfaces",
[email protected]e2051232014-06-30 17:45:45554 ]
[email protected]189add52014-05-28 16:51:44555}