blob: 2c38661302d42af725c81e420f8933e9f6ea0d54 [file] [log] [blame]
[email protected]ceb18412013-07-31 19:17:581static_library("gn_lib") {
2 sources = [
[email protected]60749e1c2013-08-19 21:11:053 "args.cc",
4 "args.h",
[email protected]c0822d7f2013-08-13 17:10:565 "binary_target_generator.cc",
6 "binary_target_generator.h",
[email protected]ceb18412013-07-31 19:17:587 "build_settings.cc",
8 "build_settings.h",
[email protected]60749e1c2013-08-19 21:11:059 "command_args.cc",
[email protected]ceb18412013-07-31 19:17:5810 "command_desc.cc",
11 "command_gen.cc",
[email protected]0a79fe42013-08-29 21:06:2612 "command_gyp.cc",
[email protected]ceb18412013-07-31 19:17:5813 "command_help.cc",
[email protected]60749e1c2013-08-19 21:11:0514 "command_refs.cc",
[email protected]93c19fd22013-08-06 19:34:4415 "commands.cc",
16 "commands.h",
[email protected]ceb18412013-07-31 19:17:5817 "config.cc",
18 "config.h",
[email protected]93c19fd22013-08-06 19:34:4419 "config_values.cc",
[email protected]ceb18412013-07-31 19:17:5820 "config_values.h",
21 "config_values_extractors.cc",
22 "config_values_extractors.h",
23 "config_values_generator.cc",
24 "config_values_generator.h",
[email protected]c0822d7f2013-08-13 17:10:5625 "copy_target_generator.cc",
26 "copy_target_generator.h",
[email protected]ceb18412013-07-31 19:17:5827 "err.cc",
28 "err.h",
29 "escape.cc",
30 "escape.h",
31 "file_template.cc",
32 "file_template.h",
33 "filesystem_utils.cc",
34 "filesystem_utils.h",
35 "functions.cc",
36 "functions.h",
37 "functions_target.cc",
38 "function_exec_script.cc",
39 "function_process_file_template.cc",
40 "function_read_file.cc",
[email protected]ea3690c2013-09-23 17:59:2241 "function_rebase_path.cc",
[email protected]ceb18412013-07-31 19:17:5842 "function_set_default_toolchain.cc",
[email protected]6b4ee782013-08-20 17:13:2443 "function_set_defaults.cc",
[email protected]ceb18412013-07-31 19:17:5844 "function_template.cc",
[email protected]ceb18412013-07-31 19:17:5845 "function_toolchain.cc",
46 "function_write_file.cc",
[email protected]c0822d7f2013-08-13 17:10:5647 "group_target_generator.cc",
48 "group_target_generator.h",
[email protected]ceb18412013-07-31 19:17:5849 "import_manager.cc",
50 "import_manager.h",
51 "input_conversion.cc",
52 "input_conversion.h",
53 "input_file.cc",
54 "input_file.h",
55 "input_file_manager.cc",
56 "input_file_manager.h",
57 "item.cc",
58 "item.h",
59 "item_node.cc",
60 "item_node.h",
61 "item_tree.cc",
62 "item_tree.h",
63 "label.cc",
64 "label.h",
[email protected]b0d3ad5d2013-09-16 23:31:3665 "location.cc",
[email protected]ceb18412013-07-31 19:17:5866 "location.h",
[email protected]c0822d7f2013-08-13 17:10:5667 "ninja_binary_target_writer.cc",
68 "ninja_binary_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5869 "ninja_build_writer.cc",
70 "ninja_build_writer.h",
[email protected]c0822d7f2013-08-13 17:10:5671 "ninja_copy_target_writer.cc",
72 "ninja_copy_target_writer.h",
73 "ninja_group_target_writer.cc",
74 "ninja_group_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5875 "ninja_helper.cc",
76 "ninja_helper.h",
[email protected]c0822d7f2013-08-13 17:10:5677 "ninja_script_target_writer.cc",
78 "ninja_script_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5879 "ninja_target_writer.cc",
80 "ninja_target_writer.h",
81 "ninja_toolchain_writer.cc",
82 "ninja_toolchain_writer.h",
83 "ninja_writer.cc",
84 "ninja_writer.h",
85 "operators.cc",
86 "operators.h",
87 "output_file.h",
88 "parse_tree.cc",
89 "parse_tree.h",
90 "parser.cc",
91 "parser.h",
92 "path_output.cc",
93 "path_output.h",
94 "pattern.cc",
95 "pattern.h",
96 "scheduler.cc",
97 "scheduler.h",
98 "scope.cc",
99 "scope.h",
100 "scope_per_file_provider.cc",
101 "scope_per_file_provider.h",
[email protected]c0822d7f2013-08-13 17:10:56102 "script_target_generator.cc",
103 "script_target_generator.h",
104 "script_values.cc",
105 "script_values.h",
[email protected]ceb18412013-07-31 19:17:58106 "settings.cc",
107 "settings.h",
108 "setup.cc",
109 "setup.h",
110 "source_dir.cc",
111 "source_dir.h",
112 "source_file.cc",
113 "source_file.h",
114 "standard_out.cc",
115 "standard_out.h",
116 "string_utils.cc",
117 "string_utils.h",
118 "target.cc",
119 "target.h",
120 "target_generator.cc",
121 "target_generator.h",
122 "target_manager.cc",
123 "target_manager.h",
124 "token.cc",
125 "token.h",
126 "tokenizer.cc",
127 "tokenizer.h",
128 "toolchain.cc",
129 "toolchain.h",
130 "toolchain_manager.cc",
131 "toolchain_manager.h",
132 "value.cc",
133 "value.h",
134 "value_extractors.cc",
135 "value_extractors.h",
[email protected]4441041b2013-08-06 21:11:06136 "variables.cc",
137 "variables.h",
[email protected]ceb18412013-07-31 19:17:58138 ]
139 deps = [
140 "//base",
141 "//base/third_party/dynamic_annotations",
142 ]
143}
144
145executable("gn") {
146 sources = [
147 "gn_main.cc",
148 ]
149 deps = [
150 ":gn_lib",
151 ]
152}
153
154test("gn_unittests") {
155 sources = [
156 "escape_unittest.cc",
157 "file_template_unittest.cc",
158 "filesystem_utils_unittest.cc",
[email protected]ea3690c2013-09-23 17:59:22159 "function_rebase_path_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58160 "input_conversion_unittest.cc",
161 "label_unittest.cc",
[email protected]b90c75a2013-09-18 22:02:50162 "ninja_copy_target_writer_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58163 "ninja_helper_unittest.cc",
[email protected]b90c75a2013-09-18 22:02:50164 "ninja_script_target_writer_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58165 "parser_unittest.cc",
166 "path_output_unittest.cc",
167 "pattern_unittest.cc",
[email protected]17f43bf2013-08-23 21:04:46168 "scope_per_file_provider_unittest.cc",
[email protected]ceb18412013-07-31 19:17:58169 "source_dir_unittest.cc",
170 "string_utils_unittest.cc",
171 "target_generator_unittest.cc",
172 "target_manager_unittest.cc",
[email protected]3c1274d2013-09-10 22:21:21173 "target_unittest.cc",
[email protected]43bf6a52013-09-17 16:54:24174 "test_with_scope.cc",
175 "test_with_scope.h",
[email protected]ceb18412013-07-31 19:17:58176 "tokenizer_unittest.cc",
177 ]
178 deps = [
179 ":gn_lib",
[email protected]0a79fe42013-08-29 21:06:26180 "//base:run_all_unittests",
181 "//base:test_support_base",
182 "//testing:gtest",
[email protected]ceb18412013-07-31 19:17:58183 ]
184}
185
186executable("generate_test_gn_data") {
187 sources = [ "generate_test_gn_data.cc" ]
188 deps = [ "//base" ]
189}