Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: device/battery/BUILD.gn

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to mojo::edk namespace in preparation for runtim flag Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 6 import("//third_party/mojo/src/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 15 matching lines...) Expand all
26 ] 26 ]
27 27
28 defines = [ "DEVICE_BATTERY_IMPLEMENTATION" ] 28 defines = [ "DEVICE_BATTERY_IMPLEMENTATION" ]
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/environment:chromium", 34 "//mojo/environment:chromium",
35 "//third_party/mojo/src/mojo/public/cpp/bindings", 35 "//third_party/mojo/src/mojo/public/cpp/bindings",
36 "//third_party/mojo/src/mojo/edk/system",
37 ] 36 ]
38 37
38 if (use_chrome_edk) {
39 deps += [ "//mojo/edk/system" ]
40 } else {
41 deps += [ "//third_party/mojo/src/mojo/edk/system" ]
42 }
43
39 if (is_chromeos) { 44 if (is_chromeos) {
40 configs += [ "//build/config/linux:dbus" ] 45 configs += [ "//build/config/linux:dbus" ]
41 deps += [ 46 deps += [
42 "//chromeos:chromeos", 47 "//chromeos:chromeos",
43 "//chromeos:power_manager_proto", 48 "//chromeos:power_manager_proto",
44 ] 49 ]
45 sources -= [ 50 sources -= [
46 "battery_status_manager_default.cc", 51 "battery_status_manager_default.cc",
47 "battery_status_manager_linux.cc", 52 "battery_status_manager_linux.cc",
48 ] 53 ]
(...skipping 18 matching lines...) Expand all
67 } 72 }
68 } 73 }
69 } 74 }
70 75
71 mojom("mojo_bindings") { 76 mojom("mojo_bindings") {
72 sources = [ 77 sources = [
73 "battery_monitor.mojom", 78 "battery_monitor.mojom",
74 "battery_status.mojom", 79 "battery_status.mojom",
75 ] 80 ]
76 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698