blob: 8b5e67052a8145b0ea49f4802d6139afdd715fa0 [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",
12 "command_help.cc",
[email protected]60749e1c2013-08-19 21:11:0513 "command_refs.cc",
[email protected]93c19fd22013-08-06 19:34:4414 "commands.cc",
15 "commands.h",
[email protected]ceb18412013-07-31 19:17:5816 "config.cc",
17 "config.h",
[email protected]93c19fd22013-08-06 19:34:4418 "config_values.cc",
[email protected]ceb18412013-07-31 19:17:5819 "config_values.h",
20 "config_values_extractors.cc",
21 "config_values_extractors.h",
22 "config_values_generator.cc",
23 "config_values_generator.h",
[email protected]c0822d7f2013-08-13 17:10:5624 "copy_target_generator.cc",
25 "copy_target_generator.h",
[email protected]ceb18412013-07-31 19:17:5826 "err.cc",
27 "err.h",
28 "escape.cc",
29 "escape.h",
30 "file_template.cc",
31 "file_template.h",
32 "filesystem_utils.cc",
33 "filesystem_utils.h",
34 "functions.cc",
35 "functions.h",
36 "functions_target.cc",
37 "function_exec_script.cc",
38 "function_process_file_template.cc",
39 "function_read_file.cc",
40 "function_set_default_toolchain.cc",
41 "function_template.cc",
42 "function_toolchain.cc",
43 "function_write_file.cc",
[email protected]c0822d7f2013-08-13 17:10:5644 "group_target_generator.cc",
45 "group_target_generator.h",
[email protected]ceb18412013-07-31 19:17:5846 "import_manager.cc",
47 "import_manager.h",
48 "input_conversion.cc",
49 "input_conversion.h",
50 "input_file.cc",
51 "input_file.h",
52 "input_file_manager.cc",
53 "input_file_manager.h",
54 "item.cc",
55 "item.h",
56 "item_node.cc",
57 "item_node.h",
58 "item_tree.cc",
59 "item_tree.h",
60 "label.cc",
61 "label.h",
62 "location.h",
[email protected]c0822d7f2013-08-13 17:10:5663 "ninja_binary_target_writer.cc",
64 "ninja_binary_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5865 "ninja_build_writer.cc",
66 "ninja_build_writer.h",
[email protected]c0822d7f2013-08-13 17:10:5667 "ninja_copy_target_writer.cc",
68 "ninja_copy_target_writer.h",
69 "ninja_group_target_writer.cc",
70 "ninja_group_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5871 "ninja_helper.cc",
72 "ninja_helper.h",
[email protected]c0822d7f2013-08-13 17:10:5673 "ninja_script_target_writer.cc",
74 "ninja_script_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5875 "ninja_target_writer.cc",
76 "ninja_target_writer.h",
77 "ninja_toolchain_writer.cc",
78 "ninja_toolchain_writer.h",
79 "ninja_writer.cc",
80 "ninja_writer.h",
81 "operators.cc",
82 "operators.h",
83 "output_file.h",
84 "parse_tree.cc",
85 "parse_tree.h",
86 "parser.cc",
87 "parser.h",
88 "path_output.cc",
89 "path_output.h",
90 "pattern.cc",
91 "pattern.h",
92 "scheduler.cc",
93 "scheduler.h",
94 "scope.cc",
95 "scope.h",
96 "scope_per_file_provider.cc",
97 "scope_per_file_provider.h",
[email protected]c0822d7f2013-08-13 17:10:5698 "script_target_generator.cc",
99 "script_target_generator.h",
100 "script_values.cc",
101 "script_values.h",
[email protected]ceb18412013-07-31 19:17:58102 "settings.cc",
103 "settings.h",
104 "setup.cc",
105 "setup.h",
106 "source_dir.cc",
107 "source_dir.h",
108 "source_file.cc",
109 "source_file.h",
110 "standard_out.cc",
111 "standard_out.h",
112 "string_utils.cc",
113 "string_utils.h",
114 "target.cc",
115 "target.h",
116 "target_generator.cc",
117 "target_generator.h",
118 "target_manager.cc",
119 "target_manager.h",
120 "token.cc",
121 "token.h",
122 "tokenizer.cc",
123 "tokenizer.h",
124 "toolchain.cc",
125 "toolchain.h",
126 "toolchain_manager.cc",
127 "toolchain_manager.h",
128 "value.cc",
129 "value.h",
130 "value_extractors.cc",
131 "value_extractors.h",
[email protected]4441041b2013-08-06 21:11:06132 "variables.cc",
133 "variables.h",
[email protected]ceb18412013-07-31 19:17:58134 ]
135 deps = [
136 "//base",
137 "//base/third_party/dynamic_annotations",
138 ]
139}
140
141executable("gn") {
142 sources = [
143 "gn_main.cc",
144 ]
145 deps = [
146 ":gn_lib",
147 ]
148}
149
150test("gn_unittests") {
151 sources = [
152 "escape_unittest.cc",
153 "file_template_unittest.cc",
154 "filesystem_utils_unittest.cc",
155 "input_conversion_unittest.cc",
156 "label_unittest.cc",
157 "ninja_helper_unittest.cc",
158 "parser_unittest.cc",
159 "path_output_unittest.cc",
160 "pattern_unittest.cc",
161 "source_dir_unittest.cc",
162 "string_utils_unittest.cc",
163 "target_generator_unittest.cc",
164 "target_manager_unittest.cc",
165 "tokenizer_unittest.cc",
166 ]
167 deps = [
168 ":gn_lib",
169 "//base:run_all_unittests",
170 "//base:test_support_base",
171 "//testing:gtest",
172 ]
173}
174
175executable("generate_test_gn_data") {
176 sources = [ "generate_test_gn_data.cc" ]
177 deps = [ "//base" ]
178}