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

Side by Side Diff: BUILD.gn

Issue 2759563004: Mojo JS bindings: change module loading solution. (Closed)
Patch Set: Make sure mojo_bindings.js is packaged in build result for running layout tests. Created 3 years, 8 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
« no previous file with comments | « no previous file | mojo/public/interfaces/bindings/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 ] 889 ]
890 } 890 }
891 891
892 # This target contains only a small subset of the layout tests, 892 # This target contains only a small subset of the layout tests,
893 # and is useful for testing with the regular isolate mechanism. 893 # and is useful for testing with the regular isolate mechanism.
894 # To run the full layout test suite you need to use 894 # To run the full layout test suite you need to use
895 # :webkit_layout_tests_exparchive, above, instead. 895 # :webkit_layout_tests_exparchive, above, instead.
896 group("webkit_layout_tests") { 896 group("webkit_layout_tests") {
897 testonly = true 897 testonly = true
898 data_deps = [ 898 data_deps = [
899 ":layout_test_data_mojo_bindings",
899 "//content/shell:content_shell", 900 "//content/shell:content_shell",
900 "//mojo/public/interfaces/bindings/tests:test_interfaces", 901 "//mojo/public/interfaces/bindings/tests:test_interfaces",
901 "//third_party/WebKit/public:blink_devtools_frontend_resources_files", 902 "//third_party/WebKit/public:blink_devtools_frontend_resources_files",
902 "//third_party/mesa:osmesa", 903 "//third_party/mesa:osmesa",
903 "//tools/imagediff", 904 "//tools/imagediff",
904 ] 905 ]
905 906
906 if (is_android) { 907 if (is_android) {
907 data_deps += [ 908 data_deps += [
908 "//breakpad:breakpad_unittests", 909 "//breakpad:breakpad_unittests",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 data += [ "//third_party/apache-win32/" ] 946 data += [ "//third_party/apache-win32/" ]
946 } 947 }
947 948
948 if (is_android) { 949 if (is_android) {
949 data += [ 950 data += [
950 "//third_party/catapult/", 951 "//third_party/catapult/",
951 "//build/android/", 952 "//build/android/",
952 ] 953 ]
953 } 954 }
954 } 955 }
956
957 copy("layout_test_data_mojo_bindings") {
958 testonly = true
959
960 sources = [
961 "$root_gen_dir/mojo/public/js/mojo_bindings.js",
962 ]
963
964 outputs = [
965 "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js",
966 ]
967
968 deps = [
969 "//mojo/public/js:new_bindings",
970 ]
971 }
955 } 972 }
956 973
957 # Add a dummy target for compatibility w/ GYP 974 # Add a dummy target for compatibility w/ GYP
958 group("chromium_swarm_tests") { 975 group("chromium_swarm_tests") {
959 } 976 }
960 977
961 group("chromium_builder_perf") { 978 group("chromium_builder_perf") {
962 testonly = true 979 testonly = true
963 980
964 if (!is_ios && !is_android && !is_chromecast) { 981 if (!is_ios && !is_android && !is_chromecast) {
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 assert(target_name != "") # Mark as used. 1092 assert(target_name != "") # Mark as used.
1076 sources = invoker.actual_sources 1093 sources = invoker.actual_sources
1077 assert( 1094 assert(
1078 sources == invoker.actual_sources, 1095 sources == invoker.actual_sources,
1079 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") 1096 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283")
1080 } 1097 }
1081 1098
1082 assert_valid_out_dir("_unused") { 1099 assert_valid_out_dir("_unused") {
1083 actual_sources = [ "$root_build_dir/foo" ] 1100 actual_sources = [ "$root_build_dir/foo" ]
1084 } 1101 }
OLDNEW
« no previous file with comments | « no previous file | mojo/public/interfaces/bindings/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698