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
3 # found in the LICENSE file.
11 # GN version: //device/battery:battery_mojo
12 'target_name': 'device_battery_mojo_bindings',
13 'type': 'static_library',
15 '../../third_party/mojo/mojom_bindings_generator.gypi',
18 'battery_monitor.mojom',
19 'battery_status.mojom',
23 # This is needed only for a build within Android tree. TODO(ppi): remove
24 # when Android tree build is deprecated.
25 'target_name': 'device_battery_mojo_bindings_for_webview',
28 'device_battery_mojo_bindings',
32 # Dummy action that triggers the bindings generation and explicitly
33 # declares the java outputs, so that they are discoverable to make.
34 'action_name': 'device_battery_mojo_bindings_dummy_action',
36 '<(SHARED_INTERMEDIATE_DIR)/device/battery/battery_monitor.mojom.h',
37 '<(SHARED_INTERMEDIATE_DIR)/device/battery/battery_status.mojom.h',
40 '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/src/org/chromium/mojom/device/BatteryMonitor.java',
41 '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/src/org/chromium/mojom/device/BatteryMonitor_Internal.java',
42 '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/src/org/chromium/mojom/device/BatteryStatusObserver.java',
43 '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/src/org/chromium/mojom/device/BatteryStatusObserver_Internal.java',
44 '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/src/org/chromium/mojom/device/BatteryStatus.java',
46 'action': ['touch', '<@(_outputs)'],
52 # GN version: //device/battery
53 'target_name': 'device_battery',
54 'type': '<(component)',
56 '../../base/base.gyp:base',
57 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
58 '../../mojo/mojo_base.gyp:mojo_environment_chromium',
59 '../../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
60 '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
61 'device_battery_mojo_bindings',
64 'DEVICE_BATTERY_IMPLEMENTATION',
67 'battery_monitor_impl.cc',
68 'battery_monitor_impl.h',
69 'battery_status_manager_chromeos.cc',
70 'battery_status_manager_default.cc',
71 'battery_status_manager_linux.cc',
72 'battery_status_manager_linux.h',
73 'battery_status_manager_mac.cc',
74 'battery_status_manager_win.cc',
75 'battery_status_manager_win.h',
76 'battery_status_manager.h',
77 'battery_status_service.cc',
78 'battery_status_service.h',
83 '../../build/linux/system.gyp:dbus',
84 '../../chromeos/chromeos.gyp:chromeos',
85 '../../chromeos/chromeos.gyp:power_manager_proto',
88 'battery_status_manager_default.cc',
89 'battery_status_manager_linux.cc',
92 ['OS == "linux" and use_dbus==1', {
94 'battery_status_manager_default.cc',
97 '../../build/linux/system.gyp:dbus',
98 '../../dbus/dbus.gyp:dbus',
100 }, { # OS != "linux" or use_dbus==0
102 'battery_status_manager_linux.cc',
107 'battery_status_manager_default.cc',
112 'battery_status_manager_default.cc',
119 ['OS == "android"', {
122 'target_name': 'device_battery_java',
125 '../../base/base.gyp:base',
126 '../../third_party/mojo/mojo_public.gyp:mojo_bindings_java',
127 'device_battery_mojo_bindings',
130 'java_in_dir': '../../device/battery/android/java',
132 'includes': [ '../../build/java.gypi' ],
135 'target_name': 'device_battery_javatests',
138 'java_in_dir': '../../device/battery/android/javatests',
141 '../../base/base.gyp:base',
142 '../../base/base.gyp:base_java_test_support',
143 'device_battery_java',
145 'includes': [ '../../build/java.gypi' ],