Chromium Code Reviews| 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 28 matching lines...) Expand all Loading... | |
| 39 if (is_chromeos) { | 39 if (is_chromeos) { |
| 40 configs += [ "//build/config/linux:dbus" ] | 40 configs += [ "//build/config/linux:dbus" ] |
| 41 deps += [ | 41 deps += [ |
| 42 "//chromeos:chromeos", | 42 "//chromeos:chromeos", |
| 43 "//chromeos:power_manager_proto", | 43 "//chromeos:power_manager_proto", |
| 44 ] | 44 ] |
| 45 sources -= [ | 45 sources -= [ |
| 46 "battery_status_manager_default.cc", | 46 "battery_status_manager_default.cc", |
| 47 "battery_status_manager_linux.cc", | 47 "battery_status_manager_linux.cc", |
| 48 ] | 48 ] |
| 49 } | 49 } else if (is_linux && !is_chromeos) { |
|
timvolodine
2016/02/10 12:40:40
can we just have a separate "if (is_linux &&!is_ch
Mostyn Bramley-Moore
2016/02/10 13:01:51
Done.
| |
| 50 | |
| 51 if (is_desktop_linux) { | |
| 52 if (use_dbus) { | 50 if (use_dbus) { |
| 53 configs += [ "//build/config/linux:dbus" ] | 51 configs += [ "//build/config/linux:dbus" ] |
| 54 deps += [ "//dbus" ] | 52 deps += [ "//dbus" ] |
| 55 sources -= [ "battery_status_manager_default.cc" ] | 53 sources -= [ "battery_status_manager_default.cc" ] |
| 56 } else { | 54 } else { |
| 57 sources -= [ "battery_status_manager_linux.cc" ] | 55 sources -= [ "battery_status_manager_linux.cc" ] |
| 58 } | 56 } |
| 59 } | 57 } |
| 60 | 58 |
| 61 if (is_mac) { | 59 if (is_mac) { |
| 62 sources -= [ "battery_status_manager_default.cc" ] | 60 sources -= [ "battery_status_manager_default.cc" ] |
| 63 } | 61 } |
| 64 | 62 |
| 65 if (is_win) { | 63 if (is_win) { |
| 66 sources -= [ "battery_status_manager_default.cc" ] | 64 sources -= [ "battery_status_manager_default.cc" ] |
| 67 } | 65 } |
| 68 } | 66 } |
| 69 } | 67 } |
| 70 | 68 |
| 71 mojom("mojo_bindings") { | 69 mojom("mojo_bindings") { |
| 72 sources = [ | 70 sources = [ |
| 73 "battery_monitor.mojom", | 71 "battery_monitor.mojom", |
| 74 "battery_status.mojom", | 72 "battery_status.mojom", |
| 75 ] | 73 ] |
| 76 } | 74 } |
| OLD | NEW |