OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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", | |
20 "gpu_jpeg_decode_accelerator.h", | |
21 "gpu_video_decode_accelerator.cc", | 19 "gpu_video_decode_accelerator.cc", |
22 "gpu_video_decode_accelerator.h", | 20 "gpu_video_decode_accelerator.h", |
23 "gpu_video_encode_accelerator.cc", | 21 "gpu_video_encode_accelerator.cc", |
24 "gpu_video_encode_accelerator.h", | 22 "gpu_video_encode_accelerator.h", |
25 "media_gpu_channel.cc", | 23 "media_gpu_channel.cc", |
26 "media_gpu_channel.h", | 24 "media_gpu_channel.h", |
27 "media_gpu_channel_manager.cc", | 25 "media_gpu_channel_manager.cc", |
28 "media_gpu_channel_manager.h", | 26 "media_gpu_channel_manager.h", |
29 ] | 27 ] |
30 | 28 |
31 include_dirs = [ "//third_party/mesa/src/include" ] | 29 include_dirs = [ "//third_party/mesa/src/include" ] |
32 | 30 |
33 public_deps = [ | 31 public_deps = [ |
34 "//base", | 32 "//base", |
35 "//gpu/config", | 33 "//gpu/config", |
36 "//ipc", | 34 "//ipc", |
37 "//media", | 35 "//media", |
38 "//media/gpu", | 36 "//media/gpu", |
39 ] | 37 ] |
40 deps = [ | 38 deps = [ |
41 "//gpu/ipc/service", | 39 "//gpu/ipc/service", |
42 "//media:media_features", | 40 "//media:media_features", |
43 "//media/gpu/ipc/common", | 41 "//media/gpu/ipc/common", |
44 "//media/gpu/mojo:jpeg_decoder", | |
45 "//third_party/mesa:mesa_headers", | 42 "//third_party/mesa:mesa_headers", |
46 "//ui/gfx/ipc/color", | 43 "//ui/gfx/ipc/color", |
47 ] | 44 ] |
48 | 45 |
49 configs += [ "//media/gpu:gpu_config" ] | 46 configs += [ "//media/gpu:gpu_config" ] |
50 | 47 |
51 if (is_chromeos && current_cpu != "arm") { | 48 if (is_chromeos && current_cpu != "arm") { |
52 configs += [ "//third_party/libva:libva_config" ] | 49 configs += [ "//third_party/libva:libva_config" ] |
53 } | 50 } |
54 | 51 |
55 if (is_win) { | 52 if (is_win) { |
56 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 53 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
57 } | 54 } |
58 | 55 |
59 if (is_mac) { | 56 if (is_mac) { |
60 deps += [ "//third_party/webrtc/common_video:common_video" ] | 57 deps += [ "//third_party/webrtc/common_video:common_video" ] |
61 } | 58 } |
62 } | 59 } |
OLD | NEW |