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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 # On android, BatteryManager mojo service is implemented directly in Java. | 8 # On android, BatteryManager mojo service is implemented directly in Java. |
9 if (!is_android) { | 9 if (!is_android) { |
10 component("battery") { | 10 component("battery") { |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 deps = [ | 30 deps = [ |
31 ":mojo_bindings", | 31 ":mojo_bindings", |
32 "//base", | 32 "//base", |
33 "//base/third_party/dynamic_annotations", | 33 "//base/third_party/dynamic_annotations", |
34 "//mojo/edk/system", | 34 "//mojo/edk/system", |
35 "//mojo/public/cpp/bindings", | 35 "//mojo/public/cpp/bindings", |
36 ] | 36 ] |
37 | 37 |
38 if (is_chromeos) { | 38 if (is_chromeos) { |
39 configs += [ "//build/config/linux:dbus" ] | 39 configs += [ "//build/config/linux/dbus" ] |
40 deps += [ | 40 deps += [ |
41 "//chromeos:chromeos", | 41 "//chromeos:chromeos", |
42 "//chromeos:power_manager_proto", | 42 "//chromeos:power_manager_proto", |
43 ] | 43 ] |
44 sources -= [ | 44 sources -= [ |
45 "battery_status_manager_default.cc", | 45 "battery_status_manager_default.cc", |
46 "battery_status_manager_linux.cc", | 46 "battery_status_manager_linux.cc", |
47 ] | 47 ] |
48 } | 48 } |
49 | 49 |
50 if (is_linux && !is_chromeos) { | 50 if (is_linux && !is_chromeos) { |
51 if (use_dbus) { | 51 if (use_dbus) { |
52 configs += [ "//build/config/linux:dbus" ] | 52 configs += [ "//build/config/linux/dbus" ] |
53 deps += [ "//dbus" ] | 53 deps += [ "//dbus" ] |
54 sources -= [ "battery_status_manager_default.cc" ] | 54 sources -= [ "battery_status_manager_default.cc" ] |
55 } else { | 55 } else { |
56 sources -= [ "battery_status_manager_linux.cc" ] | 56 sources -= [ "battery_status_manager_linux.cc" ] |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
60 if (is_mac) { | 60 if (is_mac) { |
61 sources -= [ "battery_status_manager_default.cc" ] | 61 sources -= [ "battery_status_manager_default.cc" ] |
62 } | 62 } |
63 | 63 |
64 if (is_win) { | 64 if (is_win) { |
65 sources -= [ "battery_status_manager_default.cc" ] | 65 sources -= [ "battery_status_manager_default.cc" ] |
66 } | 66 } |
67 } | 67 } |
68 } | 68 } |
69 | 69 |
70 mojom("mojo_bindings") { | 70 mojom("mojo_bindings") { |
71 sources = [ | 71 sources = [ |
72 "battery_monitor.mojom", | 72 "battery_monitor.mojom", |
73 "battery_status.mojom", | 73 "battery_status.mojom", |
74 ] | 74 ] |
75 } | 75 } |
OLD | NEW |