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 import("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
7 import("//chrome/version.gni") | 7 import("//chrome/version.gni") |
8 | 8 |
9 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
10 [ rebase_path("../chrome_common.gypi") ], | 10 [ rebase_path("../chrome_common.gypi") ], |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 "//third_party/widevine/cdm:version_h", | 110 "//third_party/widevine/cdm:version_h", |
111 ] | 111 ] |
112 public_deps += [ "//third_party/mojo/src/mojo/public/cpp/bindings" ] | 112 public_deps += [ "//third_party/mojo/src/mojo/public/cpp/bindings" ] |
113 } | 113 } |
114 | 114 |
115 if (enable_extensions) { | 115 if (enable_extensions) { |
116 sources += rebase_path(gypi_values.chrome_common_extensions_sources, | 116 sources += rebase_path(gypi_values.chrome_common_extensions_sources, |
117 ".", | 117 ".", |
118 "//chrome") | 118 "//chrome") |
119 deps += [ | 119 deps += [ |
120 "//device/usb", | |
121 "//chrome/common/extensions/api", | 120 "//chrome/common/extensions/api", |
122 "//extensions/common", | 121 "//extensions/common", |
123 "//extensions/common/api", | 122 "//extensions/common/api", |
124 "//extensions:extensions_resources", | 123 "//extensions:extensions_resources", |
125 "//extensions/strings", | 124 "//extensions/strings", |
126 "//media/cast:net", | 125 "//media/cast:net", |
127 ] | 126 ] |
128 if (is_chromeos) { | 127 if (is_chromeos) { |
129 sources += | 128 sources += |
130 rebase_path(gypi_values.chrome_common_extensions_chromeos_sources, | 129 rebase_path(gypi_values.chrome_common_extensions_chromeos_sources, |
131 ".", | 130 ".", |
132 "//chrome") | 131 "//chrome") |
133 } | 132 } |
| 133 if (!is_android) { |
| 134 deps += ["//device/usb"] |
| 135 } |
134 } | 136 } |
135 | 137 |
136 if (is_win || is_mac) { | 138 if (is_win || is_mac) { |
137 sources += | 139 sources += |
138 rebase_path(gypi_values.chrome_common_win_mac_sources, ".", "//chrome") | 140 rebase_path(gypi_values.chrome_common_win_mac_sources, ".", "//chrome") |
139 deps += [ "//breakpad:client" ] | 141 deps += [ "//breakpad:client" ] |
140 } | 142 } |
141 if (is_win || is_mac || is_chromeos) { | 143 if (is_win || is_mac || is_chromeos) { |
142 if (use_openssl) { | 144 if (use_openssl) { |
143 sources += rebase_path( | 145 sources += rebase_path( |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 } | 188 } |
187 if (enable_mdns) { | 189 if (enable_mdns) { |
188 sources += [ | 190 sources += [ |
189 "local_discovery/service_discovery_client_impl.cc", | 191 "local_discovery/service_discovery_client_impl.cc", |
190 "local_discovery/service_discovery_client_impl.h", | 192 "local_discovery/service_discovery_client_impl.h", |
191 ] | 193 ] |
192 } | 194 } |
193 | 195 |
194 if (is_android) { | 196 if (is_android) { |
195 sources -= [ | 197 sources -= [ |
196 "badge_util.cc", | |
197 "channel_info_posix.cc", | 198 "channel_info_posix.cc", |
198 "icon_with_badge_image_source.cc", | |
199 "media_galleries/metadata_types.h", | 199 "media_galleries/metadata_types.h", |
200 ] | 200 ] |
201 } else { | 201 if (!use_aura) { |
| 202 sources -= [ |
| 203 "badge_util.cc", |
| 204 "icon_with_badge_image_source.cc", |
| 205 ] |
| 206 } |
| 207 } |
| 208 if (!is_android || use_aura) { |
202 # Non-Android. | 209 # Non-Android. |
203 sources += | 210 sources += |
204 rebase_path(gypi_values.chrome_common_importer_sources, ".", "//chrome") | 211 rebase_path(gypi_values.chrome_common_importer_sources, ".", "//chrome") |
205 } | 212 } |
206 | 213 |
207 if (is_chromeos) { | 214 if (is_chromeos) { |
208 sources -= [ "channel_info_posix.cc" ] | 215 sources -= [ "channel_info_posix.cc" ] |
209 } | 216 } |
210 | 217 |
211 if (is_win) { | 218 if (is_win) { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 ":constants", | 361 ":constants", |
355 "//base", | 362 "//base", |
356 ] | 363 ] |
357 } | 364 } |
358 | 365 |
359 mojom("mojo_bindings") { | 366 mojom("mojo_bindings") { |
360 sources = [ | 367 sources = [ |
361 "resource_usage_reporter.mojom", | 368 "resource_usage_reporter.mojom", |
362 ] | 369 ] |
363 } | 370 } |
OLD | NEW |