Correct blacklist entry message
[chromium-blink-merge.git] / tools / gn / BUILD.gn
blob6195ff36c0dc1b02873968440ed4040718b12c2e
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
3 # found in the LICENSE file.
5 gyp_file = "gn.gyp"
7 static_library("gn_lib") {
8   sources = [
9     "args.cc",
10     "args.h",
11     "binary_target_generator.cc",
12     "binary_target_generator.h",
13     "build_settings.cc",
14     "build_settings.h",
15     "command_args.cc",
16     "command_desc.cc",
17     "command_gen.cc",
18     "command_gyp.cc",
19     "command_help.cc",
20     "command_refs.cc",
21     "commands.cc",
22     "commands.h",
23     "config.cc",
24     "config.h",
25     "config_values.cc",
26     "config_values.h",
27     "config_values_extractors.cc",
28     "config_values_extractors.h",
29     "config_values_generator.cc",
30     "config_values_generator.h",
31     "copy_target_generator.cc",
32     "copy_target_generator.h",
33     "err.cc",
34     "err.h",
35     "escape.cc",
36     "escape.h",
37     "file_template.cc",
38     "file_template.h",
39     "filesystem_utils.cc",
40     "filesystem_utils.h",
41     "functions.cc",
42     "functions.h",
43     "functions_target.cc",
44     "function_exec_script.cc",
45     "function_process_file_template.cc",
46     "function_read_file.cc",
47     "function_rebase_path.cc",
48     "function_set_default_toolchain.cc",
49     "function_set_defaults.cc",
50     "function_template.cc",
51     "function_toolchain.cc",
52     "function_write_file.cc",
53     "group_target_generator.cc",
54     "group_target_generator.h",
55     "gyp_binary_target_writer.cc",
56     "gyp_binary_target_writer.h",
57     "gyp_helper.cc",
58     "gyp_helper.h",
59     "gyp_target_writer.cc",
60     "gyp_target_writer.h",
61     "import_manager.cc",
62     "import_manager.h",
63     "input_conversion.cc",
64     "input_conversion.h",
65     "input_file.cc",
66     "input_file.h",
67     "input_file_manager.cc",
68     "input_file_manager.h",
69     "item.cc",
70     "item.h",
71     "item_node.cc",
72     "item_node.h",
73     "item_tree.cc",
74     "item_tree.h",
75     "label.cc",
76     "label.h",
77     "label_ptr.h",
78     "location.cc",
79     "location.h",
80     "ninja_binary_target_writer.cc",
81     "ninja_binary_target_writer.h",
82     "ninja_build_writer.cc",
83     "ninja_build_writer.h",
84     "ninja_copy_target_writer.cc",
85     "ninja_copy_target_writer.h",
86     "ninja_group_target_writer.cc",
87     "ninja_group_target_writer.h",
88     "ninja_helper.cc",
89     "ninja_helper.h",
90     "ninja_script_target_writer.cc",
91     "ninja_script_target_writer.h",
92     "ninja_target_writer.cc",
93     "ninja_target_writer.h",
94     "ninja_toolchain_writer.cc",
95     "ninja_toolchain_writer.h",
96     "ninja_writer.cc",
97     "ninja_writer.h",
98     "operators.cc",
99     "operators.h",
100     "output_file.h",
101     "parse_tree.cc",
102     "parse_tree.h",
103     "parser.cc",
104     "parser.h",
105     "path_output.cc",
106     "path_output.h",
107     "pattern.cc",
108     "pattern.h",
109     "scheduler.cc",
110     "scheduler.h",
111     "scope.cc",
112     "scope.h",
113     "scope_per_file_provider.cc",
114     "scope_per_file_provider.h",
115     "script_target_generator.cc",
116     "script_target_generator.h",
117     "script_values.cc",
118     "script_values.h",
119     "settings.cc",
120     "settings.h",
121     "setup.cc",
122     "setup.h",
123     "source_dir.cc",
124     "source_dir.h",
125     "source_file.cc",
126     "source_file.h",
127     "standard_out.cc",
128     "standard_out.h",
129     "string_utils.cc",
130     "string_utils.h",
131     "target.cc",
132     "target.h",
133     "target_generator.cc",
134     "target_generator.h",
135     "target_manager.cc",
136     "target_manager.h",
137     "token.cc",
138     "token.h",
139     "tokenizer.cc",
140     "tokenizer.h",
141     "toolchain.cc",
142     "toolchain.h",
143     "toolchain_manager.cc",
144     "toolchain_manager.h",
145     "trace.cc",
146     "trace.h",
147     "value.cc",
148     "value.h",
149     "value_extractors.cc",
150     "value_extractors.h",
151     "variables.cc",
152     "variables.h",
153   ]
154   deps = [
155     "//base",
156     "//base/third_party/dynamic_annotations",
157   ]
160 executable("gn") {
161   sources = [
162     "gn_main.cc",
163   ]
164   deps = [
165     ":gn_lib",
166   ]
169 test("gn_unittests") {
170   sources = [
171     "escape_unittest.cc",
172     "file_template_unittest.cc",
173     "filesystem_utils_unittest.cc",
174     "function_rebase_path_unittest.cc",
175     "input_conversion_unittest.cc",
176     "label_unittest.cc",
177     "ninja_binary_target_writer_unittest.cc",
178     "ninja_copy_target_writer_unittest.cc",
179     "ninja_helper_unittest.cc",
180     "ninja_script_target_writer_unittest.cc",
181     "parser_unittest.cc",
182     "path_output_unittest.cc",
183     "pattern_unittest.cc",
184     "scope_per_file_provider_unittest.cc",
185     "source_dir_unittest.cc",
186     "string_utils_unittest.cc",
187     "target_generator_unittest.cc",
188     "target_manager_unittest.cc",
189     "target_unittest.cc",
190     "test_with_scope.cc",
191     "test_with_scope.h",
192     "tokenizer_unittest.cc",
193   ]
194   deps = [
195     ":gn_lib",
196     "//base:run_all_unittests",
197     "//base:test_support_base",
198     "//testing:gtest",
199   ]
202 executable("generate_test_gn_data") {
203   sources = [ "generate_test_gn_data.cc" ]
204   deps = [ "//base" ]