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

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

Issue 2942643002: Break up the chrome/common:common target (Closed)
Patch Set: Remove obsolete owners from chrome/common/cloud_print 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') | 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("//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 source_set("channel_info") {
52 sources = [
53 "channel_info.cc",
54 "channel_info.h",
55 "channel_info_android.cc",
56 "channel_info_chromeos.cc",
57 "channel_info_mac.mm",
58 "channel_info_win.cc",
59 ]
60
61 if (!is_android && !is_chromeos && !is_mac) {
62 sources += [ "channel_info_posix.cc" ]
63 }
64 public_deps = [
65 "//base",
66 "//components/version_info",
67 "//components/version_info:version_string",
68 ]
69 if (is_win) {
70 public_deps += [ "//chrome/install_static:install_static_util" ]
71 }
72 }
73
51 # Use a static library here because many test binaries depend on this but don't 74 # Use a static library here because many test binaries depend on this but don't
52 # require many files from it. This makes linking more efficient. 75 # require many files from it. This makes linking more efficient.
53 static_library("common") { 76 static_library("common") {
54 sources = [ 77 sources = [
55 "all_messages.h", 78 "all_messages.h",
56 "attrition_experiments.h", 79 "attrition_experiments.h",
57 "auto_start_linux.cc", 80 "auto_start_linux.cc",
58 "auto_start_linux.h", 81 "auto_start_linux.h",
59 "channel_info.cc",
60 "channel_info.h",
61 "channel_info_android.cc",
62 "channel_info_chromeos.cc",
63 "channel_info_mac.mm",
64 "channel_info_posix.cc",
65 "channel_info_win.cc",
66 "child_process_logging.h", 82 "child_process_logging.h",
67 "child_process_logging_win.cc", 83 "child_process_logging_win.cc",
68 "chrome_content_client.cc", 84 "chrome_content_client.cc",
69 "chrome_content_client.h", 85 "chrome_content_client.h",
70 "chrome_content_client_constants.cc", 86 "chrome_content_client_constants.cc",
71 "chrome_isolated_world_ids.h", 87 "chrome_isolated_world_ids.h",
72 "chrome_result_codes.h", 88 "chrome_result_codes.h",
73 "chrome_utility_messages.h", 89 "chrome_utility_messages.h",
74 "common_message_generator.cc", 90 "common_message_generator.cc",
75 "common_message_generator.h", 91 "common_message_generator.h",
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 "web_application_info.h", 175 "web_application_info.h",
160 ] 176 ]
161 defines = [] 177 defines = []
162 178
163 configs += [ 179 configs += [
164 "//build/config:precompiled_headers", 180 "//build/config:precompiled_headers",
165 "//build/config/compiler:wexit_time_destructors", 181 "//build/config/compiler:wexit_time_destructors",
166 ] 182 ]
167 183
168 public_deps = [ 184 public_deps = [
185 ":channel_info",
169 ":features", 186 ":features",
170 ":mojo_bindings", 187 ":mojo_bindings",
171 ":page_load_metrics_mojom", 188 ":page_load_metrics_mojom",
172 "//base:base", 189 "//base:base",
173 "//base:base_static", 190 "//base:base_static",
174 "//base:i18n", 191 "//base:i18n",
175 "//chrome:resources", 192 "//chrome:resources",
176 "//chrome:strings", 193 "//chrome:strings",
177 "//chrome/app/theme:theme_resources", 194 "//chrome/app/theme:theme_resources",
178 "//chrome/common:constants", 195 "//chrome/common:constants",
(...skipping 28 matching lines...) Expand all
207 "//components/policy:generated", 224 "//components/policy:generated",
208 "//components/policy/core/common", 225 "//components/policy/core/common",
209 "//components/prefs", 226 "//components/prefs",
210 "//components/safe_browsing:csd_proto", 227 "//components/safe_browsing:csd_proto",
211 "//components/signin/core/common", 228 "//components/signin/core/common",
212 "//components/strings", 229 "//components/strings",
213 "//components/translate/content/common", 230 "//components/translate/content/common",
214 "//components/translate/core/common", 231 "//components/translate/core/common",
215 "//components/url_formatter", 232 "//components/url_formatter",
216 "//components/variations", 233 "//components/variations",
217 "//components/version_info",
218 "//components/version_info:version_string",
219 "//components/visitedlink/common", 234 "//components/visitedlink/common",
220 "//content/public/common", 235 "//content/public/common",
221 "//crypto", 236 "//crypto",
222 "//extensions/common:common_constants", 237 "//extensions/common:common_constants",
223 "//extensions/features", 238 "//extensions/features",
224 "//google_apis", 239 "//google_apis",
225 "//gpu/command_buffer/service", 240 "//gpu/command_buffer/service",
226 "//gpu/config", 241 "//gpu/config",
227 "//gpu/config:crash_keys", 242 "//gpu/config:crash_keys",
228 "//ipc", 243 "//ipc",
229 "//media", 244 "//media",
230 "//mojo/edk/system", 245 "//mojo/edk/system",
231 "//mojo/public/cpp/bindings", 246 "//mojo/public/cpp/bindings",
232 "//net",
233 "//pdf:features", 247 "//pdf:features",
234 "//ppapi/features", 248 "//ppapi/features",
235 "//printing/features", 249 "//printing/features",
236 "//skia", 250 "//skia",
237 "//third_party/icu", 251 "//third_party/icu",
238 "//third_party/re2", 252 "//third_party/re2",
239 "//third_party/widevine/cdm:headers", 253 "//third_party/widevine/cdm:headers",
240 "//third_party/zlib/google:zip", 254 "//third_party/zlib/google:zip",
241 "//ui/accessibility", 255 "//ui/accessibility",
242 "//ui/base", 256 "//ui/base",
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 if (is_chromeos) { 386 if (is_chromeos) {
373 public_deps += [ "//chromeos" ] 387 public_deps += [ "//chromeos" ]
374 } 388 }
375 389
376 if (enable_nacl) { 390 if (enable_nacl) {
377 public_deps += [ "//components/nacl/common" ] 391 public_deps += [ "//components/nacl/common" ]
378 } 392 }
379 393
380 # Printing. 394 # Printing.
381 if (enable_basic_printing || enable_print_preview) { 395 if (enable_basic_printing || enable_print_preview) {
382 sources += [ 396 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 397
396 public_deps += [ 398 public_deps += [
399 "//chrome/common/cloud_print",
397 "//components/printing/common", 400 "//components/printing/common",
398 "//printing", 401 "//printing",
399 ] 402 ]
400 if (enable_print_preview) { 403 if (enable_print_preview) {
401 # Full printing support. 404 # Full printing support.
402 sources += [ 405 sources += [
403 "service_messages.h", 406 "service_messages.h",
404 "service_process_util.cc", 407 "service_process_util.cc",
405 "service_process_util.h", 408 "service_process_util.h",
406 "service_process_util_linux.cc", 409 "service_process_util_linux.cc",
407 "service_process_util_mac.mm", 410 "service_process_util_mac.mm",
408 "service_process_util_posix.cc", 411 "service_process_util_posix.cc",
409 "service_process_util_posix.h", 412 "service_process_util_posix.h",
410 "service_process_util_win.cc", 413 "service_process_util_win.cc",
411 ] 414 ]
412 } 415 }
413 } 416 }
414 417
415 if (is_android) { 418 if (is_android) {
416 sources -= [ 419 sources -= [ "media_galleries/metadata_types.h" ]
417 "channel_info_posix.cc",
418 "media_galleries/metadata_types.h",
419 ]
420 sources += [ 420 sources += [
421 "media/chrome_media_drm_bridge_client.cc", 421 "media/chrome_media_drm_bridge_client.cc",
422 "media/chrome_media_drm_bridge_client.h", 422 "media/chrome_media_drm_bridge_client.h",
423 ] 423 ]
424 } else { 424 } else {
425 # Non-Android. 425 # Non-Android.
426 sources += [ 426 sources += [
427 "importer/edge_importer_utils_win.cc", 427 "importer/edge_importer_utils_win.cc",
428 "importer/edge_importer_utils_win.h", 428 "importer/edge_importer_utils_win.h",
429 "importer/firefox_importer_utils.cc", 429 "importer/firefox_importer_utils.cc",
(...skipping 18 matching lines...) Expand all
448 "importer/importer_url_row.h", 448 "importer/importer_url_row.h",
449 "importer/profile_import_process_param_traits.cc", 449 "importer/profile_import_process_param_traits.cc",
450 "importer/profile_import_process_param_traits.h", 450 "importer/profile_import_process_param_traits.h",
451 "importer/profile_import_process_param_traits_macros.h", 451 "importer/profile_import_process_param_traits_macros.h",
452 "importer/pstore_declarations.h", 452 "importer/pstore_declarations.h",
453 "importer/safari_importer_utils.h", 453 "importer/safari_importer_utils.h",
454 "importer/safari_importer_utils.mm", 454 "importer/safari_importer_utils.mm",
455 ] 455 ]
456 } 456 }
457 457
458 if (is_chromeos) {
459 sources -= [ "channel_info_posix.cc" ]
460 }
461
462 if (is_win) { 458 if (is_win) {
463 public_deps += [ 459 public_deps += [
464 "//chrome/install_static:install_static_util",
465 "//components/dom_distiller/core", # Needed by chrome_content_client.cc. 460 "//components/dom_distiller/core", # Needed by chrome_content_client.cc.
466 "//third_party/wtl", 461 "//third_party/wtl",
467 ] 462 ]
468 463
469 libs = [ "wintrust.lib" ] 464 libs = [ "wintrust.lib" ]
470 } 465 }
471 466
472 if (is_mac) { 467 if (is_mac) {
473 sources -= [ "channel_info_posix.cc" ]
474 public_deps += [ 468 public_deps += [
475 "//third_party/google_toolbox_for_mac", 469 "//third_party/google_toolbox_for_mac",
476 "//third_party/mach_override", 470 "//third_party/mach_override",
477 ] 471 ]
478 } 472 }
479 473
480 if (enable_plugins) { 474 if (enable_plugins) {
481 sources += [ 475 sources += [
482 "pepper_flash.cc", 476 "pepper_flash.cc",
483 "pepper_flash.h", 477 "pepper_flash.h",
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 764
771 mojom("page_load_metrics_mojom") { 765 mojom("page_load_metrics_mojom") {
772 sources = [ 766 sources = [
773 "page_load_metrics/page_load_metrics.mojom", 767 "page_load_metrics/page_load_metrics.mojom",
774 ] 768 ]
775 769
776 public_deps = [ 770 public_deps = [
777 "//mojo/common:common_custom_types", 771 "//mojo/common:common_custom_types",
778 ] 772 ]
779 } 773 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/cloud_print/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698