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("//mojo/go/rules.gni") | 5 import("//mojo/go/rules.gni") |
6 | 6 |
7 # The purpose of this target is to ensure the parser remains buildable on all | 7 # The purpose of this target is to ensure the parser remains buildable on all |
8 # platforms. The output files are not consumed by anything. The parser is built | 8 # platforms. The output files are not consumed by anything. The parser is built |
9 # and uploaded to GCS by manually running build_mojom_tool.py. | 9 # and uploaded to GCS by manually running build_mojom_tool.py. |
10 action("mojom_tool") { | 10 action("mojom_tool") { |
11 script = "tools/build_mojom_tool.py" | 11 script = "tools/build_mojom_tool.py" |
12 | 12 |
13 inputs = [ | 13 inputs = [ |
14 "generated/mojom_files/mojom_files.mojom.go", | 14 "generated/mojom_files/mojom_files.mojom.go", |
15 "generated/mojom_types/mojom_types.mojom.go", | 15 "generated/mojom_types/mojom_types.mojom.go", |
16 "lexer/lexer.go", | 16 "lexer/lexer.go", |
17 "lexer/token_stream.go", | 17 "lexer/token_stream.go", |
18 "lexer/tokens.go", | 18 "lexer/tokens.go", |
19 "mojom/computed_data.go", | 19 "mojom/computed_data.go", |
20 "mojom/mojom_descriptor.go", | 20 "mojom/mojom_descriptor.go", |
21 "mojom/scopes.go", | 21 "mojom/scopes.go", |
22 "mojom/types.go", | 22 "mojom/types.go", |
23 "mojom/user_defined_types.go", | 23 "mojom/user_defined_types.go", |
24 "mojom/utils.go", | 24 "mojom/utils.go", |
| 25 "parser/computed_data_test.go", |
25 "parser/parse_driver.go", | 26 "parser/parse_driver.go", |
26 "parser/parser.go", | 27 "parser/parser.go", |
27 "parser/parsing.go", | 28 "parser/parsing.go", |
| 29 "parser/resolution_test.go", |
28 "serialization/serialization.go", | 30 "serialization/serialization.go", |
29 "utils/sort_utils.go", | 31 "utils/sort_utils.go", |
30 ] | 32 ] |
31 | 33 |
32 outputs = [ | 34 outputs = [ |
33 "$target_out_dir/mojom_linux_amd64", | 35 "$target_out_dir/mojom_linux_amd64", |
34 "$target_out_dir/mojom_darwin_amd64", | 36 "$target_out_dir/mojom_darwin_amd64", |
35 ] | 37 ] |
36 | 38 |
37 args = [ | 39 args = [ |
38 "--src-root", | 40 "--src-root", |
39 rebase_path("//", root_build_dir), | 41 rebase_path("//", root_build_dir), |
40 "--out-dir", | 42 "--out-dir", |
41 rebase_path(target_out_dir, root_build_dir), | 43 rebase_path(target_out_dir, root_build_dir), |
42 "--quiet", | 44 "--quiet", |
43 ] | 45 ] |
44 } | 46 } |
OLD | NEW |