[email protected] | e3730f81 | 2013-10-16 16:46:14 | [diff] [blame] | 1 | # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
[email protected] | 1539320 | 2014-03-27 21:08:35 | [diff] [blame] | 5 | defines = [ "GN_BUILD" ] |
[email protected] | 9af0b83 | 2013-11-08 20:31:13 | [diff] [blame] | 6 | |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 7 | static_library("gn_lib") { |
| 8 | sources = [ |
[email protected] | 2fbe101 | 2014-03-20 17:59:15 | [diff] [blame] | 9 | "action_target_generator.cc", |
| 10 | "action_target_generator.h", |
| 11 | "action_values.cc", |
| 12 | "action_values.h", |
[email protected] | 60749e1c | 2013-08-19 21:11:05 | [diff] [blame] | 13 | "args.cc", |
| 14 | "args.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 15 | "binary_target_generator.cc", |
| 16 | "binary_target_generator.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 17 | "build_settings.cc", |
| 18 | "build_settings.h", |
[email protected] | 26542b0 | 2013-11-08 23:25:04 | [diff] [blame] | 19 | "builder.cc", |
| 20 | "builder.h", |
| 21 | "builder_record.cc", |
| 22 | "builder_record.h", |
[email protected] | 126d8b5 | 2014-04-07 22:17:35 | [diff] [blame] | 23 | "c_include_iterator.cc", |
| 24 | "c_include_iterator.h", |
[email protected] | 60749e1c | 2013-08-19 21:11:05 | [diff] [blame] | 25 | "command_args.cc", |
[email protected] | 126d8b5 | 2014-04-07 22:17:35 | [diff] [blame] | 26 | "command_check.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 27 | "command_desc.cc", |
| 28 | "command_gen.cc", |
| 29 | "command_help.cc", |
[email protected] | 60749e1c | 2013-08-19 21:11:05 | [diff] [blame] | 30 | "command_refs.cc", |
[email protected] | 93c19fd2 | 2013-08-06 19:34:44 | [diff] [blame] | 31 | "commands.cc", |
| 32 | "commands.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 33 | "config.cc", |
| 34 | "config.h", |
[email protected] | 93c19fd2 | 2013-08-06 19:34:44 | [diff] [blame] | 35 | "config_values.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 36 | "config_values.h", |
| 37 | "config_values_extractors.cc", |
| 38 | "config_values_extractors.h", |
| 39 | "config_values_generator.cc", |
| 40 | "config_values_generator.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 41 | "copy_target_generator.cc", |
| 42 | "copy_target_generator.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 43 | "err.cc", |
| 44 | "err.h", |
| 45 | "escape.cc", |
| 46 | "escape.h", |
| 47 | "file_template.cc", |
| 48 | "file_template.h", |
| 49 | "filesystem_utils.cc", |
| 50 | "filesystem_utils.h", |
| 51 | "functions.cc", |
| 52 | "functions.h", |
| 53 | "functions_target.cc", |
| 54 | "function_exec_script.cc", |
[email protected] | 92cafe5 | 2014-05-13 19:42:25 | [diff] [blame] | 55 | "function_foreach.cc", |
[email protected] | 7380ca7 | 2014-05-13 16:56:20 | [diff] [blame] | 56 | "function_get_label_info.cc", |
[email protected] | 01bd79b | 2014-06-05 17:36:25 | [diff] [blame^] | 57 | "function_get_path_info.cc", |
[email protected] | e1bd79f | 2014-05-05 20:27:53 | [diff] [blame] | 58 | "function_get_target_outputs.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 59 | "function_process_file_template.cc", |
| 60 | "function_read_file.cc", |
[email protected] | ea3690c | 2013-09-23 17:59:22 | [diff] [blame] | 61 | "function_rebase_path.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 62 | "function_set_default_toolchain.cc", |
[email protected] | 6b4ee78 | 2013-08-20 17:13:24 | [diff] [blame] | 63 | "function_set_defaults.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 64 | "function_template.cc", |
| 65 | "function_toolchain.cc", |
| 66 | "function_write_file.cc", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 67 | "group_target_generator.cc", |
| 68 | "group_target_generator.h", |
[email protected] | 126d8b5 | 2014-04-07 22:17:35 | [diff] [blame] | 69 | "header_checker.cc", |
| 70 | "header_checker.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 71 | "import_manager.cc", |
| 72 | "import_manager.h", |
| 73 | "input_conversion.cc", |
| 74 | "input_conversion.h", |
| 75 | "input_file.cc", |
| 76 | "input_file.h", |
| 77 | "input_file_manager.cc", |
| 78 | "input_file_manager.h", |
| 79 | "item.cc", |
| 80 | "item.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 81 | "label.cc", |
| 82 | "label.h", |
[email protected] | 68d1dd3 | 2013-11-01 21:59:51 | [diff] [blame] | 83 | "label_ptr.h", |
[email protected] | 26542b0 | 2013-11-08 23:25:04 | [diff] [blame] | 84 | "loader.cc", |
| 85 | "loader.h", |
[email protected] | b0d3ad5d | 2013-09-16 23:31:36 | [diff] [blame] | 86 | "location.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 87 | "location.h", |
[email protected] | 2fbe101 | 2014-03-20 17:59:15 | [diff] [blame] | 88 | "ninja_action_target_writer.cc", |
| 89 | "ninja_action_target_writer.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 90 | "ninja_binary_target_writer.cc", |
| 91 | "ninja_binary_target_writer.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 92 | "ninja_build_writer.cc", |
| 93 | "ninja_build_writer.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 94 | "ninja_copy_target_writer.cc", |
| 95 | "ninja_copy_target_writer.h", |
| 96 | "ninja_group_target_writer.cc", |
| 97 | "ninja_group_target_writer.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 98 | "ninja_helper.cc", |
| 99 | "ninja_helper.h", |
| 100 | "ninja_target_writer.cc", |
| 101 | "ninja_target_writer.h", |
| 102 | "ninja_toolchain_writer.cc", |
| 103 | "ninja_toolchain_writer.h", |
| 104 | "ninja_writer.cc", |
| 105 | "ninja_writer.h", |
| 106 | "operators.cc", |
| 107 | "operators.h", |
| 108 | "output_file.h", |
| 109 | "parse_tree.cc", |
| 110 | "parse_tree.h", |
| 111 | "parser.cc", |
| 112 | "parser.h", |
| 113 | "path_output.cc", |
| 114 | "path_output.h", |
| 115 | "pattern.cc", |
| 116 | "pattern.h", |
| 117 | "scheduler.cc", |
| 118 | "scheduler.h", |
| 119 | "scope.cc", |
| 120 | "scope.h", |
| 121 | "scope_per_file_provider.cc", |
| 122 | "scope_per_file_provider.h", |
| 123 | "settings.cc", |
| 124 | "settings.h", |
| 125 | "setup.cc", |
| 126 | "setup.h", |
| 127 | "source_dir.cc", |
| 128 | "source_dir.h", |
| 129 | "source_file.cc", |
| 130 | "source_file.h", |
| 131 | "standard_out.cc", |
| 132 | "standard_out.h", |
| 133 | "string_utils.cc", |
| 134 | "string_utils.h", |
| 135 | "target.cc", |
| 136 | "target.h", |
| 137 | "target_generator.cc", |
| 138 | "target_generator.h", |
[email protected] | a4e86292 | 2014-03-27 21:16:22 | [diff] [blame] | 139 | "template.cc", |
| 140 | "template.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 141 | "token.cc", |
| 142 | "token.h", |
| 143 | "tokenizer.cc", |
| 144 | "tokenizer.h", |
| 145 | "toolchain.cc", |
| 146 | "toolchain.h", |
[email protected] | 7f8c9fc | 2013-09-23 18:08:28 | [diff] [blame] | 147 | "trace.cc", |
| 148 | "trace.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 149 | "value.cc", |
| 150 | "value.h", |
| 151 | "value_extractors.cc", |
| 152 | "value_extractors.h", |
[email protected] | 4441041b | 2013-08-06 21:11:06 | [diff] [blame] | 153 | "variables.cc", |
| 154 | "variables.h", |
[email protected] | 60c9d17 | 2014-04-01 21:45:11 | [diff] [blame] | 155 | "visibility.cc", |
| 156 | "visibility.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 157 | ] |
[email protected] | 9af0b83 | 2013-11-08 20:31:13 | [diff] [blame] | 158 | |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 159 | deps = [ |
| 160 | "//base", |
| 161 | "//base/third_party/dynamic_annotations", |
| 162 | ] |
| 163 | } |
| 164 | |
| 165 | executable("gn") { |
| 166 | sources = [ |
| 167 | "gn_main.cc", |
| 168 | ] |
[email protected] | 9af0b83 | 2013-11-08 20:31:13 | [diff] [blame] | 169 | |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 170 | deps = [ |
| 171 | ":gn_lib", |
[email protected] | 1539320 | 2014-03-27 21:08:35 | [diff] [blame] | 172 | "//build/util:last_change", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 173 | ] |
| 174 | } |
| 175 | |
| 176 | test("gn_unittests") { |
| 177 | sources = [ |
[email protected] | 26542b0 | 2013-11-08 23:25:04 | [diff] [blame] | 178 | "builder_unittest.cc", |
[email protected] | 126d8b5 | 2014-04-07 22:17:35 | [diff] [blame] | 179 | "c_include_iterator_unittest.cc", |
[email protected] | 58d2a90 | 2014-04-15 22:15:36 | [diff] [blame] | 180 | "config_values_extractors_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 181 | "escape_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 182 | "filesystem_utils_unittest.cc", |
[email protected] | 2fbe101 | 2014-03-20 17:59:15 | [diff] [blame] | 183 | "file_template_unittest.cc", |
[email protected] | 92cafe5 | 2014-05-13 19:42:25 | [diff] [blame] | 184 | "function_foreach_unittest.cc", |
[email protected] | 7380ca7 | 2014-05-13 16:56:20 | [diff] [blame] | 185 | "function_get_label_info_unittest.cc", |
[email protected] | 01bd79b | 2014-06-05 17:36:25 | [diff] [blame^] | 186 | "function_get_path_info_unittest.cc", |
[email protected] | e1bd79f | 2014-05-05 20:27:53 | [diff] [blame] | 187 | "function_get_target_outputs_unittest.cc", |
[email protected] | ea3690c | 2013-09-23 17:59:22 | [diff] [blame] | 188 | "function_rebase_path_unittest.cc", |
[email protected] | fd54675 | 2014-05-30 16:24:33 | [diff] [blame] | 189 | "function_write_file_unittest.cc", |
[email protected] | a4e86292 | 2014-03-27 21:16:22 | [diff] [blame] | 190 | "functions_unittest.cc", |
[email protected] | 126d8b5 | 2014-04-07 22:17:35 | [diff] [blame] | 191 | "header_checker_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 192 | "input_conversion_unittest.cc", |
| 193 | "label_unittest.cc", |
[email protected] | 26542b0 | 2013-11-08 23:25:04 | [diff] [blame] | 194 | "loader_unittest.cc", |
[email protected] | 2fbe101 | 2014-03-20 17:59:15 | [diff] [blame] | 195 | "ninja_action_target_writer_unittest.cc", |
[email protected] | 7ff2f5d | 2013-10-08 21:30:34 | [diff] [blame] | 196 | "ninja_binary_target_writer_unittest.cc", |
[email protected] | b90c75a | 2013-09-18 22:02:50 | [diff] [blame] | 197 | "ninja_copy_target_writer_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 198 | "ninja_helper_unittest.cc", |
[email protected] | ef348fe | 2014-05-01 18:31:31 | [diff] [blame] | 199 | "ninja_target_writer_unittest.cc", |
[email protected] | 4419688 | 2013-12-21 05:31:11 | [diff] [blame] | 200 | "operators_unittest.cc", |
[email protected] | 51d0172 | 2014-03-26 16:57:07 | [diff] [blame] | 201 | "parse_tree_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 202 | "parser_unittest.cc", |
| 203 | "path_output_unittest.cc", |
| 204 | "pattern_unittest.cc", |
[email protected] | 98756e2 | 2014-06-04 16:57:40 | [diff] [blame] | 205 | "run_all_unittests.cc", |
[email protected] | 17f43bf | 2013-08-23 21:04:46 | [diff] [blame] | 206 | "scope_per_file_provider_unittest.cc", |
[email protected] | a2d0b7a | 2013-12-16 23:59:09 | [diff] [blame] | 207 | "scope_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 208 | "source_dir_unittest.cc", |
| 209 | "string_utils_unittest.cc", |
| 210 | "target_generator_unittest.cc", |
[email protected] | 3c1274d | 2013-09-10 22:21:21 | [diff] [blame] | 211 | "target_unittest.cc", |
[email protected] | 1e3fbf7b | 2014-04-08 19:15:20 | [diff] [blame] | 212 | "template_unittest.cc", |
[email protected] | 43bf6a5 | 2013-09-17 16:54:24 | [diff] [blame] | 213 | "test_with_scope.cc", |
| 214 | "test_with_scope.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 215 | "tokenizer_unittest.cc", |
[email protected] | d5645f1 | 2014-05-03 04:32:19 | [diff] [blame] | 216 | "value_unittest.cc", |
[email protected] | 60c9d17 | 2014-04-01 21:45:11 | [diff] [blame] | 217 | "visibility_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 218 | ] |
| 219 | deps = [ |
| 220 | ":gn_lib", |
[email protected] | cc7ec69 | 2014-04-08 17:20:38 | [diff] [blame] | 221 | "//base/test:test_support", |
[email protected] | 23e197d | 2013-12-31 12:14:01 | [diff] [blame] | 222 | "//testing/gtest", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 223 | ] |
| 224 | } |
| 225 | |
| 226 | executable("generate_test_gn_data") { |
| 227 | sources = [ "generate_test_gn_data.cc" ] |
| 228 | deps = [ "//base" ] |
| 229 | } |