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

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

Issue 2942643002: Break up the chrome/common:common target (Closed)
Patch Set: missing file Created 3 years, 6 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 | « no previous file | chrome/common/cloud_print/BUILD.gn » ('j') | chrome/common/cloud_print/BUILD.gn » ('J')
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("//build/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/util/process_version.gni") 6 import("//build/util/process_version.gni")
7 import("//chrome/common/features.gni") 7 import("//chrome/common/features.gni")
8 import("//chrome/process_version_rc_template.gni") # For branding_file_path. 8 import("//chrome/process_version_rc_template.gni") # For branding_file_path.
9 import("//extensions/features/features.gni") 9 import("//extensions/features/features.gni")
10 import("//mojo/public/tools/bindings/mojom.gni") 10 import("//mojo/public/tools/bindings/mojom.gni")
(...skipping 30 matching lines...) Expand all
41 "ENABLE_PACKAGE_MASH_SERVICES=$enable_package_mash_services", 41 "ENABLE_PACKAGE_MASH_SERVICES=$enable_package_mash_services",
42 "ENABLE_SERVICE_DISCOVERY=$enable_service_discovery", 42 "ENABLE_SERVICE_DISCOVERY=$enable_service_discovery",
43 "ENABLE_SESSION_SERVICE=$enable_session_service", 43 "ENABLE_SESSION_SERVICE=$enable_session_service",
44 "ENABLE_SUPERVISED_USERS=$enable_supervised_users", 44 "ENABLE_SUPERVISED_USERS=$enable_supervised_users",
45 "ENABLE_WAYLAND_SERVER=$enable_wayland_server", 45 "ENABLE_WAYLAND_SERVER=$enable_wayland_server",
46 "PGO_BUILD=$pgo_build", 46 "PGO_BUILD=$pgo_build",
47 "USE_VULCANIZE=$use_vulcanize", 47 "USE_VULCANIZE=$use_vulcanize",
48 ] 48 ]
49 } 49 }
50 50
51 # Use a static library here because many test binaries depend on this but don't 51 source_set("channel_info") {
52 # require many files from it. This makes linking more efficient.
53 static_library("common") {
54 sources = [ 52 sources = [
55 "all_messages.h",
56 "attrition_experiments.h",
57 "auto_start_linux.cc",
58 "auto_start_linux.h",
59 "channel_info.cc", 53 "channel_info.cc",
60 "channel_info.h", 54 "channel_info.h",
61 "channel_info_android.cc", 55 "channel_info_android.cc",
62 "channel_info_chromeos.cc", 56 "channel_info_chromeos.cc",
63 "channel_info_mac.mm", 57 "channel_info_mac.mm",
64 "channel_info_posix.cc", 58 "channel_info_posix.cc",
65 "channel_info_win.cc", 59 "channel_info_win.cc",
60 ]
61
62 # DO NOT SUBMIT. Preexisting logic. Validate substractive approach.
agrieve 2017/06/15 13:52:00 Maybe address this DO NOT SUBMIT if the change is
manzagop (departed) 2017/06/15 14:54:59 Yup! I meant to ask if there's any reason for the
63 if (is_android || is_chromeos || is_mac) {
64 sources -= [ "channel_info_posix.cc" ]
agrieve 2017/06/15 13:52:00 Rather than adding and then removing channel_info_
manzagop (departed) 2017/06/15 14:54:59 Totally! Done.
65 }
66 public_deps = [
67 "//base",
68 "//components/version_info",
69 "//components/version_info:version_string",
70 ]
71 if (is_win) {
72 public_deps += [ "//chrome/install_static:install_static_util" ]
73 }
74 }
75
76 # Use a static library here because many test binaries depend on this but don't
77 # require many files from it. This makes linking more efficient.
78 static_library("common") {
79 sources = [
80 "all_messages.h",
81 "attrition_experiments.h",
82 "auto_start_linux.cc",
83 "auto_start_linux.h",
66 "child_process_logging.h", 84 "child_process_logging.h",
67 "child_process_logging_win.cc", 85 "child_process_logging_win.cc",
68 "chrome_content_client.cc", 86 "chrome_content_client.cc",
69 "chrome_content_client.h", 87 "chrome_content_client.h",
70 "chrome_content_client_constants.cc", 88 "chrome_content_client_constants.cc",
71 "chrome_isolated_world_ids.h", 89 "chrome_isolated_world_ids.h",
72 "chrome_result_codes.h", 90 "chrome_result_codes.h",
73 "chrome_utility_messages.h", 91 "chrome_utility_messages.h",
74 "common_message_generator.cc", 92 "common_message_generator.cc",
75 "common_message_generator.h", 93 "common_message_generator.h",
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 "web_application_info.h", 177 "web_application_info.h",
160 ] 178 ]
161 defines = [] 179 defines = []
162 180
163 configs += [ 181 configs += [
164 "//build/config:precompiled_headers", 182 "//build/config:precompiled_headers",
165 "//build/config/compiler:wexit_time_destructors", 183 "//build/config/compiler:wexit_time_destructors",
166 ] 184 ]
167 185
168 public_deps = [ 186 public_deps = [
187 ":channel_info",
169 ":features", 188 ":features",
170 ":mojo_bindings", 189 ":mojo_bindings",
171 ":page_load_metrics_mojom", 190 ":page_load_metrics_mojom",
172 "//base:base", 191 "//base:base",
173 "//base:base_static", 192 "//base:base_static",
174 "//base:i18n", 193 "//base:i18n",
175 "//chrome:resources", 194 "//chrome:resources",
176 "//chrome:strings", 195 "//chrome:strings",
177 "//chrome/app/theme:theme_resources", 196 "//chrome/app/theme:theme_resources",
178 "//chrome/common:constants", 197 "//chrome/common:constants",
(...skipping 28 matching lines...) Expand all
207 "//components/policy:generated", 226 "//components/policy:generated",
208 "//components/policy/core/common", 227 "//components/policy/core/common",
209 "//components/prefs", 228 "//components/prefs",
210 "//components/safe_browsing:csd_proto", 229 "//components/safe_browsing:csd_proto",
211 "//components/signin/core/common", 230 "//components/signin/core/common",
212 "//components/strings", 231 "//components/strings",
213 "//components/translate/content/common", 232 "//components/translate/content/common",
214 "//components/translate/core/common", 233 "//components/translate/core/common",
215 "//components/url_formatter", 234 "//components/url_formatter",
216 "//components/variations", 235 "//components/variations",
217 "//components/version_info",
218 "//components/version_info:version_string",
219 "//components/visitedlink/common", 236 "//components/visitedlink/common",
220 "//content/public/common", 237 "//content/public/common",
221 "//crypto", 238 "//crypto",
222 "//extensions/common:common_constants", 239 "//extensions/common:common_constants",
223 "//extensions/features", 240 "//extensions/features",
224 "//google_apis", 241 "//google_apis",
225 "//gpu/command_buffer/service", 242 "//gpu/command_buffer/service",
226 "//gpu/config", 243 "//gpu/config",
227 "//gpu/config:crash_keys", 244 "//gpu/config:crash_keys",
228 "//ipc", 245 "//ipc",
229 "//media", 246 "//media",
230 "//mojo/edk/system", 247 "//mojo/edk/system",
231 "//mojo/public/cpp/bindings", 248 "//mojo/public/cpp/bindings",
232 "//net",
233 "//pdf:features", 249 "//pdf:features",
234 "//ppapi/features", 250 "//ppapi/features",
235 "//printing/features", 251 "//printing/features",
236 "//skia", 252 "//skia",
237 "//third_party/icu", 253 "//third_party/icu",
238 "//third_party/re2", 254 "//third_party/re2",
239 "//third_party/widevine/cdm:headers", 255 "//third_party/widevine/cdm:headers",
240 "//third_party/zlib/google:zip", 256 "//third_party/zlib/google:zip",
241 "//ui/accessibility", 257 "//ui/accessibility",
242 "//ui/base", 258 "//ui/base",
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 if (is_chromeos) { 388 if (is_chromeos) {
373 public_deps += [ "//chromeos" ] 389 public_deps += [ "//chromeos" ]
374 } 390 }
375 391
376 if (enable_nacl) { 392 if (enable_nacl) {
377 public_deps += [ "//components/nacl/common" ] 393 public_deps += [ "//components/nacl/common" ]
378 } 394 }
379 395
380 # Printing. 396 # Printing.
381 if (enable_basic_printing || enable_print_preview) { 397 if (enable_basic_printing || enable_print_preview) {
382 sources += [ 398 sources += [ "chrome_utility_printing_messages.h" ]
383 "chrome_utility_printing_messages.h",
384 "cloud_print/cloud_print_cdd_conversion.cc",
385 "cloud_print/cloud_print_cdd_conversion.h",
386 "cloud_print/cloud_print_class_mac.h",
387 "cloud_print/cloud_print_class_mac.mm",
388 "cloud_print/cloud_print_constants.cc",
389 "cloud_print/cloud_print_constants.h",
390 "cloud_print/cloud_print_helpers.cc",
391 "cloud_print/cloud_print_helpers.h",
392 "cloud_print/cloud_print_proxy_info.cc",
393 "cloud_print/cloud_print_proxy_info.h",
394 ]
395 399
396 public_deps += [ 400 public_deps += [
401 "//chrome/common/cloud_print",
397 "//components/printing/common", 402 "//components/printing/common",
398 "//printing", 403 "//printing",
399 ] 404 ]
400 if (enable_print_preview) { 405 if (enable_print_preview) {
401 # Full printing support. 406 # Full printing support.
402 sources += [ 407 sources += [
403 "service_messages.h", 408 "service_messages.h",
404 "service_process_util.cc", 409 "service_process_util.cc",
405 "service_process_util.h", 410 "service_process_util.h",
406 "service_process_util_linux.cc", 411 "service_process_util_linux.cc",
407 "service_process_util_mac.mm", 412 "service_process_util_mac.mm",
408 "service_process_util_posix.cc", 413 "service_process_util_posix.cc",
409 "service_process_util_posix.h", 414 "service_process_util_posix.h",
410 "service_process_util_win.cc", 415 "service_process_util_win.cc",
411 ] 416 ]
412 } 417 }
413 } 418 }
414 419
415 if (is_android) { 420 if (is_android) {
416 sources -= [ 421 sources -= [ "media_galleries/metadata_types.h" ]
417 "channel_info_posix.cc",
418 "media_galleries/metadata_types.h",
419 ]
420 sources += [ 422 sources += [
421 "media/chrome_media_drm_bridge_client.cc", 423 "media/chrome_media_drm_bridge_client.cc",
422 "media/chrome_media_drm_bridge_client.h", 424 "media/chrome_media_drm_bridge_client.h",
423 ] 425 ]
424 } else { 426 } else {
425 # Non-Android. 427 # Non-Android.
426 sources += [ 428 sources += [
427 "importer/edge_importer_utils_win.cc", 429 "importer/edge_importer_utils_win.cc",
428 "importer/edge_importer_utils_win.h", 430 "importer/edge_importer_utils_win.h",
429 "importer/firefox_importer_utils.cc", 431 "importer/firefox_importer_utils.cc",
(...skipping 18 matching lines...) Expand all
448 "importer/importer_url_row.h", 450 "importer/importer_url_row.h",
449 "importer/profile_import_process_param_traits.cc", 451 "importer/profile_import_process_param_traits.cc",
450 "importer/profile_import_process_param_traits.h", 452 "importer/profile_import_process_param_traits.h",
451 "importer/profile_import_process_param_traits_macros.h", 453 "importer/profile_import_process_param_traits_macros.h",
452 "importer/pstore_declarations.h", 454 "importer/pstore_declarations.h",
453 "importer/safari_importer_utils.h", 455 "importer/safari_importer_utils.h",
454 "importer/safari_importer_utils.mm", 456 "importer/safari_importer_utils.mm",
455 ] 457 ]
456 } 458 }
457 459
458 if (is_chromeos) {
459 sources -= [ "channel_info_posix.cc" ]
460 }
461
462 if (is_win) { 460 if (is_win) {
463 public_deps += [ 461 public_deps += [
464 "//chrome/install_static:install_static_util",
agrieve 2017/06/15 13:52:00 Do you know what this might have been for?
manzagop (departed) 2017/06/15 14:54:59 Hm. channel_info_win.cc uses it so I'd moved it a
agrieve 2017/06/15 15:06:17 Ah, just missed that it was added above. Unless y
465 "//components/dom_distiller/core", # Needed by chrome_content_client.cc. 462 "//components/dom_distiller/core", # Needed by chrome_content_client.cc.
466 "//third_party/wtl", 463 "//third_party/wtl",
467 ] 464 ]
468 465
469 libs = [ "wintrust.lib" ] 466 libs = [ "wintrust.lib" ]
470 } 467 }
471 468
472 if (is_mac) { 469 if (is_mac) {
473 sources -= [ "channel_info_posix.cc" ]
474 public_deps += [ 470 public_deps += [
475 "//third_party/google_toolbox_for_mac", 471 "//third_party/google_toolbox_for_mac",
476 "//third_party/mach_override", 472 "//third_party/mach_override",
477 ] 473 ]
478 } 474 }
479 475
480 if (enable_plugins) { 476 if (enable_plugins) {
481 sources += [ 477 sources += [
482 "pepper_flash.cc", 478 "pepper_flash.cc",
483 "pepper_flash.h", 479 "pepper_flash.h",
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 766
771 mojom("page_load_metrics_mojom") { 767 mojom("page_load_metrics_mojom") {
772 sources = [ 768 sources = [
773 "page_load_metrics/page_load_metrics.mojom", 769 "page_load_metrics/page_load_metrics.mojom",
774 ] 770 ]
775 771
776 public_deps = [ 772 public_deps = [
777 "//mojo/common:common_custom_types", 773 "//mojo/common:common_custom_types",
778 ] 774 ]
779 } 775 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/cloud_print/BUILD.gn » ('j') | chrome/common/cloud_print/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698