| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 # This is the root build file for GN. GN will start processing by loading this | 5 # This is the root build file for GN. GN will start processing by loading this |
| 6 # file, and recursively load all dependencies until all dependencies are either | 6 # file, and recursively load all dependencies until all dependencies are either |
| 7 # resolved or known not to exist (which will cause the build to fail). So if | 7 # resolved or known not to exist (which will cause the build to fail). So if |
| 8 # you add a new build file, there must be some path of dependencies from this | 8 # you add a new build file, there must be some path of dependencies from this |
| 9 # file to your new one or GN won't know about it. | 9 # file to your new one or GN won't know about it. |
| 10 | 10 |
| 11 import("//build/config/crypto.gni") | 11 import("//build/config/crypto.gni") |
| 12 import("//build/config/features.gni") | 12 import("//build/config/features.gni") |
| 13 import("//build/config/ui.gni") | 13 import("//build/config/ui.gni") |
| 14 import("//build/module_args/v8.gni") | 14 import("//build/module_args/v8.gni") |
| 15 | 15 |
| 16 if (is_android) { | 16 if (is_android) { |
| 17 import("//build/config/android/config.gni") | 17 import("//build/config/android/config.gni") |
| 18 } | 18 } |
| 19 | 19 |
| 20 declare_args() { | 20 declare_args() { |
| 21 # A list of extra dependencies to add to the root target. This allows a | 21 # A list of extra dependencies to add to the root target. This allows a |
| 22 # checkout to add additional targets without explicitly changing any checked- | 22 # checkout to add additional targets without explicitly changing any checked- |
| 23 # in files. | 23 # in files. |
| 24 root_extra_deps = [] | 24 root_extra_deps = [] |
| 25 } | 25 } |
| 26 | 26 |
| 27 # This file defines the following three main targets: | 27 # This file defines the following four main targets: |
| 28 # | 28 # |
| 29 # "both_gn_and_gyp" should list every root target (target that nothing else | 29 # "both_gn_and_gyp" should list every root target (target that nothing else |
| 30 # depends on) built by GN that is also built in the GYP build. | 30 # depends on) built by GN that is also built in the GYP build. |
| 31 # | 31 # |
| 32 # "gn_all" should (transitively) cause everything to be built; if you run | 32 # "gn_all" should (transitively) cause everything to be built; if you run |
| 33 # 'ninja gn_all' and then 'ninja all', the second build should do no work. | 33 # 'ninja gn_all' and then 'ninja all', the second build should do no work. |
| 34 # | 34 # |
| 35 # "gn_only" should list every root target that is *not* intended to be built | 35 # "gn_only" should list every root target that is *not* intended to be built |
| 36 # in a GYP build. Because GN has different rules for deciding what an 'all' | 36 # in a GYP build. Because GN has different rules for deciding what an 'all' |
| 37 # build is, this may end up including targets that are actually defined in a | 37 # build is, this may end up including targets that are actually defined in a |
| 38 # GYP build but not dependencies of GYP's "all" (and so not actually built). | 38 # GYP build but not dependencies of GYP's "all" (and so not actually built). |
| 39 # | 39 # |
| 40 # "gn_visibility": targets that are normally not visible to top-level targets, |
| 41 # but are built anyway by "all". Since we don't want any such targets, we |
| 42 # have this placeholder to make sure hidden targets that aren't otherwise |
| 43 # depended on yet are accounted for. |
| 44 # |
| 40 # TODO(GYP): crbug.com/481694. Make sure that the above is true and there are | 45 # TODO(GYP): crbug.com/481694. Make sure that the above is true and there are |
| 41 # scripts run on the bots that enforce this. Once the GYP migration is over, | 46 # scripts run on the bots that enforce this. Once the GYP migration is over, |
| 42 # we can collapse all of these targets as desired. | 47 # we can collapse all of these targets as desired. |
| 43 | 48 |
| 44 group("gn_all") { | 49 group("gn_all") { |
| 45 testonly = true | 50 testonly = true |
| 46 | 51 |
| 47 deps = [ | 52 deps = [ |
| 48 ":both_gn_and_gyp", | 53 ":both_gn_and_gyp", |
| 49 ":gn_only", | 54 ":gn_only", |
| 55 ":gn_visibility", |
| 50 ] | 56 ] |
| 51 } | 57 } |
| 52 | 58 |
| 53 # The "both_gn_and_gyp" target should reflect every target that is built | 59 # The "both_gn_and_gyp" target should reflect every target that is built |
| 54 # in both the GN and GYP builds, and ideally it should match the | 60 # in both the GN and GYP builds, and ideally it should match the |
| 55 # "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line. | 61 # "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line. |
| 56 # | 62 # |
| 57 # TODO(GYP): Add build steps that check and enforce this on the bots. | 63 # TODO(GYP): Add build steps that check and enforce this on the bots. |
| 58 group("both_gn_and_gyp") { | 64 group("both_gn_and_gyp") { |
| 59 testonly = true | 65 testonly = true |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 "//third_party/mojo/src/mojo/public/python:packaged_application", | 700 "//third_party/mojo/src/mojo/public/python:packaged_application", |
| 695 "//third_party/mojo/src/mojo/public/python:packaged_bindings", | 701 "//third_party/mojo/src/mojo/public/python:packaged_bindings", |
| 696 "//third_party/mojo/src/mojo/public/cpp/application:test_support_standalon
e", | 702 "//third_party/mojo/src/mojo/public/cpp/application:test_support_standalon
e", |
| 697 "//third_party/mojo_services/src/accessibility/public/interfaces:interface
s_python", | 703 "//third_party/mojo_services/src/accessibility/public/interfaces:interface
s_python", |
| 698 ] | 704 ] |
| 699 } | 705 } |
| 700 } | 706 } |
| 701 | 707 |
| 702 group("gn_visibility") { | 708 group("gn_visibility") { |
| 703 deps = [ | 709 deps = [ |
| 704 # "//build/config/sanitizers:options_sources", | 710 "//build/config/sanitizers:options_sources", |
| 711 |
| 705 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility? | 712 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility? |
| 706 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility? | 713 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility? |
| 707 # "//ui/resources:repack_ui_test_mac_locale_pack", | 714 |
| 715 "//ui/resources:repack_ui_test_mac_locale_pack", |
| 716 |
| 708 # "//v8:v8_snapshot", # TODO(GYP): visibility? | 717 # "//v8:v8_snapshot", # TODO(GYP): visibility? |
| 709 # "//v8:postmortem-metadata", # TODO(GYP): visibility? | 718 # "//v8:postmortem-metadata", # TODO(GYP): visibility? |
| 710 ] | 719 ] |
| 711 } | 720 } |
| 712 | 721 |
| 713 if (is_linux) { | 722 if (is_linux) { |
| 714 # This group corresponds to the list of tests run on the waterfall for | 723 # This group corresponds to the list of tests run on the waterfall for |
| 715 # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's | 724 # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's |
| 716 # here to help track GYP -> GN conversion progress. | 725 # here to help track GYP -> GN conversion progress. |
| 717 group("linux_default_tests") { | 726 group("linux_default_tests") { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 842 "//ui/views:views_unittests", # TooltipControllerTest failures | 851 "//ui/views:views_unittests", # TooltipControllerTest failures |
| 843 "//ui/wm:wm_unittests", # PASSES 4/21/2015 | 852 "//ui/wm:wm_unittests", # PASSES 4/21/2015 |
| 844 "//url:url_unittests", # PASSES 4/17/2015 | 853 "//url:url_unittests", # PASSES 4/17/2015 |
| 845 | 854 |
| 846 # TODO(GYP) nacl_integration | 855 # TODO(GYP) nacl_integration |
| 847 # TODO(GYP) telemetry_perf_unittests | 856 # TODO(GYP) telemetry_perf_unittests |
| 848 # TODO(GYP) telemetry_unittests | 857 # TODO(GYP) telemetry_unittests |
| 849 ] | 858 ] |
| 850 } | 859 } |
| 851 } | 860 } |
| OLD | NEW |