OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//content/content.gni") | 6 import("//content/content.gni") |
| 7 import("//media/media_options.gni") |
7 | 8 |
8 # See //content/BUILD.gn for how this works. | 9 # See //content/BUILD.gn for how this works. |
9 group("gpu") { | 10 group("gpu") { |
10 visibility = [ "//content/*" ] | 11 visibility = [ "//content/*" ] |
11 | 12 |
12 if (is_component_build) { | 13 if (is_component_build) { |
13 public_deps = [ | 14 public_deps = [ |
14 "//content", | 15 "//content", |
15 ] | 16 ] |
16 } else { | 17 } else { |
(...skipping 24 matching lines...) Expand all Loading... |
41 | 42 |
42 deps = [ | 43 deps = [ |
43 "//base", | 44 "//base", |
44 "//content:export", | 45 "//content:export", |
45 "//content/public/child:child_sources", | 46 "//content/public/child:child_sources", |
46 "//mojo/application/public/interfaces", | 47 "//mojo/application/public/interfaces", |
47 "//skia", | 48 "//skia", |
48 "//ui/gl", | 49 "//ui/gl", |
49 ] | 50 ] |
50 | 51 |
| 52 if (enable_mojo_media == "gpu") { |
| 53 deps += [ "//media/mojo/services:application" ] |
| 54 } |
| 55 |
51 if (is_win) { | 56 if (is_win) { |
52 configs += [ | 57 configs += [ |
53 "//third_party/khronos:khronos_headers", | 58 "//third_party/khronos:khronos_headers", |
54 "//third_party/wtl:wtl_includes", | 59 "//third_party/wtl:wtl_includes", |
55 ] | 60 ] |
56 libs = [ "setupapi.lib" ] | 61 libs = [ "setupapi.lib" ] |
57 deps += [ | 62 deps += [ |
58 "//third_party/angle:libEGL", | 63 "//third_party/angle:libEGL", |
59 "//third_party/angle:libGLESv2", | 64 "//third_party/angle:libGLESv2", |
60 ] | 65 ] |
61 } | 66 } |
62 | 67 |
63 if (is_chromeos && current_cpu != "arm") { | 68 if (is_chromeos && current_cpu != "arm") { |
64 configs += [ "//third_party/libva:libva_config" ] | 69 configs += [ "//third_party/libva:libva_config" ] |
65 } | 70 } |
66 | 71 |
67 if (use_x11) { | 72 if (use_x11) { |
68 deps += [ "//ui/events/platform/x11" ] | 73 deps += [ "//ui/events/platform/x11" ] |
69 } | 74 } |
70 } | 75 } |
OLD | NEW |