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 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
901 } | 901 } |
902 } | 902 } |
903 | 903 |
904 if (!is_ios) { | 904 if (!is_ios) { |
905 # This group includes all of the targets needed to build and test Blink, | 905 # This group includes all of the targets needed to build and test Blink, |
906 # including running the layout tests (see below). | 906 # including running the layout tests (see below). |
907 group("blink_tests") { | 907 group("blink_tests") { |
908 testonly = true | 908 testonly = true |
909 | 909 |
910 deps = [ | 910 deps = [ |
911 ":webkit_layout_tests", | 911 ":webkit_layout_tests", |
qyearsley
2017/01/13 01:09:11
Note, when trying this locally I got a warning at
| |
912 "//third_party/WebKit/public:all_blink", | 912 "//third_party/WebKit/public:all_blink", |
913 ] | 913 ] |
914 } | 914 } |
915 | 915 |
916 # Layout tests runner | 916 # Layout tests runner |
917 # third_party/WebKit/Tools/Scripts/run-webkit-tests | 917 # third_party/WebKit/Tools/Scripts/run-webkit-tests |
918 group("run_webkit_tests") { | 918 group("run_webkit_tests") { |
919 testonly = true | 919 testonly = true |
920 deps = [ | 920 deps = [ |
921 ":webkit_layout_tests", | 921 ":webkit_layout_tests", |
922 ] | 922 ] |
923 } | 923 } |
924 | 924 |
925 # https://www.chromium.org/developers/testing/webkit-layout-tests | 925 # https://www.chromium.org/developers/testing/webkit-layout-tests |
926 group("webkit_layout_tests") { | 926 |
927 # TODO(dpranke): Get rid of this target once webkit_layout_tests_exparchive | |
928 # works reliably. | |
929 group("locally_swarmed_webkit_layout_tests") { | |
927 testonly = true | 930 testonly = true |
928 | 931 |
932 deps = [ | |
933 ":webkit_layout_tests_exparchive", | |
934 ] | |
935 | |
936 data = [ | |
937 # In addition to the test script, these files are needed for the | |
938 # test script to be able to call MB, GN, and the swarming and isolate | |
939 # binaries. | |
940 "//build/gn_helpers.py", | |
941 "//buildtools/", | |
942 "//testing/scripts/common.py", | |
943 "//testing/scripts/run_locally_swarmed_webkit_layout_tests.py", | |
944 "//tools/mb/", | |
945 "//tools/luci-go/", | |
946 "//tools/swarming_client/", | |
947 ] | |
948 } | |
949 | |
950 # The _exparchive at the end of the name indicates to the isolate recipe | |
951 # that the isolate should be archived separately using the `exparchive` | |
952 # command, rather than as part of the normal `batcharchive` command. | |
953 group("webkit_layout_tests_exparchive") { | |
954 testonly = true | |
955 deps = [ | |
956 ":some_webkit_layout_tests", | |
957 ] | |
958 data_deps = [ | |
959 ":some_webkit_layout_tests", | |
960 ] | |
961 | |
962 data = [ | |
963 "//third_party/WebKit/LayoutTests/", | |
964 ] | |
965 } | |
966 | |
967 # This target contains only a small subset of the layout tests, | |
968 # and is useful for testing with the regular isolate mechanism. | |
969 # To run the full layout test suite you need to use | |
970 # :webkit_layout_tests_exparchive, above, instead. | |
971 group("some_webkit_layout_tests") { | |
972 testonly = true | |
929 data_deps = [ | 973 data_deps = [ |
930 "//content/shell:content_shell", | 974 "//content/shell:content_shell", |
931 "//tools/imagediff", | 975 "//tools/imagediff", |
932 ] | 976 ] |
933 | 977 |
934 if (is_android) { | 978 if (is_android) { |
935 data_deps += [ | 979 data_deps += [ |
936 "//breakpad:breakpad_unittests", | 980 "//breakpad:breakpad_unittests", |
937 "//breakpad:dump_syms", | 981 "//breakpad:dump_syms", |
938 "//breakpad:microdump_stackwalk", | 982 "//breakpad:microdump_stackwalk", |
(...skipping 16 matching lines...) Expand all Loading... | |
955 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ] | 999 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ] |
956 } | 1000 } |
957 | 1001 |
958 if (is_linux) { | 1002 if (is_linux) { |
959 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ] | 1003 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ] |
960 } | 1004 } |
961 | 1005 |
962 data = [ | 1006 data = [ |
963 "//testing/scripts/common.py", | 1007 "//testing/scripts/common.py", |
964 "//testing/xvfb.py", | 1008 "//testing/xvfb.py", |
965 "//testing/scripts/run_telemetry_as_googletest.py", | 1009 "//testing/scripts/run_isolated_script_test.py", |
966 "//third_party/WebKit/LayoutTests/", | 1010 "//third_party/WebKit/LayoutTests/NeverFixTests", |
1011 "//third_party/WebKit/LayoutTests/SlowTests", | |
1012 "//third_party/WebKit/LayoutTests/SmokeTests", | |
1013 "//third_party/WebKit/LayoutTests/StaleTestExpectations", | |
1014 "//third_party/WebKit/LayoutTests/TestExpectations", | |
1015 "//third_party/WebKit/LayoutTests/VirtualTestSuites", | |
1016 "//third_party/WebKit/LayoutTests/fast/html/", | |
967 "//third_party/WebKit/Tools/Scripts/", | 1017 "//third_party/WebKit/Tools/Scripts/", |
968 "$root_build_dir/resources/inspector/", | 1018 "$root_build_dir/resources/inspector/", |
969 ] | 1019 ] |
1020 | |
1021 if (is_android) { | |
1022 data += [ | |
1023 "//third_party/catapult/", | |
1024 "//build/android/", | |
1025 ] | |
1026 } | |
970 } | 1027 } |
971 } | 1028 } |
972 | 1029 |
973 # Add a dummy target for compatibility w/ GYP | 1030 # Add a dummy target for compatibility w/ GYP |
974 group("chromium_swarm_tests") { | 1031 group("chromium_swarm_tests") { |
975 } | 1032 } |
976 | 1033 |
977 group("chromium_builder_perf") { | 1034 group("chromium_builder_perf") { |
978 testonly = true | 1035 testonly = true |
979 | 1036 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1092 assert(target_name != "") # Mark as used. | 1149 assert(target_name != "") # Mark as used. |
1093 sources = invoker.actual_sources | 1150 sources = invoker.actual_sources |
1094 assert( | 1151 assert( |
1095 sources == invoker.actual_sources, | 1152 sources == invoker.actual_sources, |
1096 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") | 1153 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") |
1097 } | 1154 } |
1098 | 1155 |
1099 assert_valid_out_dir("_unused") { | 1156 assert_valid_out_dir("_unused") { |
1100 actual_sources = [ "$root_build_dir/foo" ] | 1157 actual_sources = [ "$root_build_dir/foo" ] |
1101 } | 1158 } |
OLD | NEW |