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