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 | 7 |
8 source_set("gpu") { | 8 # See //content/BUILD.gn for how this works. |
| 9 group("gpu") { |
| 10 visibility = [ "//content/*" ] |
| 11 |
| 12 if (is_component_build) { |
| 13 public_deps = [ |
| 14 "//content", |
| 15 ] |
| 16 } else { |
| 17 public_deps = [ |
| 18 ":gpu_sources", |
| 19 ] |
| 20 } |
| 21 } |
| 22 |
| 23 source_set("gpu_sources") { |
9 visibility = [ "//content/*" ] | 24 visibility = [ "//content/*" ] |
10 | 25 |
11 sources = [ | 26 sources = [ |
12 "gpu_child_thread.cc", | 27 "gpu_child_thread.cc", |
13 "gpu_child_thread.h", | 28 "gpu_child_thread.h", |
14 "gpu_main.cc", | 29 "gpu_main.cc", |
15 "gpu_process.cc", | 30 "gpu_process.cc", |
16 "gpu_process.h", | 31 "gpu_process.h", |
17 "gpu_watchdog_thread.cc", | 32 "gpu_watchdog_thread.cc", |
18 "gpu_watchdog_thread.h", | 33 "gpu_watchdog_thread.h", |
(...skipping 25 matching lines...) Expand all Loading... |
44 } | 59 } |
45 | 60 |
46 if (is_chromeos && current_cpu != "arm") { | 61 if (is_chromeos && current_cpu != "arm") { |
47 configs += [ "//third_party/libva:libva_config" ] | 62 configs += [ "//third_party/libva:libva_config" ] |
48 } | 63 } |
49 | 64 |
50 if (use_x11) { | 65 if (use_x11) { |
51 deps += [ "//ui/events/platform/x11" ] | 66 deps += [ "//ui/events/platform/x11" ] |
52 } | 67 } |
53 } | 68 } |
OLD | NEW |