[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 1 | static_library("gn_lib") { |
| 2 | sources = [ |
[email protected] | 60749e1c | 2013-08-19 21:11:05 | [diff] [blame] | 3 | "args.cc", |
| 4 | "args.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 5 | "binary_target_generator.cc", |
| 6 | "binary_target_generator.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 7 | "build_settings.cc", |
| 8 | "build_settings.h", |
[email protected] | 60749e1c | 2013-08-19 21:11:05 | [diff] [blame] | 9 | "command_args.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 10 | "command_desc.cc", |
| 11 | "command_gen.cc", |
[email protected] | 0a79fe4 | 2013-08-29 21:06:26 | [diff] [blame] | 12 | "command_gyp.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 13 | "command_help.cc", |
[email protected] | 60749e1c | 2013-08-19 21:11:05 | [diff] [blame] | 14 | "command_refs.cc", |
[email protected] | 93c19fd2 | 2013-08-06 19:34:44 | [diff] [blame] | 15 | "commands.cc", |
| 16 | "commands.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 17 | "config.cc", |
| 18 | "config.h", |
[email protected] | 93c19fd2 | 2013-08-06 19:34:44 | [diff] [blame] | 19 | "config_values.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 20 | "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] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 25 | "copy_target_generator.cc", |
| 26 | "copy_target_generator.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 27 | "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] | ea3690c | 2013-09-23 17:59:22 | [diff] [blame^] | 41 | "function_rebase_path.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 42 | "function_set_default_toolchain.cc", |
[email protected] | 6b4ee78 | 2013-08-20 17:13:24 | [diff] [blame] | 43 | "function_set_defaults.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 44 | "function_template.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 45 | "function_toolchain.cc", |
| 46 | "function_write_file.cc", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 47 | "group_target_generator.cc", |
| 48 | "group_target_generator.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 49 | "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] | b0d3ad5d | 2013-09-16 23:31:36 | [diff] [blame] | 65 | "location.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 66 | "location.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 67 | "ninja_binary_target_writer.cc", |
| 68 | "ninja_binary_target_writer.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 69 | "ninja_build_writer.cc", |
| 70 | "ninja_build_writer.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 71 | "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] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 75 | "ninja_helper.cc", |
| 76 | "ninja_helper.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 77 | "ninja_script_target_writer.cc", |
| 78 | "ninja_script_target_writer.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 79 | "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] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 102 | "script_target_generator.cc", |
| 103 | "script_target_generator.h", |
| 104 | "script_values.cc", |
| 105 | "script_values.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 106 | "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] | 4441041b | 2013-08-06 21:11:06 | [diff] [blame] | 136 | "variables.cc", |
| 137 | "variables.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 138 | ] |
| 139 | deps = [ |
| 140 | "//base", |
| 141 | "//base/third_party/dynamic_annotations", |
| 142 | ] |
| 143 | } |
| 144 | |
| 145 | executable("gn") { |
| 146 | sources = [ |
| 147 | "gn_main.cc", |
| 148 | ] |
| 149 | deps = [ |
| 150 | ":gn_lib", |
| 151 | ] |
| 152 | } |
| 153 | |
| 154 | test("gn_unittests") { |
| 155 | sources = [ |
| 156 | "escape_unittest.cc", |
| 157 | "file_template_unittest.cc", |
| 158 | "filesystem_utils_unittest.cc", |
[email protected] | ea3690c | 2013-09-23 17:59:22 | [diff] [blame^] | 159 | "function_rebase_path_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 160 | "input_conversion_unittest.cc", |
| 161 | "label_unittest.cc", |
[email protected] | b90c75a | 2013-09-18 22:02:50 | [diff] [blame] | 162 | "ninja_copy_target_writer_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 163 | "ninja_helper_unittest.cc", |
[email protected] | b90c75a | 2013-09-18 22:02:50 | [diff] [blame] | 164 | "ninja_script_target_writer_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 165 | "parser_unittest.cc", |
| 166 | "path_output_unittest.cc", |
| 167 | "pattern_unittest.cc", |
[email protected] | 17f43bf | 2013-08-23 21:04:46 | [diff] [blame] | 168 | "scope_per_file_provider_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 169 | "source_dir_unittest.cc", |
| 170 | "string_utils_unittest.cc", |
| 171 | "target_generator_unittest.cc", |
| 172 | "target_manager_unittest.cc", |
[email protected] | 3c1274d | 2013-09-10 22:21:21 | [diff] [blame] | 173 | "target_unittest.cc", |
[email protected] | 43bf6a5 | 2013-09-17 16:54:24 | [diff] [blame] | 174 | "test_with_scope.cc", |
| 175 | "test_with_scope.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 176 | "tokenizer_unittest.cc", |
| 177 | ] |
| 178 | deps = [ |
| 179 | ":gn_lib", |
[email protected] | 0a79fe4 | 2013-08-29 21:06:26 | [diff] [blame] | 180 | "//base:run_all_unittests", |
| 181 | "//base:test_support_base", |
| 182 | "//testing:gtest", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 183 | ] |
| 184 | } |
| 185 | |
| 186 | executable("generate_test_gn_data") { |
| 187 | sources = [ "generate_test_gn_data.cc" ] |
| 188 | deps = [ "//base" ] |
| 189 | } |