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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
601 "//third_party/openh264:processing", | 601 "//third_party/openh264:processing", |
602 ] | 602 ] |
603 } | 603 } |
604 } | 604 } |
605 | 605 |
606 # This group contains all the targets needed to run mojo's apptest_runner. | 606 # This group contains all the targets needed to run mojo's apptest_runner. |
607 group("mojo_apptests") { | 607 group("mojo_apptests") { |
608 testonly = true | 608 testonly = true |
609 | 609 |
610 deps = [] | 610 deps = [] |
611 data_deps = [] | |
612 data = [] | |
611 | 613 |
612 if (is_win || is_linux) { | 614 if (is_win || is_linux) { |
613 deps += [ | 615 deps += [ "//services/shell/standalone" ] |
614 "//components/resource_provider:resource_provider_unittests", | 616 data_deps = [ |
615 "//mash:mash_unittests", | 617 "//media/mojo/services:media_apptests", |
616 "//media/mojo/services:tests", | 618 ] |
617 "//ui/views/mus:tests", | 619 if (is_linux) { |
620 data_deps += [ "//tools/xdisplaycheck" ] | |
621 } | |
622 data += [ | |
623 "//mojo/tools/apptest_runner.py", | |
624 "//mojo/tools/data/apptests", | |
625 "//mojo/tools/mopy/__init__.py", | |
jam
2016/04/28 15:59:29
just make this //mojo/tools/mopy/
you're listing
Sam McNally
2016/04/29 00:21:23
Done. I wasn't aware that GN allowed directories a
| |
626 "//mojo/tools/mopy/android.py", | |
627 "//mojo/tools/mopy/config.py", | |
628 "//mojo/tools/mopy/gtest.py", | |
629 "//mojo/tools/mopy/paths.py", | |
630 "//testing/xvfb.py", | |
631 "//tools/swarming_client/utils/subprocess42.py", | |
618 ] | 632 ] |
619 } | 633 } |
620 } | 634 } |
621 | 635 |
636 group("mojo_apptests_run") { | |
637 testonly = true | |
638 deps = [ | |
639 ":mojo_apptests", | |
640 ] | |
641 } | |
642 | |
622 group("gn_only") { | 643 group("gn_only") { |
623 testonly = true | 644 testonly = true |
624 | 645 |
625 deps = [] | 646 deps = [] |
626 | 647 |
627 if (!is_ios) { | 648 if (!is_ios) { |
628 deps += [ "//mojo/common:mojo_common_perftests" ] | 649 deps += [ "//mojo/common:mojo_common_perftests" ] |
629 } | 650 } |
630 | 651 |
631 if (!is_android && !is_ios) { | 652 if (!is_android && !is_ios) { |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
940 assert(target_name != "") # Mark as used. | 961 assert(target_name != "") # Mark as used. |
941 sources = invoker.actual_sources | 962 sources = invoker.actual_sources |
942 assert( | 963 assert( |
943 sources == invoker.actual_sources, | 964 sources == invoker.actual_sources, |
944 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") | 965 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") |
945 } | 966 } |
946 | 967 |
947 assert_valid_out_dir("_unused") { | 968 assert_valid_out_dir("_unused") { |
948 actual_sources = [ "$root_build_dir/foo" ] | 969 actual_sources = [ "$root_build_dir/foo" ] |
949 } | 970 } |
OLD | NEW |