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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 # GN version: //device/battery:mojo_bindings | 11 # GN version: //device/battery:mojo_bindings |
12 'target_name': 'device_battery_mojo_bindings', | 12 'target_name': 'device_battery_mojo_bindings', |
13 'type': 'static_library', | 13 'type': 'static_library', |
14 'includes': [ | 14 'includes': [ |
15 '../../third_party/mojo/mojom_bindings_generator.gypi', | 15 '../../mojo/mojom_bindings_generator.gypi', |
16 ], | 16 ], |
17 'sources': [ | 17 'sources': [ |
18 'battery_monitor.mojom', | 18 'battery_monitor.mojom', |
19 'battery_status.mojom', | 19 'battery_status.mojom', |
20 ], | 20 ], |
21 }, | 21 }, |
22 { | 22 { |
23 # This is needed only for a build within Android tree. TODO(ppi): remove | 23 # This is needed only for a build within Android tree. TODO(ppi): remove |
24 # when Android tree build is deprecated. | 24 # when Android tree build is deprecated. |
25 'target_name': 'device_battery_mojo_bindings_for_webview', | 25 'target_name': 'device_battery_mojo_bindings_for_webview', |
(...skipping 24 matching lines...) Expand all Loading... |
50 }, | 50 }, |
51 ], | 51 ], |
52 'conditions': [ | 52 'conditions': [ |
53 ['OS == "android"', { | 53 ['OS == "android"', { |
54 'targets': [ | 54 'targets': [ |
55 { | 55 { |
56 'target_name': 'device_battery_java', | 56 'target_name': 'device_battery_java', |
57 'type': 'none', | 57 'type': 'none', |
58 'dependencies': [ | 58 'dependencies': [ |
59 '../../base/base.gyp:base', | 59 '../../base/base.gyp:base', |
60 '../../third_party/mojo/mojo_public.gyp:mojo_bindings_java', | 60 '../../mojo/mojo_public.gyp:mojo_bindings_java', |
61 'device_battery_mojo_bindings', | 61 'device_battery_mojo_bindings', |
62 ], | 62 ], |
63 'variables': { | 63 'variables': { |
64 'java_in_dir': '../../device/battery/android/java', | 64 'java_in_dir': '../../device/battery/android/java', |
65 }, | 65 }, |
66 'includes': [ '../../build/java.gypi' ], | 66 'includes': [ '../../build/java.gypi' ], |
67 }, | 67 }, |
68 { | 68 { |
69 'target_name': 'device_battery_javatests', | 69 'target_name': 'device_battery_javatests', |
70 'type': 'none', | 70 'type': 'none', |
(...skipping 12 matching lines...) Expand all Loading... |
83 # On android, BatteryManager mojo service is implemented directly in Java. | 83 # On android, BatteryManager mojo service is implemented directly in Java. |
84 'targets': [ | 84 'targets': [ |
85 { | 85 { |
86 # GN version: //device/battery | 86 # GN version: //device/battery |
87 'target_name': 'device_battery', | 87 'target_name': 'device_battery', |
88 'type': '<(component)', | 88 'type': '<(component)', |
89 'dependencies': [ | 89 'dependencies': [ |
90 '../../base/base.gyp:base', | 90 '../../base/base.gyp:base', |
91 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:
dynamic_annotations', | 91 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:
dynamic_annotations', |
92 '../../mojo/mojo_base.gyp:mojo_environment_chromium', | 92 '../../mojo/mojo_base.gyp:mojo_environment_chromium', |
93 '../../third_party/mojo/mojo_edk.gyp:mojo_system_impl', | 93 '../../mojo/mojo_edk.gyp:mojo_system_impl', |
94 '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', | 94 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', |
95 'device_battery_mojo_bindings', | 95 'device_battery_mojo_bindings', |
96 ], | 96 ], |
97 'defines': [ | 97 'defines': [ |
98 'DEVICE_BATTERY_IMPLEMENTATION', | 98 'DEVICE_BATTERY_IMPLEMENTATION', |
99 ], | 99 ], |
100 'sources': [ | 100 'sources': [ |
101 'battery_monitor_impl.cc', | 101 'battery_monitor_impl.cc', |
102 'battery_monitor_impl.h', | 102 'battery_monitor_impl.h', |
103 'battery_status_manager_chromeos.cc', | 103 'battery_status_manager_chromeos.cc', |
104 'battery_status_manager_default.cc', | 104 'battery_status_manager_default.cc', |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 'sources!': [ | 145 'sources!': [ |
146 'battery_status_manager_default.cc', | 146 'battery_status_manager_default.cc', |
147 ], | 147 ], |
148 }], | 148 }], |
149 ], | 149 ], |
150 }, | 150 }, |
151 ], | 151 ], |
152 }], | 152 }], |
153 ], | 153 ], |
154 } | 154 } |
OLD | NEW |