OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//build_overrides/v8.gni") | 5 import("//build_overrides/v8.gni") |
6 import("//v8/snapshot_toolchain.gni") | 6 import("//v8/snapshot_toolchain.gni") |
7 | 7 |
8 # Variables: | 8 # Variables: |
9 # test_type: One of 'webui', 'unit' or 'extension' indicating what | 9 # test_type: One of 'webui', 'unit' or 'extension' indicating what |
10 # environment the test runs under. | 10 # environment the test runs under. |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 gen_source_pattern = "{{source_gen_dir}}/{{source_name_part}}-gen.cc" | 31 gen_source_pattern = "{{source_gen_dir}}/{{source_name_part}}-gen.cc" |
32 | 32 |
33 action_foreach(action_name) { | 33 action_foreach(action_name) { |
34 testonly = true | 34 testonly = true |
35 visibility = [ ":$source_set_name" ] | 35 visibility = [ ":$source_set_name" ] |
36 script = "//tools/gypv8sh.py" | 36 script = "//tools/gypv8sh.py" |
37 | 37 |
38 sources = invoker.sources | 38 sources = invoker.sources |
39 | 39 |
40 v8_shell_path = get_label_info("//v8:v8_shell($snapshot_toolchain)", | 40 v8_shell_path = get_label_info("//v8:v8_shell($v8_snapshot_toolchain)", |
41 "root_out_dir") + "/v8_shell" | 41 "root_out_dir") + "/v8_shell" |
42 if (is_win) { | 42 if (is_win) { |
43 v8_shell_path += ".exe" | 43 v8_shell_path += ".exe" |
44 } | 44 } |
45 | 45 |
46 input_js = [ | 46 input_js = [ |
47 "//chrome/third_party/mock4js/mock4js.js", | 47 "//chrome/third_party/mock4js/mock4js.js", |
48 "//chrome/test/data/webui/test_api.js", | 48 "//chrome/test/data/webui/test_api.js", |
49 "//chrome/test/base/js2gtest.js", | 49 "//chrome/test/base/js2gtest.js", |
50 ] | 50 ] |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 args += [ "--external=n" ] | 83 args += [ "--external=n" ] |
84 } | 84 } |
85 args += [ | 85 args += [ |
86 "{{source}}", | 86 "{{source}}", |
87 "{{source_root_relative_dir}}/{{source_file_part}}", | 87 "{{source_root_relative_dir}}/{{source_file_part}}", |
88 gen_source_pattern, | 88 gen_source_pattern, |
89 rebase_path(copied_source_pattern, root_build_dir), | 89 rebase_path(copied_source_pattern, root_build_dir), |
90 ] | 90 ] |
91 | 91 |
92 deps = [ | 92 deps = [ |
93 "//v8:v8_shell($snapshot_toolchain)", | 93 "//v8:v8_shell($v8_snapshot_toolchain)", |
94 ] | 94 ] |
95 if (defined(invoker.deps)) { | 95 if (defined(invoker.deps)) { |
96 deps += invoker.deps | 96 deps += invoker.deps |
97 } | 97 } |
98 } | 98 } |
99 | 99 |
100 if (defined(invoker.extra_js_files)) { | 100 if (defined(invoker.extra_js_files)) { |
101 copy_target_name = target_name + "_copy" | 101 copy_target_name = target_name + "_copy" |
102 copy(copy_target_name) { | 102 copy(copy_target_name) { |
103 visibility = [ ":$source_set_name" ] | 103 visibility = [ ":$source_set_name" ] |
(...skipping 24 matching lines...) Expand all Loading... |
128 if (defined(invoker.deps)) { | 128 if (defined(invoker.deps)) { |
129 deps += invoker.deps | 129 deps += invoker.deps |
130 } | 130 } |
131 if (defined(invoker.extra_js_files)) { | 131 if (defined(invoker.extra_js_files)) { |
132 data_deps = [ | 132 data_deps = [ |
133 ":$copy_target_name", | 133 ":$copy_target_name", |
134 ] | 134 ] |
135 } | 135 } |
136 } | 136 } |
137 } | 137 } |
OLD | NEW |