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

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

Issue 489223002: Add chrome, installer_util targets to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//components/nacl/nacl_defines.gni") 8 import("//components/nacl/nacl_defines.gni")
9 import("//tools/grit/grit_rule.gni") 9 import("//tools/grit/grit_rule.gni")
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 # # chrome/browser/metrics/variations/generate_resources_map.py 131 # # chrome/browser/metrics/variations/generate_resources_map.py
132 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/gener ated_resources_map.cc', 132 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/gener ated_resources_map.cc',
133 133
134 defines = nacl_defines 134 defines = nacl_defines
135 135
136 # TODO(GYP) remove this when the real webrtc target is used below. 136 # TODO(GYP) remove this when the real webrtc target is used below.
137 configs += [ "//content:webrtc_stub_config" ] 137 configs += [ "//content:webrtc_stub_config" ]
138 138
139 deps += [ 139 deps += [
140 "//cc", 140 "//cc",
141 "//chrome/browser/devtools",
141 "//chrome/browser/performance_monitor", 142 "//chrome/browser/performance_monitor",
142 "//chrome/common/extensions/api:api", 143 "//chrome/common/extensions/api:api",
144 "//chrome/installer/util",
143 "//components/autofill/content/browser", 145 "//components/autofill/content/browser",
144 "//components/dom_distiller/content", 146 "//components/dom_distiller/content",
145 "//components/keyed_service/content", 147 "//components/keyed_service/content",
148 "//components/navigation_interception",
149 "//components/password_manager/content/browser",
150 "//components/precache/content",
151 "//components/sessions",
146 "//components/storage_monitor", 152 "//components/storage_monitor",
147 "//components/translate/content/browser", 153 "//components/translate/content/browser",
148 "//components/url_matcher", 154 "//components/url_matcher",
149 "//components/usb_service", 155 "//components/usb_service",
150 "//components/visitedlink/browser", 156 "//components/visitedlink/browser",
151 "//components/visitedlink/common", 157 "//components/visitedlink/common",
152 "//components/web_modal", 158 "//components/web_modal",
159 "//media",
160 "//media/cast:net",
153 "//mojo/environment:chromium", 161 "//mojo/environment:chromium",
154 "//mojo/public/cpp/bindings", 162 "//mojo/public/cpp/bindings",
155 "//mojo/public/js/bindings", 163 "//mojo/public/js/bindings",
156 "//mojo/system", 164 "//mojo/system",
157 "//net:net_with_v8", 165 "//net:net_with_v8",
158 "//third_party/WebKit/public:resources", 166 "//third_party/WebKit/public:resources",
159 "//third_party/adobe/flash:flapper_version_h", 167 "//third_party/adobe/flash:flapper_version_h",
160 "//third_party/expat", 168 "//third_party/expat",
161 "//third_party/leveldatabase", 169 "//third_party/leveldatabase",
162 "//third_party/libaddressinput", 170 "//third_party/libaddressinput",
163 "//third_party/libyuv", 171 "//third_party/libyuv",
164 "//third_party/npapi", 172 "//third_party/npapi",
165 "//third_party/re2", 173 "//third_party/re2",
166 "//third_party/smhasher:cityhash", 174 "//third_party/smhasher:cityhash",
167 "//ui/gl", 175 "//ui/gl",
168 "//ui/surface", 176 "//ui/surface",
169 "//ui/web_dialogs", 177 "//ui/web_dialogs",
170 "//v8", 178 "//v8",
171 "//webkit/browser:storage", 179 "//webkit/browser:storage",
172 "//webkit/common", 180 "//webkit/common",
173 "//webkit/common:storage", 181 "//webkit/common:storage",
174 "//webkit/glue/resources", 182 "//webkit/glue/resources",
175 # TODO(GYP) 183 #"apps", TODO(GYP)
176 #"apps",
177 #"debugger",
178 #"installer_util",
179 #"../components/components.gyp:navigation_interception",
180 #"../components/components.gyp:password_manager_content_browser",
181 #"../components/components.gyp:precache_content",
182 #"../components/components.gyp:sessions",
183 #"../media/cast/cast.gyp:cast_transport",
184 #"../media/media.gyp:media",
185 ## TODO(tonyg): Remove this dependency (crbug.com/280157). 184 ## TODO(tonyg): Remove this dependency (crbug.com/280157).
186 #"../testing/perf/perf_test.gyp:*", 185 #"../testing/perf/perf_test.gyp:*", TODO(GYP)
187 # Note: for this one also remove the webrtc_stub_config 186 # Note: for this one also remove the webrtc_stub_config
188 #"../third_party/webrtc/modules/modules.gyp:desktop_capture", 187 #"../third_party/webrtc/modules/modules.gyp:desktop_capture", TODO(GYP)
189 ] 188 ]
190 } else { # iOS 189 } else { # iOS
191 sources += rebase_path(gypi_values.chrome_browser_ios_sources, 190 sources += rebase_path(gypi_values.chrome_browser_ios_sources,
192 ".", "//chrome") 191 ".", "//chrome")
193 deps += [ 192 deps += [
194 "//net", 193 "//net",
195 ] 194 ]
196 libs += [ 195 libs += [
197 "CoreTelephony.framework", 196 "CoreTelephony.framework",
198 "CoreText.framework", 197 "CoreText.framework",
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 if (!is_chromeos) { 379 if (!is_chromeos) {
381 configs += [ "//build/config/linux:xscrnsaver" ] 380 configs += [ "//build/config/linux:xscrnsaver" ]
382 } 381 }
383 } 382 }
384 if (is_posix && !is_mac && !is_ios) { 383 if (is_posix && !is_mac && !is_ios) {
385 sources += [ 384 sources += [
386 "//chrome/app/chrome_breakpad_client.cc", 385 "//chrome/app/chrome_breakpad_client.cc",
387 "//chrome/app/chrome_breakpad_client.h", 386 "//chrome/app/chrome_breakpad_client.h",
388 ] 387 ]
389 deps += [ 388 deps += [
390 #"../components/components.gyp:breakpad_component", TODO(GYP) 389 "//components/breakpad/app",
391 #"../components/components.gyp:breakpad_host", TODO(GYP) 390 "//components/breakpad/browser",
392 ] 391 ]
393 } 392 }
394 if (use_nss_certs) { 393 if (use_nss_certs) {
395 sources += rebase_path(gypi_values.chrome_browser_nss_sources, 394 sources += rebase_path(gypi_values.chrome_browser_nss_sources,
396 ".", "//chrome") 395 ".", "//chrome")
397 } 396 }
398 if (enable_notifications) { 397 if (enable_notifications) {
399 sources += rebase_path(gypi_values.chrome_browser_notifications_sources, 398 sources += rebase_path(gypi_values.chrome_browser_notifications_sources,
400 ".", "//chrome") 399 ".", "//chrome")
401 if (!is_android) { 400 if (!is_android) {
402 sources += rebase_path( 401 sources += rebase_path(
403 gypi_values.chrome_browser_non_android_notifications_sources, 402 gypi_values.chrome_browser_non_android_notifications_sources,
404 ".", "//chrome") 403 ".", "//chrome")
405 } 404 }
406 } 405 }
407 if (enable_themes) { 406 if (enable_themes) {
408 sources += rebase_path(gypi_values.chrome_browser_themes_sources, 407 sources += rebase_path(gypi_values.chrome_browser_themes_sources,
409 ".", "//chrome") 408 ".", "//chrome")
410 } 409 }
411 410
412 if (printing_mode != 0) { 411 if (printing_mode != 0) {
413 # Some form of printing support. 412 # Some form of printing support.
414 sources += rebase_path(gypi_values.chrome_browser_basic_printing_sources, 413 sources += rebase_path(gypi_values.chrome_browser_basic_printing_sources,
415 ".", "//chrome") 414 ".", "//chrome")
416 deps += [ 415 deps += [
417 #"../printing/printing.gyp:printing", TODO(GYP) 416 "//printing",
418 ] 417 ]
419 if (is_win && win_pdf_metafile_for_printing) { 418 if (is_win && win_pdf_metafile_for_printing) {
420 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources, 419 sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources,
421 ".", "//chrome") 420 ".", "//chrome")
422 } 421 }
423 if (printing_mode == 1) { 422 if (printing_mode == 1) {
424 # Full printing on top of the above. 423 # Full printing on top of the above.
425 sources += rebase_path(gypi_values.chrome_browser_full_printing_sources, 424 sources += rebase_path(gypi_values.chrome_browser_full_printing_sources,
426 ".", "//chrome") 425 ".", "//chrome")
427 } else if (printing_mode == 2) { 426 } else if (printing_mode == 2) {
(...skipping 19 matching lines...) Expand all
447 } else { 446 } else {
448 # Non-mobile. 447 # Non-mobile.
449 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources, 448 sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources,
450 ".", "//chrome") 449 ".", "//chrome")
451 } 450 }
452 451
453 if (is_android) { 452 if (is_android) {
454 sources += rebase_path(gypi_values.chrome_browser_android_sources, 453 sources += rebase_path(gypi_values.chrome_browser_android_sources,
455 ".", "//chrome") 454 ".", "//chrome")
456 deps += [ 455 deps += [
457 #"../components/components.gyp:cdm_browser", TODO(GYP) 456 "//components/cdm/browser",
458 #"../components/components.gyp:web_contents_delegate_android", TODO(GYP) 457 #"../components/components.gyp:web_contents_delegate_android", TODO(GYP)
459 #"chrome_browser_jni_headers", TODO(GYP) 458 #"chrome_browser_jni_headers", TODO(GYP)
460 ] 459 ]
461 deps -= [ 460 deps -= [
462 "//third_party/libaddressinput", 461 "//third_party/libaddressinput",
463 "//components/feedback", 462 "//components/feedback",
464 "//components/storage_monitor", 463 "//components/storage_monitor",
465 "//components/usb_service", 464 "//components/usb_service",
466 "//components/web_modal", 465 "//components/web_modal",
467 ] 466 ]
(...skipping 30 matching lines...) Expand all
498 # Temporary fix to break the browser target into smaller chunks so it 497 # Temporary fix to break the browser target into smaller chunks so it
499 # will link with goma builds. 498 # will link with goma builds.
500 #["OS=="win" and chromium_win_pch==0", { 499 #["OS=="win" and chromium_win_pch==0", {
501 # "msvs_shard": 4, 500 # "msvs_shard": 4,
502 #}], 501 #}],
503 502
504 if (is_win) { 503 if (is_win) {
505 sources += rebase_path(gypi_values.chrome_browser_win_sources, 504 sources += rebase_path(gypi_values.chrome_browser_win_sources,
506 ".", "//chrome") 505 ".", "//chrome")
507 deps += [ 506 deps += [
507 "//chrome:version_header",
508 "//chrome/installer/util:strings",
509 "//third_party/iaccessible2",
510 "//third_party/isimpledom",
508 "//third_party/wtl", 511 "//third_party/wtl",
512 "//ui/views",
513 "//ui/views/controls/webview",
509 #"chrome_process_finder", TODO(GYP) 514 #"chrome_process_finder", TODO(GYP)
510 #"installer_util_strings", TODO(GYP)
511 #"../chrome/chrome.gyp:chrome_version_header", TODO(GYP)
512 #"../chrome_elf/chrome_elf.gyp:chrome_elf", TODO(GYP) 515 #"../chrome_elf/chrome_elf.gyp:chrome_elf", TODO(GYP)
513 #"../chrome_elf/chrome_elf.gyp:chrome_elf_constants", TODO(GYP) 516 #"../chrome_elf/chrome_elf.gyp:chrome_elf_constants", TODO(GYP)
514 #"../chrome_elf/chrome_elf.gyp:dll_hash", TODO(GYP) 517 #"../chrome_elf/chrome_elf.gyp:dll_hash", TODO(GYP)
515 #"../google_update/google_update.gyp:google_update", TODO(GYP) 518 #"../google_update/google_update.gyp:google_update", TODO(GYP)
516 #"../third_party/iaccessible2/iaccessible2.gyp:iaccessible2", TODO(GYP)
517 #"../third_party/isimpledom/isimpledom.gyp:isimpledom", TODO(GYP)
518 #"../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages", TODO(GYP) 519 #"../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages", TODO(GYP)
519 #"../ui/views/controls/webview/webview.gyp:webview", TODO(GYP)
520 #"../ui/views/views.gyp:views", TODO(GYP)
521 #"../win8/win8.gyp:metro_viewer", TODO(GYP) 520 #"../win8/win8.gyp:metro_viewer", TODO(GYP)
522 ] 521 ]
523 forward_dependent_configs_from += [ 522 forward_dependent_configs_from += [
524 #"../ui/views/controls/webview/webview.gyp:webview", TODO(GYP) 523 "//ui/views",
525 #"../ui/views/views.gyp:views", TODO(GYP) 524 "//ui/views/controls/webview",
526 ] 525 ]
527 } else { 526 } else {
528 # Non-Windows. 527 # Non-Windows.
529 sources += rebase_path(gypi_values.chrome_browser_non_win_sources, 528 sources += rebase_path(gypi_values.chrome_browser_non_win_sources,
530 ".", "//chrome") 529 ".", "//chrome")
531 if (toolkit_views) { 530 if (toolkit_views) {
532 deps += [ 531 deps += [
533 #"../ui/views/controls/webview/webview.gyp:webview", TODO(GYP) 532 "//ui/views",
534 #"../ui/views/views.gyp:views", TODO(GYP) 533 "//ui/views/controls/webview",
535 ] 534 ]
536 # TODO(GYP) why is this needed? Very susicious. 535 # TODO(GYP) why is this needed? Very susicious.
537 # "include_dirs": [ 536 # "include_dirs": [
538 # "<(INTERMEDIATE_DIR)/chrome", 537 # "<(INTERMEDIATE_DIR)/chrome",
539 # ], 538 # ],
540 } 539 }
541 } 540 }
542 541
543 if (is_linux) { 542 if (is_linux) {
544 sources += rebase_path(gypi_values.chrome_browser_linux_sources, 543 sources += rebase_path(gypi_values.chrome_browser_linux_sources,
(...skipping 17 matching lines...) Expand all
562 sources += rebase_path(gypi_values.chrome_browser_desktop_linux_sources, 561 sources += rebase_path(gypi_values.chrome_browser_desktop_linux_sources,
563 ".", "//chrome") 562 ".", "//chrome")
564 } 563 }
565 if (enable_plugin_installation) { 564 if (enable_plugin_installation) {
566 sources += rebase_path( 565 sources += rebase_path(
567 gypi_values.chrome_browser_plugin_installation_sources, 566 gypi_values.chrome_browser_plugin_installation_sources,
568 ".", "//chrome") 567 ".", "//chrome")
569 } 568 }
570 if (enable_app_list) { 569 if (enable_app_list) {
571 deps += [ 570 deps += [
572 #"../ui/app_list/app_list.gyp:app_list", TODO(GYP) 571 "//ui/app_list",
573 ] 572 ]
574 } 573 }
575 if (enable_managed_users) { 574 if (enable_managed_users) {
576 sources += rebase_path( 575 sources += rebase_path(
577 gypi_values.chrome_browser_supervised_user_sources, 576 gypi_values.chrome_browser_supervised_user_sources,
578 ".", "//chrome") 577 ".", "//chrome")
579 } 578 }
580 if (enable_webrtc) { 579 if (enable_webrtc) {
581 sources += rebase_path( 580 sources += rebase_path(
582 gypi_values.chrome_browser_webrtc_sources, 581 gypi_values.chrome_browser_webrtc_sources,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 # TODO(GYP) write internal action 659 # TODO(GYP) write internal action
661 if (false) { #if (is_chrome_branded) { 660 if (false) { #if (is_chrome_branded) {
662 action("chrome_internal_resources_gen") { 661 action("chrome_internal_resources_gen") {
663 # TODO(GYP) 662 # TODO(GYP)
664 } 663 }
665 } else { 664 } else {
666 group("chrome_internal_resources_gen") { 665 group("chrome_internal_resources_gen") {
667 # Empty placeholder. 666 # Empty placeholder.
668 } 667 }
669 } 668 }
OLDNEW
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/browser/extensions/BUILD.gn » ('j') | chrome/version.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698