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

Side by Side Diff: device/battery/battery.gyp

Issue 2332843004: Remove GYP files. (Closed)
Patch Set: Merge Created 4 years, 3 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
« no previous file with comments | « courgette/courgette.gyp ('k') | device/bluetooth/bluetooth.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 {
6 'variables': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 # GN version: //device/battery:mojo_bindings
12 'target_name': 'device_battery_mojo_bindings',
13 'type': 'static_library',
14 'includes': [
15 '../../mojo/mojom_bindings_generator.gypi',
16 ],
17 'sources': [
18 'battery_monitor.mojom',
19 'battery_status.mojom',
20 ],
21 'variables': {
22 'use_new_wrapper_types': 'false',
23 },
24 },
25 {
26 # GN version: //device/battery:mojo_bindings_blink
27 'target_name': 'device_battery_mojo_bindings_for_blink',
28 'type': 'static_library',
29 'variables': {
30 'for_blink': 'true',
31 'use_new_wrapper_types': 'false',
32 },
33 'includes': [
34 '../../mojo/mojom_bindings_generator.gypi',
35 ],
36 'sources': [
37 'battery_monitor.mojom',
38 'battery_status.mojom',
39 ],
40 },
41 {
42 # This is needed only for a build within Android tree. TODO(ppi): remove
43 # when Android tree build is deprecated.
44 'target_name': 'device_battery_mojo_bindings_for_webview',
45 'type': 'none',
46 'dependencies': [
47 'device_battery_mojo_bindings',
48 ],
49 'actions': [
50 {
51 # Dummy action that triggers the bindings generation and explicitly
52 # declares the java outputs, so that they are discoverable to make.
53 'action_name': 'device_battery_mojo_bindings_dummy_action',
54 'inputs': [
55 '<(SHARED_INTERMEDIATE_DIR)/device/battery/battery_monitor.mojom.h',
56 '<(SHARED_INTERMEDIATE_DIR)/device/battery/battery_status.mojom.h',
57 ],
58 'outputs': [
59 '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/s rc/org/chromium/mojom/device/BatteryMonitor.java',
60 '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/s rc/org/chromium/mojom/device/BatteryMonitor_Internal.java',
61 '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/s rc/org/chromium/mojom/device/BatteryStatusObserver.java',
62 '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/s rc/org/chromium/mojom/device/BatteryStatusObserver_Internal.java',
63 '<(SHARED_INTERMEDIATE_DIR)/java_mojo/device_battery_mojo_bindings/s rc/org/chromium/mojom/device/BatteryStatus.java',
64 ],
65 'action': ['touch', '<@(_outputs)'],
66 },
67 ],
68 'hard_dependency': 1,
69 },
70 ],
71 'conditions': [
72 ['OS == "android"', {
73 'targets': [
74 {
75 'target_name': 'device_battery_java',
76 'type': 'none',
77 'dependencies': [
78 '../../base/base.gyp:base',
79 '../../mojo/mojo_public.gyp:mojo_bindings_java',
80 'device_battery_mojo_bindings',
81 ],
82 'variables': {
83 'java_in_dir': '../../device/battery/android/java',
84 },
85 'includes': [ '../../build/java.gypi' ],
86 },
87 {
88 'target_name': 'device_battery_javatests',
89 'type': 'none',
90 'variables': {
91 'java_in_dir': '../../device/battery/android/javatests',
92 },
93 'dependencies': [
94 '../../base/base.gyp:base',
95 '../../base/base.gyp:base_java_test_support',
96 'device_battery_java',
97 ],
98 'includes': [ '../../build/java.gypi' ],
99 },
100 ],
101 }, { # OS != "android"
102 # On android, BatteryManager mojo service is implemented directly in Java.
103 'targets': [
104 {
105 # GN version: //device/battery
106 'target_name': 'device_battery',
107 'type': '<(component)',
108 'dependencies': [
109 '../../base/base.gyp:base',
110 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp: dynamic_annotations',
111 '../../mojo/mojo_edk.gyp:mojo_system_impl',
112 '../../mojo/mojo_public.gyp:mojo_cpp_bindings',
113 'device_battery_mojo_bindings',
114 ],
115 'defines': [
116 'DEVICE_BATTERY_IMPLEMENTATION',
117 ],
118 'sources': [
119 'battery_monitor_impl.cc',
120 'battery_monitor_impl.h',
121 'battery_status_manager_chromeos.cc',
122 'battery_status_manager_default.cc',
123 'battery_status_manager_linux-inl.h',
124 'battery_status_manager_linux.cc',
125 'battery_status_manager_linux.h',
126 'battery_status_manager_mac.cc',
127 'battery_status_manager_win.cc',
128 'battery_status_manager_win.h',
129 'battery_status_manager.h',
130 'battery_status_service.cc',
131 'battery_status_service.h',
132 ],
133 'conditions': [
134 ['chromeos==1', {
135 'dependencies': [
136 '../../build/linux/system.gyp:dbus',
137 '../../chromeos/chromeos.gyp:chromeos',
138 '../../chromeos/chromeos.gyp:power_manager_proto',
139 ],
140 'sources!': [
141 'battery_status_manager_default.cc',
142 'battery_status_manager_linux.cc',
143 ],
144 }],
145 ['OS == "linux" and use_dbus==1', {
146 'sources!': [
147 'battery_status_manager_default.cc',
148 ],
149 'dependencies': [
150 '../../build/linux/system.gyp:dbus',
151 '../../dbus/dbus.gyp:dbus',
152 ],
153 }, { # OS != "linux" or use_dbus==0
154 'sources!': [
155 'battery_status_manager_linux.cc',
156 ],
157 }],
158 ['OS == "mac"', {
159 'sources!': [
160 'battery_status_manager_default.cc',
161 ],
162 }],
163 ['OS == "win"', {
164 'sources!': [
165 'battery_status_manager_default.cc',
166 ],
167 }],
168 ],
169 },
170 ],
171 }],
172 ],
173 }
OLDNEW
« no previous file with comments | « courgette/courgette.gyp ('k') | device/bluetooth/bluetooth.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698