blob: 87ec6c664d5a7c2b3335f63788cce4b98a378506 [file] [log] [blame]
[email protected]e3730f812013-10-16 16:46:141# 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.
4
[email protected]15393202014-03-27 21:08:355defines = [ "GN_BUILD" ]
[email protected]9af0b832013-11-08 20:31:136
[email protected]ceb18412013-07-31 19:17:587static_library("gn_lib") {
8 sources = [
[email protected]2fbe1012014-03-20 17:59:159 "action_target_generator.cc",
10 "action_target_generator.h",
11 "action_values.cc",
12 "action_values.h",
[email protected]60749e1c2013-08-19 21:11:0513 "args.cc",
14 "args.h",
[email protected]c0822d7f2013-08-13 17:10:5615 "binary_target_generator.cc",
16 "binary_target_generator.h",
[email protected]ceb18412013-07-31 19:17:5817 "build_settings.cc",
18 "build_settings.h",
[email protected]26542b02013-11-08 23:25:0419 "builder.cc",
20 "builder.h",
21 "builder_record.cc",
22 "builder_record.h",
[email protected]126d8b52014-04-07 22:17:3523 "c_include_iterator.cc",
24 "c_include_iterator.h",
[email protected]60749e1c2013-08-19 21:11:0525 "command_args.cc",
[email protected]126d8b52014-04-07 22:17:3526 "command_check.cc",
[email protected]ceb18412013-07-31 19:17:5827 "command_desc.cc",
28 "command_gen.cc",
29 "command_help.cc",
[email protected]60749e1c2013-08-19 21:11:0530 "command_refs.cc",
[email protected]93c19fd22013-08-06 19:34:4431 "commands.cc",
32 "commands.h",
[email protected]ceb18412013-07-31 19:17:5833 "config.cc",
34 "config.h",
[email protected]93c19fd22013-08-06 19:34:4435 "config_values.cc",
[email protected]ceb18412013-07-31 19:17:5836 "config_values.h",
37 "config_values_extractors.cc",
38 "config_values_extractors.h",
39 "config_values_generator.cc",
40 "config_values_generator.h",
[email protected]c0822d7f2013-08-13 17:10:5641 "copy_target_generator.cc",
42 "copy_target_generator.h",
[email protected]ceb18412013-07-31 19:17:5843 "err.cc",
44 "err.h",
45 "escape.cc",
46 "escape.h",
47 "file_template.cc",
48 "file_template.h",
49 "filesystem_utils.cc",
50 "filesystem_utils.h",
51 "functions.cc",
52 "functions.h",
53 "functions_target.cc",
54 "function_exec_script.cc",
[email protected]92cafe52014-05-13 19:42:2555 "function_foreach.cc",
[email protected]7380ca72014-05-13 16:56:2056 "function_get_label_info.cc",
[email protected]01bd79b2014-06-05 17:36:2557 "function_get_path_info.cc",
[email protected]e1bd79f2014-05-05 20:27:5358 "function_get_target_outputs.cc",
[email protected]ceb18412013-07-31 19:17:5859 "function_process_file_template.cc",
60 "function_read_file.cc",
[email protected]ea3690c2013-09-23 17:59:2261 "function_rebase_path.cc",
[email protected]ceb18412013-07-31 19:17:5862 "function_set_default_toolchain.cc",
[email protected]6b4ee782013-08-20 17:13:2463 "function_set_defaults.cc",
[email protected]ceb18412013-07-31 19:17:5864 "function_template.cc",
65 "function_toolchain.cc",
66 "function_write_file.cc",
[email protected]c0822d7f2013-08-13 17:10:5667 "group_target_generator.cc",
68 "group_target_generator.h",
[email protected]126d8b52014-04-07 22:17:3569 "header_checker.cc",
70 "header_checker.h",
[email protected]ceb18412013-07-31 19:17:5871 "import_manager.cc",
72 "import_manager.h",
73 "input_conversion.cc",
74 "input_conversion.h",
75 "input_file.cc",
76 "input_file.h",
77 "input_file_manager.cc",
78 "input_file_manager.h",
79 "item.cc",
80 "item.h",
[email protected]ceb18412013-07-31 19:17:5881 "label.cc",
82 "label.h",
[email protected]68d1dd32013-11-01 21:59:5183 "label_ptr.h",
[email protected]26542b02013-11-08 23:25:0484 "loader.cc",
85 "loader.h",
[email protected]b0d3ad5d2013-09-16 23:31:3686 "location.cc",
[email protected]ceb18412013-07-31 19:17:5887 "location.h",
[email protected]2fbe1012014-03-20 17:59:1588 "ninja_action_target_writer.cc",
89 "ninja_action_target_writer.h",
[email protected]c0822d7f2013-08-13 17:10:5690 "ninja_binary_target_writer.cc",
91 "ninja_binary_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5892 "ninja_build_writer.cc",
93 "ninja_build_writer.h",
[email protected]c0822d7f2013-08-13 17:10:5694 "ninja_copy_target_writer.cc",
95 "ninja_copy_target_writer.h",
96 "ninja_group_target_writer.cc",
97 "ninja_group_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5898 "ninja_helper.cc",
99 "ninja_helper.h",
100 "ninja_target_writer.cc",
101 "ninja_target_writer.h",
102 "ninja_toolchain_writer.cc",
103 "ninja_toolchain_writer.h",
104 "ninja_writer.cc",
105 "ninja_writer.h",
106 "operators.cc",
107 "operators.h",
108 "output_file.h",
109 "parse_tree.cc",
110 "parse_tree.h",
111 "parser.cc",
112 "parser.h",
113 "path_output.cc",
114 "path_output.h",
115 "pattern.cc",
116 "pattern.h",
117 "scheduler.cc",
118 "scheduler.h",
119 "scope.cc",
120 "scope.h",
121 "scope_per_file_provider.cc",
122 "scope_per_file_provider.h",
123 "settings.cc",
124 "settings.h",
125 "setup.cc",
126 "setup.h",
127 "source_dir.cc",
128 "source_dir.h",
129 "source_file.cc",
130 "source_file.h",
131 "standard_out.cc",
132 "standard_out.h",
133 "string_utils.cc",
134 "string_utils.h",
135 "target.cc",
136 "target.h",
137 "target_generator.cc",
138 "target_generator.h",
[email protected]a4e862922014-03-27 21:16:22139 "template.cc",
140 "template.h",
[email protected]ceb18412013-07-31 19:17:58141 "token.cc",
142 "token.h",
143 "tokenizer.cc",
144 "tokenizer.h",
145 "toolchain.cc",
146 "toolchain.h",
[email protected]7f8c9fc2013-09-23 18:08:28147 "trace.cc",
148 "trace.h",
[email protected]ceb18412013-07-31 19:17:58149 "value.cc",
150 "value.h",
151 "value_extractors.cc",
152 "value_extractors.h",
[email protected]4441041b2013-08-06 21:11:06153 "variables.cc",
154 "variables.h",
[email protected]60c9d172014-04-01 21:45:11155 "visibility.cc",
156 "visibility.h",
[email protected]ceb18412013-07-31 19:17:58157 ]
[email protected]9af0b832013-11-08 20:31:13158
[email protected]ceb18412013-07-31 19:17:58159 deps = [
160 "//base",
161 "//base/third_party/dynamic_annotations",
162 ]
163}
164
165executable("gn") {
166 sources = [
167 "gn_main.cc",
168 ]
[email protected]9af0b832013-11-08 20:31:13169
[email protected]ceb18412013-07-31 19:17:58170 deps = [
171 ":gn_lib",
[email protected]15393202014-03-27 21:08:35172 "//build/util:last_change",
[email protected]ceb18412013-07-31 19:17:58173 ]
174}
175
176test("gn_unittests") {
177 sources = [
[email protected]26542b02013-11-08 23:25:04178 "builder_unittest.cc",
[email protected]126d8b52014-04-07 22:17:35179 "c_include_iterator_unittest.cc",
[email protected]58d2a902014-04-15 22:15:36180 "config_values_extractors_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58181 "escape_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58182 "filesystem_utils_unittest.cc",
[email protected]2fbe1012014-03-20 17:59:15183 "file_template_unittest.cc",
[email protected]92cafe52014-05-13 19:42:25184 "function_foreach_unittest.cc",
[email protected]7380ca72014-05-13 16:56:20185 "function_get_label_info_unittest.cc",
[email protected]01bd79b2014-06-05 17:36:25186 "function_get_path_info_unittest.cc",
[email protected]e1bd79f2014-05-05 20:27:53187 "function_get_target_outputs_unittest.cc",
[email protected]ea3690c2013-09-23 17:59:22188 "function_rebase_path_unittest.cc",
[email protected]fd546752014-05-30 16:24:33189 "function_write_file_unittest.cc",
[email protected]a4e862922014-03-27 21:16:22190 "functions_unittest.cc",
[email protected]126d8b52014-04-07 22:17:35191 "header_checker_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58192 "input_conversion_unittest.cc",
193 "label_unittest.cc",
[email protected]26542b02013-11-08 23:25:04194 "loader_unittest.cc",
[email protected]2fbe1012014-03-20 17:59:15195 "ninja_action_target_writer_unittest.cc",
[email protected]7ff2f5d2013-10-08 21:30:34196 "ninja_binary_target_writer_unittest.cc",
[email protected]b90c75a2013-09-18 22:02:50197 "ninja_copy_target_writer_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58198 "ninja_helper_unittest.cc",
[email protected]ef348fe2014-05-01 18:31:31199 "ninja_target_writer_unittest.cc",
[email protected]44196882013-12-21 05:31:11200 "operators_unittest.cc",
[email protected]51d01722014-03-26 16:57:07201 "parse_tree_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58202 "parser_unittest.cc",
203 "path_output_unittest.cc",
204 "pattern_unittest.cc",
[email protected]98756e22014-06-04 16:57:40205 "run_all_unittests.cc",
[email protected]17f43bf2013-08-23 21:04:46206 "scope_per_file_provider_unittest.cc",
[email protected]a2d0b7a2013-12-16 23:59:09207 "scope_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58208 "source_dir_unittest.cc",
209 "string_utils_unittest.cc",
210 "target_generator_unittest.cc",
[email protected]3c1274d2013-09-10 22:21:21211 "target_unittest.cc",
[email protected]1e3fbf7b2014-04-08 19:15:20212 "template_unittest.cc",
[email protected]43bf6a52013-09-17 16:54:24213 "test_with_scope.cc",
214 "test_with_scope.h",
[email protected]ceb18412013-07-31 19:17:58215 "tokenizer_unittest.cc",
[email protected]d5645f12014-05-03 04:32:19216 "value_unittest.cc",
[email protected]60c9d172014-04-01 21:45:11217 "visibility_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58218 ]
219 deps = [
220 ":gn_lib",
[email protected]cc7ec692014-04-08 17:20:38221 "//base/test:test_support",
[email protected]23e197d2013-12-31 12:14:01222 "//testing/gtest",
[email protected]ceb18412013-07-31 19:17:58223 ]
224}
225
226executable("generate_test_gn_data") {
227 sources = [ "generate_test_gn_data.cc" ]
228 deps = [ "//base" ]
229}