blob: 455edf033053c75f4aa82e03ddbfb4f79591afb2 [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]60749e1c2013-08-19 21:11:0523 "command_args.cc",
[email protected]ceb18412013-07-31 19:17:5824 "command_desc.cc",
25 "command_gen.cc",
26 "command_help.cc",
[email protected]60749e1c2013-08-19 21:11:0527 "command_refs.cc",
[email protected]93c19fd22013-08-06 19:34:4428 "commands.cc",
29 "commands.h",
[email protected]ceb18412013-07-31 19:17:5830 "config.cc",
31 "config.h",
[email protected]93c19fd22013-08-06 19:34:4432 "config_values.cc",
[email protected]ceb18412013-07-31 19:17:5833 "config_values.h",
34 "config_values_extractors.cc",
35 "config_values_extractors.h",
36 "config_values_generator.cc",
37 "config_values_generator.h",
[email protected]c0822d7f2013-08-13 17:10:5638 "copy_target_generator.cc",
39 "copy_target_generator.h",
[email protected]ceb18412013-07-31 19:17:5840 "err.cc",
41 "err.h",
42 "escape.cc",
43 "escape.h",
44 "file_template.cc",
45 "file_template.h",
46 "filesystem_utils.cc",
47 "filesystem_utils.h",
48 "functions.cc",
49 "functions.h",
50 "functions_target.cc",
51 "function_exec_script.cc",
52 "function_process_file_template.cc",
53 "function_read_file.cc",
[email protected]ea3690c2013-09-23 17:59:2254 "function_rebase_path.cc",
[email protected]ceb18412013-07-31 19:17:5855 "function_set_default_toolchain.cc",
[email protected]6b4ee782013-08-20 17:13:2456 "function_set_defaults.cc",
[email protected]ceb18412013-07-31 19:17:5857 "function_template.cc",
58 "function_toolchain.cc",
59 "function_write_file.cc",
[email protected]c0822d7f2013-08-13 17:10:5660 "group_target_generator.cc",
61 "group_target_generator.h",
[email protected]ceb18412013-07-31 19:17:5862 "import_manager.cc",
63 "import_manager.h",
64 "input_conversion.cc",
65 "input_conversion.h",
66 "input_file.cc",
67 "input_file.h",
68 "input_file_manager.cc",
69 "input_file_manager.h",
70 "item.cc",
71 "item.h",
[email protected]ceb18412013-07-31 19:17:5872 "label.cc",
73 "label.h",
[email protected]68d1dd32013-11-01 21:59:5174 "label_ptr.h",
[email protected]26542b02013-11-08 23:25:0475 "loader.cc",
76 "loader.h",
[email protected]b0d3ad5d2013-09-16 23:31:3677 "location.cc",
[email protected]ceb18412013-07-31 19:17:5878 "location.h",
[email protected]2fbe1012014-03-20 17:59:1579 "ninja_action_target_writer.cc",
80 "ninja_action_target_writer.h",
[email protected]c0822d7f2013-08-13 17:10:5681 "ninja_binary_target_writer.cc",
82 "ninja_binary_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5883 "ninja_build_writer.cc",
84 "ninja_build_writer.h",
[email protected]c0822d7f2013-08-13 17:10:5685 "ninja_copy_target_writer.cc",
86 "ninja_copy_target_writer.h",
87 "ninja_group_target_writer.cc",
88 "ninja_group_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5889 "ninja_helper.cc",
90 "ninja_helper.h",
91 "ninja_target_writer.cc",
92 "ninja_target_writer.h",
93 "ninja_toolchain_writer.cc",
94 "ninja_toolchain_writer.h",
95 "ninja_writer.cc",
96 "ninja_writer.h",
97 "operators.cc",
98 "operators.h",
99 "output_file.h",
100 "parse_tree.cc",
101 "parse_tree.h",
102 "parser.cc",
103 "parser.h",
104 "path_output.cc",
105 "path_output.h",
106 "pattern.cc",
107 "pattern.h",
108 "scheduler.cc",
109 "scheduler.h",
110 "scope.cc",
111 "scope.h",
112 "scope_per_file_provider.cc",
113 "scope_per_file_provider.h",
114 "settings.cc",
115 "settings.h",
116 "setup.cc",
117 "setup.h",
118 "source_dir.cc",
119 "source_dir.h",
120 "source_file.cc",
121 "source_file.h",
122 "standard_out.cc",
123 "standard_out.h",
124 "string_utils.cc",
125 "string_utils.h",
126 "target.cc",
127 "target.h",
128 "target_generator.cc",
129 "target_generator.h",
[email protected]ceb18412013-07-31 19:17:58130 "token.cc",
131 "token.h",
132 "tokenizer.cc",
133 "tokenizer.h",
134 "toolchain.cc",
135 "toolchain.h",
[email protected]7f8c9fc2013-09-23 18:08:28136 "trace.cc",
137 "trace.h",
[email protected]ceb18412013-07-31 19:17:58138 "value.cc",
139 "value.h",
140 "value_extractors.cc",
141 "value_extractors.h",
[email protected]4441041b2013-08-06 21:11:06142 "variables.cc",
143 "variables.h",
[email protected]ceb18412013-07-31 19:17:58144 ]
[email protected]9af0b832013-11-08 20:31:13145
[email protected]ceb18412013-07-31 19:17:58146 deps = [
147 "//base",
148 "//base/third_party/dynamic_annotations",
149 ]
150}
151
152executable("gn") {
153 sources = [
154 "gn_main.cc",
155 ]
[email protected]9af0b832013-11-08 20:31:13156
[email protected]ceb18412013-07-31 19:17:58157 deps = [
158 ":gn_lib",
[email protected]15393202014-03-27 21:08:35159 "//build/util:last_change",
[email protected]ceb18412013-07-31 19:17:58160 ]
161}
162
163test("gn_unittests") {
164 sources = [
[email protected]26542b02013-11-08 23:25:04165 "builder_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58166 "escape_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58167 "filesystem_utils_unittest.cc",
[email protected]2fbe1012014-03-20 17:59:15168 "file_template_unittest.cc",
[email protected]ea3690c2013-09-23 17:59:22169 "function_rebase_path_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58170 "input_conversion_unittest.cc",
171 "label_unittest.cc",
[email protected]26542b02013-11-08 23:25:04172 "loader_unittest.cc",
[email protected]2fbe1012014-03-20 17:59:15173 "ninja_action_target_writer_unittest.cc",
[email protected]7ff2f5d2013-10-08 21:30:34174 "ninja_binary_target_writer_unittest.cc",
[email protected]b90c75a2013-09-18 22:02:50175 "ninja_copy_target_writer_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58176 "ninja_helper_unittest.cc",
[email protected]44196882013-12-21 05:31:11177 "operators_unittest.cc",
[email protected]51d01722014-03-26 16:57:07178 "parse_tree_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58179 "parser_unittest.cc",
180 "path_output_unittest.cc",
181 "pattern_unittest.cc",
[email protected]17f43bf2013-08-23 21:04:46182 "scope_per_file_provider_unittest.cc",
[email protected]a2d0b7a2013-12-16 23:59:09183 "scope_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58184 "source_dir_unittest.cc",
185 "string_utils_unittest.cc",
186 "target_generator_unittest.cc",
[email protected]3c1274d2013-09-10 22:21:21187 "target_unittest.cc",
[email protected]43bf6a52013-09-17 16:54:24188 "test_with_scope.cc",
189 "test_with_scope.h",
[email protected]ceb18412013-07-31 19:17:58190 "tokenizer_unittest.cc",
191 ]
192 deps = [
193 ":gn_lib",
[email protected]54837522013-12-21 17:56:38194 "//base/test:run_all_unittests",
195 "//base/test:test_support_base",
[email protected]23e197d2013-12-31 12:14:01196 "//testing/gtest",
[email protected]ceb18412013-07-31 19:17:58197 ]
198}
199
200executable("generate_test_gn_data") {
201 sources = [ "generate_test_gn_data.cc" ]
202 deps = [ "//base" ]
203}