blob: 0d5f6cc44b1a4e0c2f5c6c5a2a7a0bda1848c855 [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",
[email protected]6b4ee782013-08-20 17:13:2441 "function_set_defaults.cc",
[email protected]ceb18412013-07-31 19:17:5842 "function_template.cc",
43 "function_toolchain.cc",
44 "function_write_file.cc",
[email protected]c0822d7f2013-08-13 17:10:5645 "group_target_generator.cc",
46 "group_target_generator.h",
[email protected]ceb18412013-07-31 19:17:5847 "import_manager.cc",
48 "import_manager.h",
49 "input_conversion.cc",
50 "input_conversion.h",
51 "input_file.cc",
52 "input_file.h",
53 "input_file_manager.cc",
54 "input_file_manager.h",
55 "item.cc",
56 "item.h",
57 "item_node.cc",
58 "item_node.h",
59 "item_tree.cc",
60 "item_tree.h",
61 "label.cc",
62 "label.h",
63 "location.h",
[email protected]c0822d7f2013-08-13 17:10:5664 "ninja_binary_target_writer.cc",
65 "ninja_binary_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5866 "ninja_build_writer.cc",
67 "ninja_build_writer.h",
[email protected]c0822d7f2013-08-13 17:10:5668 "ninja_copy_target_writer.cc",
69 "ninja_copy_target_writer.h",
70 "ninja_group_target_writer.cc",
71 "ninja_group_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5872 "ninja_helper.cc",
73 "ninja_helper.h",
[email protected]c0822d7f2013-08-13 17:10:5674 "ninja_script_target_writer.cc",
75 "ninja_script_target_writer.h",
[email protected]ceb18412013-07-31 19:17:5876 "ninja_target_writer.cc",
77 "ninja_target_writer.h",
78 "ninja_toolchain_writer.cc",
79 "ninja_toolchain_writer.h",
80 "ninja_writer.cc",
81 "ninja_writer.h",
82 "operators.cc",
83 "operators.h",
84 "output_file.h",
85 "parse_tree.cc",
86 "parse_tree.h",
87 "parser.cc",
88 "parser.h",
89 "path_output.cc",
90 "path_output.h",
91 "pattern.cc",
92 "pattern.h",
93 "scheduler.cc",
94 "scheduler.h",
95 "scope.cc",
96 "scope.h",
97 "scope_per_file_provider.cc",
98 "scope_per_file_provider.h",
[email protected]c0822d7f2013-08-13 17:10:5699 "script_target_generator.cc",
100 "script_target_generator.h",
101 "script_values.cc",
102 "script_values.h",
[email protected]ceb18412013-07-31 19:17:58103 "settings.cc",
104 "settings.h",
105 "setup.cc",
106 "setup.h",
107 "source_dir.cc",
108 "source_dir.h",
109 "source_file.cc",
110 "source_file.h",
111 "standard_out.cc",
112 "standard_out.h",
113 "string_utils.cc",
114 "string_utils.h",
115 "target.cc",
116 "target.h",
117 "target_generator.cc",
118 "target_generator.h",
119 "target_manager.cc",
120 "target_manager.h",
121 "token.cc",
122 "token.h",
123 "tokenizer.cc",
124 "tokenizer.h",
125 "toolchain.cc",
126 "toolchain.h",
127 "toolchain_manager.cc",
128 "toolchain_manager.h",
129 "value.cc",
130 "value.h",
131 "value_extractors.cc",
132 "value_extractors.h",
[email protected]4441041b2013-08-06 21:11:06133 "variables.cc",
134 "variables.h",
[email protected]ceb18412013-07-31 19:17:58135 ]
136 deps = [
137 "//base",
138 "//base/third_party/dynamic_annotations",
139 ]
140}
141
142executable("gn") {
143 sources = [
144 "gn_main.cc",
145 ]
146 deps = [
147 ":gn_lib",
148 ]
149}
150
151test("gn_unittests") {
152 sources = [
153 "escape_unittest.cc",
154 "file_template_unittest.cc",
155 "filesystem_utils_unittest.cc",
156 "input_conversion_unittest.cc",
157 "label_unittest.cc",
158 "ninja_helper_unittest.cc",
159 "parser_unittest.cc",
160 "path_output_unittest.cc",
161 "pattern_unittest.cc",
162 "source_dir_unittest.cc",
163 "string_utils_unittest.cc",
164 "target_generator_unittest.cc",
165 "target_manager_unittest.cc",
166 "tokenizer_unittest.cc",
167 ]
168 deps = [
169 ":gn_lib",
170 "//base:run_all_unittests",
171 "//base:test_support_base",
172 "//testing:gtest",
173 ]
174}
175
176executable("generate_test_gn_data") {
177 sources = [ "generate_test_gn_data.cc" ]
178 deps = [ "//base" ]
179}