OLD | NEW |
---|---|
(Empty) | |
1 static_library("gn_lib") { | |
tfarina
2013/07/29 21:51:23
this looks very similar to the BUILD file shown in
| |
2 sources = [ | |
3 "build_settings.cc", | |
4 "build_settings.h", | |
5 "command_desc.cc", | |
6 "command_desc.h", | |
7 "command_gen.cc", | |
8 "command_gen.h", | |
9 "command.cc", | |
10 "config.cc", | |
11 "config.h", | |
12 "config_values.h", | |
13 "config_values_extractors.cc", | |
14 "config_values_extractors.h", | |
15 "config_values_generator.cc", | |
16 "config_values_generator.h", | |
17 "err.cc", | |
18 "err.h", | |
19 "escape.cc", | |
20 "escape.h", | |
21 "file_template.cc", | |
22 "file_template.h", | |
23 "filesystem_utils.cc", | |
24 "filesystem_utils.h", | |
25 "functions.cc", | |
26 "functions.h", | |
27 "functions_target.cc", | |
28 "function_exec_script.cc", | |
29 "function_process_file_template.cc", | |
30 "function_read_file.cc", | |
31 "function_set_default_toolchain.cc", | |
32 "function_template.cc", | |
33 "function_toolchain.cc", | |
34 "function_write_file.cc", | |
35 "import_manager.cc", | |
36 "import_manager.h", | |
37 "input_conversion.cc", | |
38 "input_conversion.h", | |
39 "input_file.cc", | |
40 "input_file.h", | |
41 "input_file_manager.cc", | |
42 "input_file_manager.h", | |
43 "item.cc", | |
44 "item.h", | |
45 "item_node.cc", | |
46 "item_node.h", | |
47 "item_tree.cc", | |
48 "item_tree.h", | |
49 "label.cc", | |
50 "label.h", | |
51 "location.h", | |
52 "ninja_build_writer.cc", | |
53 "ninja_build_writer.h", | |
54 "ninja_helper.cc", | |
55 "ninja_helper.h", | |
56 "ninja_target_writer.cc", | |
57 "ninja_target_writer.h", | |
58 "ninja_toolchain_writer.cc", | |
59 "ninja_toolchain_writer.h", | |
60 "ninja_writer.cc", | |
61 "ninja_writer.h", | |
62 "operators.cc", | |
63 "operators.h", | |
64 "output_file.h", | |
65 "parse_tree.cc", | |
66 "parse_tree.h", | |
67 "parser.cc", | |
68 "parser.h", | |
69 "path_output.cc", | |
70 "path_output.h", | |
71 "pattern.cc", | |
72 "pattern.h", | |
73 "scheduler.cc", | |
74 "scheduler.h", | |
75 "scope.cc", | |
76 "scope.h", | |
77 "scope_per_file_provider.cc", | |
78 "scope_per_file_provider.h", | |
79 "settings.cc", | |
80 "settings.h", | |
81 "setup.cc", | |
82 "setup.h", | |
83 "source_dir.cc", | |
84 "source_dir.h", | |
85 "source_file.cc", | |
86 "source_file.h", | |
87 "standard_out.cc", | |
88 "standard_out.h", | |
89 "string_utils.cc", | |
90 "string_utils.h", | |
91 "target.cc", | |
92 "target.h", | |
93 "target_generator.cc", | |
94 "target_generator.h", | |
95 "target_manager.cc", | |
96 "target_manager.h", | |
97 "token.cc", | |
98 "token.h", | |
99 "tokenizer.cc", | |
100 "tokenizer.h", | |
101 "toolchain.cc", | |
102 "toolchain.h", | |
103 "toolchain_manager.cc", | |
104 "toolchain_manager.h", | |
105 "value.cc", | |
106 "value.h", | |
107 "value_extractors.cc", | |
108 "value_extractors.h", | |
109 ] | |
110 deps = [ | |
111 "//base", | |
112 "//base/third_party/dynamic_annotations", | |
113 ] | |
114 } | |
115 | |
116 executable("gn") { | |
117 sources = [ | |
118 "gn_main.cc", | |
119 ] | |
120 deps = [ | |
121 ":gn_lib", | |
122 ] | |
123 } | |
124 | |
125 test("gn_unittests") { | |
126 sources = [ | |
127 "escape_unittest.cc", | |
128 "file_template_unittest.cc", | |
129 "filesystem_utils_unittest.cc", | |
130 "input_conversion_unittest.cc", | |
131 "label_unittest.cc", | |
132 "ninja_helper_unittest.cc", | |
133 "parser_unittest.cc", | |
134 "path_output_unittest.cc", | |
135 "pattern_unittest.cc", | |
136 "source_dir_unittest.cc", | |
137 "string_utils_unittest.cc", | |
138 "target_generator_unittest.cc", | |
139 "target_manager_unittest.cc", | |
140 "tokenizer_unittest.cc", | |
141 ] | |
142 deps = [ | |
143 ":gn_lib", | |
144 "//base:run_all_unittests", | |
145 "//base:test_support_base", | |
146 "//testing:gtest", | |
147 ] | |
148 } | |
149 | |
150 executable("generate_test_gn_data") { | |
151 sources = [ "generate_test_gn_data.cc" ] | |
152 deps = [ "//base" ] | |
153 } | |
OLD | NEW |