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

Side by Side Diff: chrome/common/BUILD.gn

Issue 1406053002: Make chrome/common pass "gn check" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 2 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 | « chrome/chrome_common.gypi ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 29 matching lines...) Expand all
40 static_library("common") { 40 static_library("common") {
41 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome") 41 sources = rebase_path(gypi_values.chrome_common_sources, ".", "//chrome")
42 defines = [] 42 defines = []
43 43
44 configs += [ 44 configs += [
45 "//build/config:precompiled_headers", 45 "//build/config:precompiled_headers",
46 "//build/config/compiler:wexit_time_destructors", 46 "//build/config/compiler:wexit_time_destructors",
47 ] 47 ]
48 48
49 public_deps = [ 49 public_deps = [
50 "//chrome/common:constants",
51 "//chrome/common/safe_browsing:proto",
52 ]
53 deps = [
54 "//base:base", 50 "//base:base",
55 "//base:i18n", 51 "//base:i18n",
56 "//base:prefs", 52 "//base:prefs",
57 "//base:base_static", 53 "//base:base_static",
58 "//chrome:resources", 54 "//chrome:resources",
59 "//chrome:strings", 55 "//chrome:strings",
60 "//chrome/app/theme:theme_resources", 56 "//chrome/app/theme:theme_resources",
57 "//chrome/common:constants",
58 "//chrome/common/safe_browsing:proto",
61 "//chrome/common/variations:fieldtrial_testing_config", 59 "//chrome/common/variations:fieldtrial_testing_config",
62 "//chrome/installer/util", 60 "//chrome/installer/util",
63 "//components/cloud_devices/common", 61 "//components/cloud_devices/common",
64 "//components/component_updater", 62 "//components/component_updater",
65 "//components/content_settings/core/common", 63 "//components/content_settings/core/common",
66 "//components/crash/core/common", 64 "//components/crash/core/common",
65 "//components/data_reduction_proxy/content/common",
66 "//components/dom_distiller/core",
67 "//components/error_page/common",
67 "//components/favicon_base", 68 "//components/favicon_base",
68 "//components/gcm_driver/common", 69 "//components/gcm_driver/common",
69 "//components/json_schema", 70 "//components/json_schema",
70 "//components/metrics", 71 "//components/metrics",
71 "//components/metrics:net", 72 "//components/metrics:net",
72 "//components/omnibox/common", 73 "//components/omnibox/common",
73 "//components/policy:policy_component_common", 74 "//components/policy:policy_component_common",
74 "//components/strings", 75 "//components/strings",
75 "//components/translate/core/common", 76 "//components/translate/core/common",
76 "//components/url_formatter", 77 "//components/url_formatter",
77 "//components/variations", 78 "//components/variations",
78 "//components/version_info", 79 "//components/version_info",
79 "//content/public/common", 80 "//content/public/common",
80 "//crypto", 81 "//crypto",
81 "//extensions/common:common_constants", 82 "//extensions/common:common_constants",
83 "//gin",
84 "//google_apis",
85 "//gpu/command_buffer/service",
86 "//gpu/config",
82 "//net", 87 "//net",
88 "//ppapi/shared_impl",
83 "//skia", 89 "//skia",
84 "//third_party/icu", 90 "//third_party/icu",
85 "//third_party/zlib:zip", 91 "//third_party/zlib:zip",
92 "//ui/accessibility",
93 "//ui/base",
94 "//ui/gfx/ipc",
95 "//ui/gl",
96 "//ui/message_center",
86 "//ui/resources:resources", 97 "//ui/resources:resources",
87 "//url", 98 "//url",
88 ] 99 ]
89 100
90 if (is_ios) { 101 if (is_ios) {
91 sources += [ 102 sources += [
92 # Use this Mac file that was filtered out. 103 # Use this Mac file that was filtered out.
93 "channel_info_mac.mm", 104 "channel_info_mac.mm",
94 ] 105 ]
95 sources -= [ 106 sources -= [
96 "resource_usage_reporter_type_converters.cc", 107 "resource_usage_reporter_type_converters.cc",
97 "resource_usage_reporter_type_converters.h", 108 "resource_usage_reporter_type_converters.h",
98 ] 109 ]
99 } else { 110 } else {
100 # Non-iOS. 111 # Non-iOS.
101 deps += [ 112 public_deps += [
102 ":mojo_bindings", 113 ":mojo_bindings",
114 "//chrome/common/net",
103 "//components/visitedlink/common", 115 "//components/visitedlink/common",
104 "//components/autofill/content/common", 116 "//components/autofill/content/common",
105 "//components/autofill/core/common", 117 "//components/autofill/core/common",
106 "//components/password_manager/content/common", 118 "//components/password_manager/content/common",
107 "//components/password_manager/core/common", 119 "//components/password_manager/core/common",
108 "//components/signin/core/common", 120 "//components/signin/core/common",
109 "//components/translate/content/common", 121 "//components/translate/content/common",
110 "//media", 122 "//media",
111 "//ipc", 123 "//ipc",
112 "//third_party/re2", 124 "//third_party/re2",
125 "//third_party/mojo/src/mojo/public/cpp/bindings",
113 "//third_party/widevine/cdm:version_h", 126 "//third_party/widevine/cdm:version_h",
114 ] 127 ]
115 public_deps += [
116 "//chrome/common/net",
117 "//third_party/mojo/src/mojo/public/cpp/bindings",
118 ]
119 } 128 }
120 129
121 if (enable_extensions) { 130 if (enable_extensions) {
122 sources += rebase_path(gypi_values.chrome_common_extensions_sources, 131 sources += rebase_path(gypi_values.chrome_common_extensions_sources,
123 ".", 132 ".",
124 "//chrome") 133 "//chrome")
125 deps += [ 134 public_deps += [
126 "//device/usb", 135 "//device/usb",
127 "//chrome/common/extensions/api", 136 "//chrome/common/extensions/api",
128 "//extensions/common", 137 "//extensions/common",
129 "//extensions/common/api", 138 "//extensions/common/api",
130 "//extensions:extensions_resources", 139 "//extensions:extensions_resources",
131 "//extensions/strings", 140 "//extensions/strings",
132 "//media/cast:net", 141 "//media/cast:net",
142
143 # This dependency is for a header used only by extensions code.
144 "//ui/keyboard:keyboard_with_content",
133 ] 145 ]
134 if (is_chromeos) { 146 if (is_chromeos) {
135 sources += 147 sources +=
136 rebase_path(gypi_values.chrome_common_extensions_chromeos_sources, 148 rebase_path(gypi_values.chrome_common_extensions_chromeos_sources,
137 ".", 149 ".",
138 "//chrome") 150 "//chrome")
139 } 151 }
140 } 152 }
141 153
142 if (is_win || is_mac) { 154 if (is_win || is_mac) {
143 sources += 155 sources +=
144 rebase_path(gypi_values.chrome_common_win_mac_sources, ".", "//chrome") 156 rebase_path(gypi_values.chrome_common_win_mac_sources, ".", "//chrome")
145 deps += [ "//breakpad:client" ] 157 public_deps += [ "//breakpad:client" ]
146 } 158 }
147 if (is_win || is_mac || is_chromeos) { 159 if (is_win || is_mac || is_chromeos) {
148 sources += rebase_path(gypi_values.chrome_common_networking_private_sources, 160 sources += rebase_path(gypi_values.chrome_common_networking_private_sources,
149 ".", 161 ".",
150 "//chrome") 162 "//chrome")
151 163
152 # networking_private_crypto.cc depends on boringssl. 164 # networking_private_crypto.cc depends on boringssl.
153 deps += [ "//third_party/boringssl" ] 165 public_deps += [ "//third_party/boringssl" ]
154 } 166 }
155 if (is_mac) { 167 if (is_mac) {
156 sources += 168 sources +=
157 rebase_path(gypi_values.chrome_common_mac_sources, ".", "//chrome") 169 rebase_path(gypi_values.chrome_common_mac_sources, ".", "//chrome")
158 deps += [ ":app_mode_app_support" ] 170 public_deps += [ ":app_mode_app_support" ]
171 }
172 if (is_chromeos) {
173 public_deps += [ "//chromeos" ]
159 } 174 }
160 175
161 if (enable_nacl) { 176 if (enable_nacl) {
162 deps += [ "//components/nacl:nacl_common" ] 177 public_deps += [ "//components/nacl:nacl_common" ]
163 } 178 }
164 179
165 # Printing. 180 # Printing.
166 if (enable_basic_printing || enable_print_preview) { 181 if (enable_basic_printing || enable_print_preview) {
167 deps += [ 182 public_deps += [
168 "//components/printing/common", 183 "//components/printing/common",
169 "//printing", 184 "//printing",
170 ] 185 ]
171 if (enable_print_preview) { 186 if (enable_print_preview) {
172 # Full printing support. 187 # Full printing support.
173 sources += rebase_path(gypi_values.chrome_common_service_process_sources, 188 sources += rebase_path(gypi_values.chrome_common_service_process_sources,
174 ".", 189 ".",
175 "//chrome") 190 "//chrome")
176 } 191 }
177 } 192 }
(...skipping 22 matching lines...) Expand all
200 # Non-Android. 215 # Non-Android.
201 sources += 216 sources +=
202 rebase_path(gypi_values.chrome_common_importer_sources, ".", "//chrome") 217 rebase_path(gypi_values.chrome_common_importer_sources, ".", "//chrome")
203 } 218 }
204 219
205 if (is_chromeos) { 220 if (is_chromeos) {
206 sources -= [ "channel_info_posix.cc" ] 221 sources -= [ "channel_info_posix.cc" ]
207 } 222 }
208 223
209 if (is_win) { 224 if (is_win) {
210 deps += [ 225 public_deps += [
211 "//components/dom_distiller/core", # Needed by chrome_content_client.cc. 226 "//components/dom_distiller/core", # Needed by chrome_content_client.cc.
212 "//third_party/wtl", 227 "//third_party/wtl",
213 ] 228 ]
214 } 229 }
215 230
216 if (enable_mdns) { 231 if (enable_mdns) {
217 sources += [ "local_discovery/local_discovery_messages.h" ] 232 sources += [ "local_discovery/local_discovery_messages.h" ]
218 } 233 }
219 234
220 if (is_mac) { 235 if (is_mac) {
221 sources -= [ "channel_info_posix.cc" ] 236 sources -= [ "channel_info_posix.cc" ]
222 deps += [ 237 public_deps += [
223 "//third_party/mach_override", 238 "//third_party/mach_override",
224 "//third_party/google_toolbox_for_mac", 239 "//third_party/google_toolbox_for_mac",
225 ] 240 ]
226 } 241 }
227 242
228 if (enable_plugins) { 243 if (enable_plugins) {
229 sources += [ 244 sources += [
230 "pepper_flash.cc", 245 "pepper_flash.cc",
231 "pepper_flash.h", 246 "pepper_flash.h",
232 "ppapi_utils.cc", 247 "ppapi_utils.cc",
233 "ppapi_utils.h", 248 "ppapi_utils.h",
234 ] 249 ]
235 deps += [ "//third_party/adobe/flash:flapper_version_h" ] 250 public_deps += [ "//third_party/adobe/flash:flapper_version_h" ]
236 } 251 }
237 if (enable_plugins && enable_extensions) { 252 if (enable_plugins && enable_extensions) {
238 sources += [ 253 sources += [
239 "pepper_permission_util.cc", 254 "pepper_permission_util.cc",
240 "pepper_permission_util.h", 255 "pepper_permission_util.h",
241 ] 256 ]
242 } 257 }
243 if (!enable_webrtc) { 258 if (!enable_webrtc) {
244 sources -= [ "media/webrtc_logging_messages.h" ] 259 sources -= [ "media/webrtc_logging_messages.h" ]
245 } 260 }
246 if (enable_configuration_policy) { 261 if (enable_configuration_policy) {
247 deps += [ "//components/policy" ] 262 public_deps += [ "//components/policy" ]
248 } 263 }
249 264
250 if (safe_browsing_mode == 1) { 265 if (safe_browsing_mode == 1) {
251 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, 266 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources,
252 ".", 267 ".",
253 "//chrome") 268 "//chrome")
254 } 269 }
255 } 270 }
256 271
257 process_version("make_chrome_version") { 272 process_version("make_chrome_version") {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 ":constants", 373 ":constants",
359 "//base", 374 "//base",
360 ] 375 ]
361 } 376 }
362 377
363 mojom("mojo_bindings") { 378 mojom("mojo_bindings") {
364 sources = [ 379 sources = [
365 "resource_usage_reporter.mojom", 380 "resource_usage_reporter.mojom",
366 ] 381 ]
367 } 382 }
OLDNEW
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698