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:mojo_bindings
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)'],
56 'target_name': 'device_battery_java',
59 '../../base/base.gyp:base',
60 '../../third_party/mojo/mojo_public.gyp:mojo_bindings_java',
61 'device_battery_mojo_bindings',
64 'java_in_dir': '../../device/battery/android/java',
66 'includes': [ '../../build/java.gypi' ],
69 'target_name': 'device_battery_javatests',
72 'java_in_dir': '../../device/battery/android/javatests',
75 '../../base/base.gyp:base',
76 '../../base/base.gyp:base_java_test_support',
77 'device_battery_java',
79 'includes': [ '../../build/java.gypi' ],
82 }, { # OS != "android"
83 # On android, BatteryManager mojo service is implemented directly in Java.
86 # GN version: //device/battery
87 'target_name': 'device_battery',
88 'type': '<(component)',
90 '../../base/base.gyp:base',
91 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
92 '../../mojo/mojo_base.gyp:mojo_environment_chromium',
93 '../../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
94 '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
95 'device_battery_mojo_bindings',
98 'DEVICE_BATTERY_IMPLEMENTATION',
101 'battery_monitor_impl.cc',
102 'battery_monitor_impl.h',
103 'battery_status_manager_chromeos.cc',
104 'battery_status_manager_default.cc',
105 'battery_status_manager_linux.cc',
106 'battery_status_manager_linux.h',
107 'battery_status_manager_mac.cc',
108 'battery_status_manager_win.cc',
109 'battery_status_manager_win.h',
110 'battery_status_manager.h',
111 'battery_status_service.cc',
112 'battery_status_service.h',
117 '../../build/linux/system.gyp:dbus',
118 '../../chromeos/chromeos.gyp:chromeos',
119 '../../chromeos/chromeos.gyp:power_manager_proto',
122 'battery_status_manager_default.cc',
123 'battery_status_manager_linux.cc',
126 ['OS == "linux" and use_dbus==1', {
128 'battery_status_manager_default.cc',
131 '../../build/linux/system.gyp:dbus',
132 '../../dbus/dbus.gyp:dbus',
134 }, { # OS != "linux" or use_dbus==0
136 'battery_status_manager_linux.cc',
141 'battery_status_manager_default.cc',
146 'battery_status_manager_default.cc',