Chromium Code Reviews| 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 |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 638 | 638 |
| 639 if (!is_android && !is_ios && !is_chromeos) { | 639 if (!is_android && !is_ios && !is_chromeos) { |
| 640 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] | 640 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] |
| 641 } | 641 } |
| 642 | 642 |
| 643 if (is_win || is_linux) { | 643 if (is_win || is_linux) { |
| 644 deps += [ | 644 deps += [ |
| 645 "//components/mus/demo", | 645 "//components/mus/demo", |
| 646 "//components/mus/ws:tests", | 646 "//components/mus/ws:tests", |
| 647 "//mash:all", | 647 "//mash:all", |
| 648 "//media/mojo:media_mojo_unittests", | |
| 649 "//media/mojo/services", | |
| 648 "//media/mojo/services:media_mojo_shell_unittests", | 650 "//media/mojo/services:media_mojo_shell_unittests", |
| 649 "//mojo", | 651 "//mojo", |
|
xhwang
2016/06/09 21:19:48
I wonder why these targets are win/linux only. Why
| |
| 650 "//services/navigation", | 652 "//services/navigation", |
| 651 "//ui/views/mus:views_mus_interactive_ui_tests", | 653 "//ui/views/mus:views_mus_interactive_ui_tests", |
| 652 "//ui/views/mus:views_mus_unittests", | 654 "//ui/views/mus:views_mus_unittests", |
| 653 ] | 655 ] |
| 654 } | 656 } |
| 655 | 657 |
| 656 if (is_linux && !is_chromeos && !is_chromecast) { | 658 if (is_linux && !is_chromeos && !is_chromecast) { |
| 657 # TODO(GYP): Figure out if any of these should be in gn_all | 659 # TODO(GYP): Figure out if any of these should be in gn_all |
| 658 # and figure out how cross-platform they are | 660 # and figure out how cross-platform they are |
| 659 deps += [ | 661 deps += [ |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 774 } | 776 } |
| 775 } | 777 } |
| 776 | 778 |
| 777 group("gn_mojo_targets") { | 779 group("gn_mojo_targets") { |
| 778 testonly = true | 780 testonly = true |
| 779 if (is_linux && !is_chromeos) { | 781 if (is_linux && !is_chromeos) { |
| 780 # TODO(GYP): Figure out if any of these should be in gn_all | 782 # TODO(GYP): Figure out if any of these should be in gn_all |
| 781 # and figure out how cross-platform they are | 783 # and figure out how cross-platform they are |
| 782 deps = [ | 784 deps = [ |
| 783 "//ipc/mojo:ipc_mojo_perftests", | 785 "//ipc/mojo:ipc_mojo_perftests", |
| 784 "//media/mojo:tests", | |
| 785 "//media/mojo/services", | |
| 786 "//mojo:tests", | 786 "//mojo:tests", |
| 787 ] | 787 ] |
| 788 } | 788 } |
| 789 } | 789 } |
| 790 | 790 |
| 791 group("gn_visibility") { | 791 group("gn_visibility") { |
| 792 deps = [ | 792 deps = [ |
| 793 "//build/config/sanitizers:options_sources", | 793 "//build/config/sanitizers:options_sources", |
| 794 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility? | 794 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility? |
| 795 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility? | 795 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility? |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 945 assert(target_name != "") # Mark as used. | 945 assert(target_name != "") # Mark as used. |
| 946 sources = invoker.actual_sources | 946 sources = invoker.actual_sources |
| 947 assert( | 947 assert( |
| 948 sources == invoker.actual_sources, | 948 sources == invoker.actual_sources, |
| 949 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") | 949 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") |
| 950 } | 950 } |
| 951 | 951 |
| 952 assert_valid_out_dir("_unused") { | 952 assert_valid_out_dir("_unused") { |
| 953 actual_sources = [ "$root_build_dir/foo" ] | 953 actual_sources = [ "$root_build_dir/foo" ] |
| 954 } | 954 } |
| OLD | NEW |