Chromium Code Reviews| Index: device/power_monitor/BUILD.gn |
| diff --git a/device/power_monitor/BUILD.gn b/device/power_monitor/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e3733024b76ca0fa2461c10ad049a63479dda266 |
| --- /dev/null |
| +++ b/device/power_monitor/BUILD.gn |
| @@ -0,0 +1,43 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import("//build/config/features.gni") |
| + |
| +component("power_monitor_broadcast_source") { |
|
blundell
2016/10/28 21:33:51
This is the client-side code of power monitor, so
ke.he
2016/10/29 11:10:53
Done.
|
| + sources = [ |
| + "power_monitor_broadcast_source.cc", |
| + "power_monitor_broadcast_source.h", |
| + "power_monitor_export.h", |
| + ] |
| + |
| + defines = [ "DEVICE_POWER_MONITOR_IMPLEMENTATION" ] |
| + |
| + deps = [ |
| + "//base", |
| + "//mojo/public/cpp/bindings", |
| + ] |
| + |
| + public_deps = [ |
| + "//device/power_monitor/public/interfaces", |
| + ] |
| +} |
| + |
| +component("power_monitor_message_broadcaster") { |
|
blundell
2016/10/28 21:33:51
this is the implementation of power_monitor, so it
ke.he
2016/10/29 11:10:53
Done.
|
| + sources = [ |
| + "power_monitor_export.h", |
| + "power_monitor_message_broadcaster.cc", |
| + "power_monitor_message_broadcaster.h", |
| + ] |
| + |
| + defines = [ "DEVICE_POWER_MONITOR_IMPLEMENTATION" ] |
| + |
| + deps = [ |
| + "//base", |
| + "//mojo/public/cpp/bindings", |
| + ] |
| + |
| + public_deps = [ |
| + "//device/power_monitor/public/interfaces", |
| + ] |
| +} |