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 go_binary("mojom_parser") { | 7 go_binary("mojom_parser") { |
8 sources = [ | 8 sources = [ |
9 "parser_main.go", | 9 "parser_main.go", |
10 ] | 10 ] |
11 inputs = [ | 11 inputs = [ |
| 12 "generated/mojom_files/mojom_files.mojom.go", |
| 13 "generated/mojom_types/mojom_types.mojom.go", |
12 "lexer/lexer.go", | 14 "lexer/lexer.go", |
13 "lexer/token_stream.go", | 15 "lexer/token_stream.go", |
14 "lexer/tokens.go", | 16 "lexer/tokens.go", |
15 "mojom/computed_data.go", | 17 "mojom/computed_data.go", |
16 "mojom/mojom_descriptor.go", | 18 "mojom/mojom_descriptor.go", |
17 "mojom/scopes.go", | 19 "mojom/scopes.go", |
18 "mojom/types.go", | 20 "mojom/types.go", |
19 "mojom/user_defined_types.go", | 21 "mojom/user_defined_types.go", |
20 "parser/parse_driver.go", | 22 "parser/parse_driver.go", |
21 "parser/parser.go", | 23 "parser/parser.go", |
22 "parser/parsing.go", | 24 "parser/parsing.go", |
23 "serialization/serialization.go", | 25 "serialization/serialization.go", |
24 ] | 26 ] |
25 deps = [ | 27 deps = [ |
26 "//mojo/public/platform/native:system", | 28 "//mojo/public/platform/native:system", |
27 ] | 29 ] |
28 | 30 |
29 # Ninja gets confused if the output_binary_name is the same | 31 # Ninja gets confused if the output_binary_name is the same |
30 # as the target name. | 32 # as the target name. |
31 output_binary_name = "moparse" | 33 output_binary_name = "moparse" |
32 } | 34 } |
| 35 |
| 36 go_test_binary("serialization_test") { |
| 37 sources = [ |
| 38 "serialization/serialization.go", |
| 39 "serialization/serialization_test.go", |
| 40 ] |
| 41 inputs = [ |
| 42 "generated/mojom_files/mojom_files.mojom.go", |
| 43 "generated/mojom_types/mojom_types.mojom.go", |
| 44 "lexer/lexer.go", |
| 45 "lexer/token_stream.go", |
| 46 "lexer/tokens.go", |
| 47 "mojom/computed_data.go", |
| 48 "mojom/mojom_descriptor.go", |
| 49 "mojom/scopes.go", |
| 50 "mojom/types.go", |
| 51 "mojom/user_defined_types.go", |
| 52 "parser/parse_driver.go", |
| 53 "parser/parser.go", |
| 54 "parser/parsing.go", |
| 55 "//third_party/golang/src/fmt/print.go", |
| 56 ] |
| 57 deps = [ |
| 58 "//mojo/public/platform/native:system", |
| 59 ] |
| 60 } |
OLD | NEW |