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 | 7 |
7 gypi_values = exec_script("//build/gypi_to_gn.py", | 8 gypi_values = exec_script("//build/gypi_to_gn.py", |
8 [ rebase_path("../chrome_common.gypi") ], | 9 [ rebase_path("../chrome_common.gypi") ], |
9 "scope", | 10 "scope", |
10 [ "../chrome_common.gypi" ]) | 11 [ "../chrome_common.gypi" ]) |
11 | 12 |
12 # GYP version: chrome/chrome_resources.gyp:chrome_resources | 13 # GYP version: chrome/chrome_resources.gyp:chrome_resources |
13 # (generate_common_resources action) | 14 # (generate_common_resources action) |
14 grit("resources") { | 15 grit("resources") { |
15 source = "common_resources.grd" | 16 source = "common_resources.grd" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 ] | 78 ] |
78 | 79 |
79 if (is_ios) { | 80 if (is_ios) { |
80 sources += [ | 81 sources += [ |
81 # Use this Mac file that was filtered out. | 82 # Use this Mac file that was filtered out. |
82 "chrome_version_info_mac.mm", | 83 "chrome_version_info_mac.mm", |
83 ] | 84 ] |
84 } else { | 85 } else { |
85 # Non-iOS. | 86 # Non-iOS. |
86 deps += [ | 87 deps += [ |
| 88 ":mojo_bindings", |
87 "//components/visitedlink/common", | 89 "//components/visitedlink/common", |
88 "//components/autofill/content/common", | 90 "//components/autofill/content/common", |
89 "//components/autofill/core/common", | 91 "//components/autofill/core/common", |
90 "//components/password_manager/content/common", | 92 "//components/password_manager/content/common", |
91 "//components/password_manager/core/common", | 93 "//components/password_manager/core/common", |
92 "//components/signin/core/common", | 94 "//components/signin/core/common", |
93 "//components/translate/content/common", | 95 "//components/translate/content/common", |
94 "//ipc", | 96 "//ipc", |
95 "//third_party/re2", | 97 "//third_party/re2", |
96 "//third_party/widevine/cdm:version_h", | 98 "//third_party/widevine/cdm:version_h", |
97 ] | 99 ] |
| 100 public_deps = [ |
| 101 "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 102 ] |
98 } | 103 } |
99 | 104 |
100 if (enable_extensions) { | 105 if (enable_extensions) { |
101 sources += rebase_path(gypi_values.chrome_common_extensions_sources, | 106 sources += rebase_path(gypi_values.chrome_common_extensions_sources, |
102 ".", | 107 ".", |
103 "//chrome") | 108 "//chrome") |
104 deps += [ | 109 deps += [ |
105 "//device/usb", | 110 "//device/usb", |
106 "//chrome/common/extensions/api", | 111 "//chrome/common/extensions/api", |
107 "//extensions/common", | 112 "//extensions/common", |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 "mac/app_mode_chrome_locator.mm", | 338 "mac/app_mode_chrome_locator.mm", |
334 "mac/app_mode_common.h", | 339 "mac/app_mode_common.h", |
335 "mac/app_mode_common.mm", | 340 "mac/app_mode_common.mm", |
336 ] | 341 ] |
337 | 342 |
338 deps = [ | 343 deps = [ |
339 ":constants", | 344 ":constants", |
340 "//base", | 345 "//base", |
341 ] | 346 ] |
342 } | 347 } |
| 348 |
| 349 mojom("mojo_bindings") { |
| 350 sources = [ |
| 351 "resource_usage_reporter.mojom", |
| 352 ] |
| 353 } |
OLD | NEW |