OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 if (is_component_build) { | 5 if (is_component_build) { |
6 link_target_type = "source_set" | 6 link_target_type = "source_set" |
7 } else { | 7 } else { |
8 link_target_type = "static_library" | 8 link_target_type = "static_library" |
9 } | 9 } |
10 target(link_target_type, "service") { | 10 target(link_target_type, "service") { |
11 visibility = [ | 11 visibility = [ |
12 "//media/*", | 12 "//media/*", |
13 "//content/gpu/*", | 13 "//content/gpu/*", |
14 "//content/public/gpu/*", | 14 "//content/public/gpu/*", |
15 "//services/ui/gpu/*", | 15 "//services/ui/gpu/*", |
16 ] | 16 ] |
17 | 17 |
18 sources = [ | 18 sources = [ |
19 "gpu_jpeg_decode_accelerator.cc", | 19 "gpu_jpeg_decode_accelerator.cc", |
20 "gpu_jpeg_decode_accelerator.h", | 20 "gpu_jpeg_decode_accelerator.h", |
21 "gpu_video_decode_accelerator.cc", | |
22 "gpu_video_decode_accelerator.h", | |
23 "gpu_video_encode_accelerator.cc", | |
24 "gpu_video_encode_accelerator.h", | |
25 "media_gpu_channel.cc", | |
26 "media_gpu_channel.h", | |
27 "media_gpu_channel_manager.cc", | |
28 "media_gpu_channel_manager.h", | |
29 ] | 21 ] |
30 | 22 |
31 include_dirs = [ "//third_party/mesa/src/include" ] | 23 include_dirs = [ "//third_party/mesa/src/include" ] |
32 | 24 |
33 public_deps = [ | 25 public_deps = [ |
34 "//base", | 26 "//base", |
35 "//gpu/config", | 27 "//gpu/config", |
36 "//ipc", | |
37 "//media", | 28 "//media", |
38 "//media/gpu", | 29 "//media/gpu", |
39 ] | 30 ] |
40 deps = [ | 31 deps = [ |
41 "//gpu/ipc/service", | |
42 "//media:media_features", | 32 "//media:media_features", |
43 "//media/gpu/ipc/common", | 33 "//media/gpu/mojo/common:jpeg_decoder", |
44 "//media/gpu/mojo:jpeg_decoder", | |
45 "//third_party/mesa:mesa_headers", | 34 "//third_party/mesa:mesa_headers", |
46 "//ui/gfx/ipc/color", | |
47 ] | 35 ] |
48 | 36 |
49 configs += [ "//media/gpu:gpu_config" ] | 37 configs += [ "//media/gpu:gpu_config" ] |
50 | 38 |
51 if (is_chromeos && current_cpu != "arm") { | 39 if (is_chromeos && current_cpu != "arm") { |
52 configs += [ "//third_party/libva:libva_config" ] | 40 configs += [ "//third_party/libva:libva_config" ] |
53 } | 41 } |
54 | 42 |
55 if (is_win) { | 43 if (is_win) { |
56 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 44 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
57 } | 45 } |
58 | 46 |
59 if (is_mac) { | 47 if (is_mac) { |
60 deps += [ "//third_party/webrtc/common_video:common_video" ] | 48 deps += [ "//third_party/webrtc/common_video:common_video" ] |
61 } | 49 } |
62 } | 50 } |
OLD | NEW |