[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 | |
qsr | fb5251d1 | 2015-01-21 15:57:22 | [diff] [blame] | 5 | import("//testing/test.gni") |
thakis | e47a4763 | 2016-08-24 18:19:49 | [diff] [blame] | 6 | import("//testing/libfuzzer/fuzzer_test.gni") |
qsr | fb5251d1 | 2015-01-21 15:57:22 | [diff] [blame] | 7 | |
[email protected] | 1539320 | 2014-03-27 21:08:35 | [diff] [blame] | 8 | defines = [ "GN_BUILD" ] |
[email protected] | 9af0b83 | 2013-11-08 20:31:13 | [diff] [blame] | 9 | |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 10 | static_library("gn_lib") { |
brettw | 3dab5fe | 2015-06-29 23:00:15 | [diff] [blame] | 11 | configs += [ "//build/config:precompiled_headers" ] |
| 12 | |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 13 | sources = [ |
[email protected] | 2fbe101 | 2014-03-20 17:59:15 | [diff] [blame] | 14 | "action_target_generator.cc", |
| 15 | "action_target_generator.h", |
| 16 | "action_values.cc", |
| 17 | "action_values.h", |
dpranke | 6d8fdaa | 2016-08-30 03:37:40 | [diff] [blame^] | 18 | "analyzer.cc", |
| 19 | "analyzer.h", |
[email protected] | 60749e1c | 2013-08-19 21:11:05 | [diff] [blame] | 20 | "args.cc", |
| 21 | "args.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 22 | "binary_target_generator.cc", |
| 23 | "binary_target_generator.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 24 | "build_settings.cc", |
| 25 | "build_settings.h", |
[email protected] | 26542b0 | 2013-11-08 23:25:04 | [diff] [blame] | 26 | "builder.cc", |
| 27 | "builder.h", |
| 28 | "builder_record.cc", |
| 29 | "builder_record.h", |
sdefresne | 1232aae | 2016-03-10 20:16:36 | [diff] [blame] | 30 | "bundle_data.cc", |
| 31 | "bundle_data.h", |
sdefresne | db6b992c | 2016-03-04 16:32:19 | [diff] [blame] | 32 | "bundle_data_target_generator.cc", |
| 33 | "bundle_data_target_generator.h", |
sdefresne | 1232aae | 2016-03-10 20:16:36 | [diff] [blame] | 34 | "bundle_file_rule.cc", |
| 35 | "bundle_file_rule.h", |
[email protected] | 126d8b5 | 2014-04-07 22:17:35 | [diff] [blame] | 36 | "c_include_iterator.cc", |
| 37 | "c_include_iterator.h", |
dpranke | 6d8fdaa | 2016-08-30 03:37:40 | [diff] [blame^] | 38 | "command_analyze.cc", |
[email protected] | 60749e1c | 2013-08-19 21:11:05 | [diff] [blame] | 39 | "command_args.cc", |
[email protected] | 126d8b5 | 2014-04-07 22:17:35 | [diff] [blame] | 40 | "command_check.cc", |
tfarina | 7ad2166 | 2015-02-17 22:17:33 | [diff] [blame] | 41 | "command_clean.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 42 | "command_desc.cc", |
scottmg | 2dd93e8b | 2014-09-26 04:07:05 | [diff] [blame] | 43 | "command_format.cc", |
tfarina | 7ad2166 | 2015-02-17 22:17:33 | [diff] [blame] | 44 | "command_gen.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 45 | "command_help.cc", |
brettw | 3741b72 | 2014-08-29 17:07:20 | [diff] [blame] | 46 | "command_ls.cc", |
brettw | 14769fd | 2015-05-19 22:22:28 | [diff] [blame] | 47 | "command_path.cc", |
[email protected] | 60749e1c | 2013-08-19 21:11:05 | [diff] [blame] | 48 | "command_refs.cc", |
[email protected] | 93c19fd2 | 2013-08-06 19:34:44 | [diff] [blame] | 49 | "commands.cc", |
| 50 | "commands.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 51 | "config.cc", |
| 52 | "config.h", |
[email protected] | 93c19fd2 | 2013-08-06 19:34:44 | [diff] [blame] | 53 | "config_values.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 54 | "config_values.h", |
| 55 | "config_values_extractors.cc", |
| 56 | "config_values_extractors.h", |
| 57 | "config_values_generator.cc", |
| 58 | "config_values_generator.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 59 | "copy_target_generator.cc", |
| 60 | "copy_target_generator.h", |
sdefresne | 1232aae | 2016-03-10 20:16:36 | [diff] [blame] | 61 | "create_bundle_target_generator.cc", |
| 62 | "create_bundle_target_generator.h", |
brettw | c2e821a3 | 2014-09-17 01:07:14 | [diff] [blame] | 63 | "deps_iterator.cc", |
| 64 | "deps_iterator.h", |
dpranke | 05316e0 | 2016-07-19 00:45:18 | [diff] [blame] | 65 | "desc_builder.cc", |
| 66 | "desc_builder.h", |
pkotwicz | 19ca979d | 2016-02-19 19:39:45 | [diff] [blame] | 67 | "eclipse_writer.cc", |
| 68 | "eclipse_writer.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 69 | "err.cc", |
| 70 | "err.h", |
| 71 | "escape.cc", |
| 72 | "escape.h", |
cjhopman | 5579301 | 2014-10-16 19:19:40 | [diff] [blame] | 73 | "exec_process.cc", |
| 74 | "exec_process.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 75 | "filesystem_utils.cc", |
| 76 | "filesystem_utils.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 77 | "function_exec_script.cc", |
[email protected] | 92cafe5 | 2014-05-13 19:42:25 | [diff] [blame] | 78 | "function_foreach.cc", |
brettw | dc957e1a | 2015-08-03 21:54:36 | [diff] [blame] | 79 | "function_forward_variables_from.cc", |
[email protected] | 7380ca7 | 2014-05-13 16:56:20 | [diff] [blame] | 80 | "function_get_label_info.cc", |
[email protected] | 01bd79b | 2014-06-05 17:36:25 | [diff] [blame] | 81 | "function_get_path_info.cc", |
[email protected] | e1bd79f | 2014-05-05 20:27:53 | [diff] [blame] | 82 | "function_get_target_outputs.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 83 | "function_process_file_template.cc", |
| 84 | "function_read_file.cc", |
[email protected] | ea3690c | 2013-09-23 17:59:22 | [diff] [blame] | 85 | "function_rebase_path.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 86 | "function_set_default_toolchain.cc", |
[email protected] | 6b4ee78 | 2013-08-20 17:13:24 | [diff] [blame] | 87 | "function_set_defaults.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 88 | "function_template.cc", |
| 89 | "function_toolchain.cc", |
| 90 | "function_write_file.cc", |
scottmg | 7c7296f4 | 2015-02-28 02:23:09 | [diff] [blame] | 91 | "functions.cc", |
| 92 | "functions.h", |
| 93 | "functions_target.cc", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 94 | "group_target_generator.cc", |
| 95 | "group_target_generator.h", |
[email protected] | 126d8b5 | 2014-04-07 22:17:35 | [diff] [blame] | 96 | "header_checker.cc", |
| 97 | "header_checker.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 98 | "import_manager.cc", |
| 99 | "import_manager.h", |
brettw | 54d76753 | 2015-04-16 17:40:49 | [diff] [blame] | 100 | "inherited_libraries.cc", |
| 101 | "inherited_libraries.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 102 | "input_conversion.cc", |
| 103 | "input_conversion.h", |
| 104 | "input_file.cc", |
| 105 | "input_file.h", |
| 106 | "input_file_manager.cc", |
| 107 | "input_file_manager.h", |
| 108 | "item.cc", |
| 109 | "item.h", |
dpranke | 05316e0 | 2016-07-19 00:45:18 | [diff] [blame] | 110 | "json_project_writer.cc", |
| 111 | "json_project_writer.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 112 | "label.cc", |
| 113 | "label.h", |
brettw | 3741b72 | 2014-08-29 17:07:20 | [diff] [blame] | 114 | "label_pattern.cc", |
| 115 | "label_pattern.h", |
[email protected] | 68d1dd3 | 2013-11-01 21:59:51 | [diff] [blame] | 116 | "label_ptr.h", |
agrieve | f865ab8f | 2015-12-22 03:04:02 | [diff] [blame] | 117 | "lib_file.cc", |
| 118 | "lib_file.h", |
[email protected] | 26542b0 | 2013-11-08 23:25:04 | [diff] [blame] | 119 | "loader.cc", |
| 120 | "loader.h", |
[email protected] | b0d3ad5d | 2013-09-16 23:31:36 | [diff] [blame] | 121 | "location.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 122 | "location.h", |
[email protected] | 2fbe101 | 2014-03-20 17:59:15 | [diff] [blame] | 123 | "ninja_action_target_writer.cc", |
| 124 | "ninja_action_target_writer.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 125 | "ninja_binary_target_writer.cc", |
| 126 | "ninja_binary_target_writer.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 127 | "ninja_build_writer.cc", |
| 128 | "ninja_build_writer.h", |
sdefresne | db6b992c | 2016-03-04 16:32:19 | [diff] [blame] | 129 | "ninja_bundle_data_target_writer.cc", |
| 130 | "ninja_bundle_data_target_writer.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 131 | "ninja_copy_target_writer.cc", |
| 132 | "ninja_copy_target_writer.h", |
sdefresne | 1232aae | 2016-03-10 20:16:36 | [diff] [blame] | 133 | "ninja_create_bundle_target_writer.cc", |
| 134 | "ninja_create_bundle_target_writer.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 135 | "ninja_group_target_writer.cc", |
| 136 | "ninja_group_target_writer.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 137 | "ninja_target_writer.cc", |
| 138 | "ninja_target_writer.h", |
| 139 | "ninja_toolchain_writer.cc", |
| 140 | "ninja_toolchain_writer.h", |
scottmg | 7c7296f4 | 2015-02-28 02:23:09 | [diff] [blame] | 141 | "ninja_utils.cc", |
| 142 | "ninja_utils.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 143 | "ninja_writer.cc", |
| 144 | "ninja_writer.h", |
| 145 | "operators.cc", |
| 146 | "operators.h", |
[email protected] | 0dfcae7 | 2014-08-19 22:52:16 | [diff] [blame] | 147 | "output_file.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 148 | "output_file.h", |
brettw | c0ff886 | 2016-06-28 21:41:12 | [diff] [blame] | 149 | "parse_node_value_adapter.cc", |
| 150 | "parse_node_value_adapter.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 151 | "parse_tree.cc", |
| 152 | "parse_tree.h", |
| 153 | "parser.cc", |
| 154 | "parser.h", |
| 155 | "path_output.cc", |
| 156 | "path_output.h", |
| 157 | "pattern.cc", |
| 158 | "pattern.h", |
sdefresne | 40451c5 | 2016-06-04 12:37:29 | [diff] [blame] | 159 | "pool.cc", |
| 160 | "pool.h", |
kolczyk | af72603e | 2016-05-13 13:41:32 | [diff] [blame] | 161 | "qt_creator_writer.cc", |
| 162 | "qt_creator_writer.h", |
brettw | 0db9185 | 2015-05-14 23:40:20 | [diff] [blame] | 163 | "runtime_deps.cc", |
| 164 | "runtime_deps.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 165 | "scheduler.cc", |
| 166 | "scheduler.h", |
| 167 | "scope.cc", |
| 168 | "scope.h", |
| 169 | "scope_per_file_provider.cc", |
| 170 | "scope_per_file_provider.h", |
| 171 | "settings.cc", |
| 172 | "settings.h", |
| 173 | "setup.cc", |
| 174 | "setup.h", |
| 175 | "source_dir.cc", |
| 176 | "source_dir.h", |
| 177 | "source_file.cc", |
| 178 | "source_file.h", |
[email protected] | 0dfcae7 | 2014-08-19 22:52:16 | [diff] [blame] | 179 | "source_file_type.cc", |
| 180 | "source_file_type.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 181 | "standard_out.cc", |
| 182 | "standard_out.h", |
| 183 | "string_utils.cc", |
| 184 | "string_utils.h", |
[email protected] | 012db594 | 2014-08-06 20:38:45 | [diff] [blame] | 185 | "substitution_list.cc", |
| 186 | "substitution_list.h", |
| 187 | "substitution_pattern.cc", |
| 188 | "substitution_pattern.h", |
| 189 | "substitution_type.cc", |
| 190 | "substitution_type.h", |
| 191 | "substitution_writer.cc", |
| 192 | "substitution_writer.h", |
brettw | 86a7f4bd | 2014-11-26 22:07:28 | [diff] [blame] | 193 | "switches.cc", |
| 194 | "switches.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 195 | "target.cc", |
| 196 | "target.h", |
| 197 | "target_generator.cc", |
| 198 | "target_generator.h", |
[email protected] | a4e86292 | 2014-03-27 21:16:22 | [diff] [blame] | 199 | "template.cc", |
| 200 | "template.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 201 | "token.cc", |
| 202 | "token.h", |
| 203 | "tokenizer.cc", |
scottmg | 7c7296f4 | 2015-02-28 02:23:09 | [diff] [blame] | 204 | "tokenizer.h", |
[email protected] | 0dfcae7 | 2014-08-19 22:52:16 | [diff] [blame] | 205 | "tool.cc", |
| 206 | "tool.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 207 | "toolchain.cc", |
| 208 | "toolchain.h", |
[email protected] | 7f8c9fc | 2013-09-23 18:08:28 | [diff] [blame] | 209 | "trace.cc", |
| 210 | "trace.h", |
[email protected] | 8fc5618 | 2014-08-06 21:44:33 | [diff] [blame] | 211 | "unique_vector.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 212 | "value.cc", |
| 213 | "value.h", |
| 214 | "value_extractors.cc", |
| 215 | "value_extractors.h", |
[email protected] | 4441041b | 2013-08-06 21:11:06 | [diff] [blame] | 216 | "variables.cc", |
| 217 | "variables.h", |
[email protected] | 60c9d17 | 2014-04-01 21:45:11 | [diff] [blame] | 218 | "visibility.cc", |
| 219 | "visibility.h", |
tmoniuszko | 050f2069 | 2016-01-29 16:15:36 | [diff] [blame] | 220 | "visual_studio_utils.cc", |
| 221 | "visual_studio_utils.h", |
| 222 | "visual_studio_writer.cc", |
| 223 | "visual_studio_writer.h", |
sdefresne | 6ee04b5 | 2016-05-03 22:20:10 | [diff] [blame] | 224 | "xcode_object.cc", |
| 225 | "xcode_object.h", |
| 226 | "xcode_writer.cc", |
| 227 | "xcode_writer.h", |
tmoniuszko | 050f2069 | 2016-01-29 16:15:36 | [diff] [blame] | 228 | "xml_element_writer.cc", |
| 229 | "xml_element_writer.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 230 | ] |
[email protected] | 9af0b83 | 2013-11-08 20:31:13 | [diff] [blame] | 231 | |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 232 | deps = [ |
| 233 | "//base", |
| 234 | "//base/third_party/dynamic_annotations", |
| 235 | ] |
| 236 | } |
| 237 | |
Brett Wilson | 48c29f2 | 2014-08-25 19:06:58 | [diff] [blame] | 238 | action("last_commit_position") { |
| 239 | script = "last_commit_position.py" |
| 240 | |
| 241 | # This dependency forces a re-run when the code is synced. |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 242 | inputs = [ |
| 243 | "//build/util/LASTCHANGE", |
| 244 | ] |
Brett Wilson | 48c29f2 | 2014-08-25 19:06:58 | [diff] [blame] | 245 | |
| 246 | outfile = "$target_gen_dir/last_commit_position.h" |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 247 | outputs = [ |
| 248 | outfile, |
| 249 | ] |
Brett Wilson | 48c29f2 | 2014-08-25 19:06:58 | [diff] [blame] | 250 | |
| 251 | args = [ |
| 252 | rebase_path("//", root_build_dir), |
| 253 | rebase_path(outfile, root_build_dir), |
| 254 | "TOOLS_GN_LAST_COMMIT_POSITION_H_", |
| 255 | ] |
| 256 | } |
| 257 | |
brettw | e134d6c | 2015-08-03 21:06:01 | [diff] [blame] | 258 | # Note for Windows debugging: GN is super-multithreaded and uses a lot of STL. |
| 259 | # Iterator debugging on Windows does locking for every access, which ends up |
| 260 | # slowing down debug runtime from 0:36 to 9:40. If you want to run debug builds |
| 261 | # of GN over the large Chrome build, you will want to set the arg: |
| 262 | # enable_iterator_debugging = false |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 263 | executable("gn") { |
| 264 | sources = [ |
| 265 | "gn_main.cc", |
| 266 | ] |
[email protected] | 9af0b83 | 2013-11-08 20:31:13 | [diff] [blame] | 267 | |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 268 | deps = [ |
| 269 | ":gn_lib", |
Brett Wilson | 48c29f2 | 2014-08-25 19:06:58 | [diff] [blame] | 270 | ":last_commit_position", |
tfarina | b8e602bf | 2014-12-21 03:11:53 | [diff] [blame] | 271 | "//base", |
brettw | ba7a73d | 2015-08-31 22:17:39 | [diff] [blame] | 272 | "//build/config/sanitizers:deps", |
brucedawson | f9f7d629 | 2016-04-27 19:11:07 | [diff] [blame] | 273 | "//build/win:default_exe_manifest", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 274 | ] |
| 275 | } |
| 276 | |
| 277 | test("gn_unittests") { |
| 278 | sources = [ |
[email protected] | 012db594 | 2014-08-06 20:38:45 | [diff] [blame] | 279 | "action_target_generator_unittest.cc", |
dpranke | 6d8fdaa | 2016-08-30 03:37:40 | [diff] [blame^] | 280 | "analyzer_unittest.cc", |
sky | ca5cccef | 2015-03-16 18:06:00 | [diff] [blame] | 281 | "args_unittest.cc", |
[email protected] | 26542b0 | 2013-11-08 23:25:04 | [diff] [blame] | 282 | "builder_unittest.cc", |
[email protected] | 126d8b5 | 2014-04-07 22:17:35 | [diff] [blame] | 283 | "c_include_iterator_unittest.cc", |
scottmg | 2dd93e8b | 2014-09-26 04:07:05 | [diff] [blame] | 284 | "command_format_unittest.cc", |
brettw | bd14442 | 2015-09-16 22:31:33 | [diff] [blame] | 285 | "config_unittest.cc", |
[email protected] | 58d2a90 | 2014-04-15 22:15:36 | [diff] [blame] | 286 | "config_values_extractors_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 287 | "escape_unittest.cc", |
cjhopman | 5579301 | 2014-10-16 19:19:40 | [diff] [blame] | 288 | "exec_process_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 289 | "filesystem_utils_unittest.cc", |
[email protected] | 92cafe5 | 2014-05-13 19:42:25 | [diff] [blame] | 290 | "function_foreach_unittest.cc", |
brettw | dc957e1a | 2015-08-03 21:54:36 | [diff] [blame] | 291 | "function_forward_variables_from_unittest.cc", |
[email protected] | 7380ca7 | 2014-05-13 16:56:20 | [diff] [blame] | 292 | "function_get_label_info_unittest.cc", |
[email protected] | 01bd79b | 2014-06-05 17:36:25 | [diff] [blame] | 293 | "function_get_path_info_unittest.cc", |
[email protected] | e1bd79f | 2014-05-05 20:27:53 | [diff] [blame] | 294 | "function_get_target_outputs_unittest.cc", |
[email protected] | 209d521c | 2014-08-12 23:29:06 | [diff] [blame] | 295 | "function_process_file_template_unittest.cc", |
[email protected] | ea3690c | 2013-09-23 17:59:22 | [diff] [blame] | 296 | "function_rebase_path_unittest.cc", |
brettw | ba1286d | 2016-08-11 04:33:18 | [diff] [blame] | 297 | "function_template_unittest.cc", |
brettw | 15e0e74f | 2016-07-26 18:00:24 | [diff] [blame] | 298 | "function_toolchain_unittest.cc", |
[email protected] | fd54675 | 2014-05-30 16:24:33 | [diff] [blame] | 299 | "function_write_file_unittest.cc", |
[email protected] | 3ffa36a | 2014-07-24 21:01:50 | [diff] [blame] | 300 | "functions_target_unittest.cc", |
[email protected] | a4e86292 | 2014-03-27 21:16:22 | [diff] [blame] | 301 | "functions_unittest.cc", |
[email protected] | 126d8b5 | 2014-04-07 22:17:35 | [diff] [blame] | 302 | "header_checker_unittest.cc", |
brettw | 54d76753 | 2015-04-16 17:40:49 | [diff] [blame] | 303 | "inherited_libraries_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 304 | "input_conversion_unittest.cc", |
brettw | 3741b72 | 2014-08-29 17:07:20 | [diff] [blame] | 305 | "label_pattern_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 306 | "label_unittest.cc", |
[email protected] | 26542b0 | 2013-11-08 23:25:04 | [diff] [blame] | 307 | "loader_unittest.cc", |
[email protected] | 2fbe101 | 2014-03-20 17:59:15 | [diff] [blame] | 308 | "ninja_action_target_writer_unittest.cc", |
[email protected] | 7ff2f5d | 2013-10-08 21:30:34 | [diff] [blame] | 309 | "ninja_binary_target_writer_unittest.cc", |
agrieve | 83671be | 2016-03-31 19:33:34 | [diff] [blame] | 310 | "ninja_build_writer_unittest.cc", |
sdefresne | 4c75ba48 | 2016-06-30 21:59:03 | [diff] [blame] | 311 | "ninja_bundle_data_target_writer_unittest.cc", |
[email protected] | b90c75a | 2013-09-18 22:02:50 | [diff] [blame] | 312 | "ninja_copy_target_writer_unittest.cc", |
sdefresne | 1232aae | 2016-03-10 20:16:36 | [diff] [blame] | 313 | "ninja_create_bundle_target_writer_unittest.cc", |
cjhopman | 1b668a2e9 | 2014-09-09 16:30:40 | [diff] [blame] | 314 | "ninja_group_target_writer_unittest.cc", |
[email protected] | ef348fe | 2014-05-01 18:31:31 | [diff] [blame] | 315 | "ninja_target_writer_unittest.cc", |
[email protected] | 0dfcae7 | 2014-08-19 22:52:16 | [diff] [blame] | 316 | "ninja_toolchain_writer_unittest.cc", |
[email protected] | 4419688 | 2013-12-21 05:31:11 | [diff] [blame] | 317 | "operators_unittest.cc", |
[email protected] | 51d0172 | 2014-03-26 16:57:07 | [diff] [blame] | 318 | "parse_tree_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 319 | "parser_unittest.cc", |
| 320 | "path_output_unittest.cc", |
| 321 | "pattern_unittest.cc", |
brettw | 0db9185 | 2015-05-14 23:40:20 | [diff] [blame] | 322 | "runtime_deps_unittest.cc", |
[email protected] | 17f43bf | 2013-08-23 21:04:46 | [diff] [blame] | 323 | "scope_per_file_provider_unittest.cc", |
[email protected] | a2d0b7a | 2013-12-16 23:59:09 | [diff] [blame] | 324 | "scope_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 325 | "source_dir_unittest.cc", |
brettw | 8440203 | 2015-06-30 19:39:15 | [diff] [blame] | 326 | "source_file_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 327 | "string_utils_unittest.cc", |
[email protected] | 012db594 | 2014-08-06 20:38:45 | [diff] [blame] | 328 | "substitution_pattern_unittest.cc", |
| 329 | "substitution_writer_unittest.cc", |
[email protected] | 3c1274d | 2013-09-10 22:21:21 | [diff] [blame] | 330 | "target_unittest.cc", |
[email protected] | 1e3fbf7b | 2014-04-08 19:15:20 | [diff] [blame] | 331 | "template_unittest.cc", |
[email protected] | 43bf6a5 | 2013-09-17 16:54:24 | [diff] [blame] | 332 | "test_with_scope.cc", |
| 333 | "test_with_scope.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 334 | "tokenizer_unittest.cc", |
[email protected] | 8fc5618 | 2014-08-06 21:44:33 | [diff] [blame] | 335 | "unique_vector_unittest.cc", |
[email protected] | d5645f1 | 2014-05-03 04:32:19 | [diff] [blame] | 336 | "value_unittest.cc", |
[email protected] | 60c9d17 | 2014-04-01 21:45:11 | [diff] [blame] | 337 | "visibility_unittest.cc", |
tmoniuszko | 050f2069 | 2016-01-29 16:15:36 | [diff] [blame] | 338 | "visual_studio_utils_unittest.cc", |
| 339 | "visual_studio_writer_unittest.cc", |
| 340 | "xml_element_writer_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 341 | ] |
dpranke | 177c1e2 | 2015-07-22 23:07:43 | [diff] [blame] | 342 | |
| 343 | data = [ |
| 344 | "format_test_data/", |
| 345 | ] |
| 346 | |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 347 | deps = [ |
| 348 | ":gn_lib", |
tfarina | 55116bef | 2015-03-25 03:40:19 | [diff] [blame] | 349 | "//base/test:run_all_unittests", |
[email protected] | cc7ec69 | 2014-04-08 17:20:38 | [diff] [blame] | 350 | "//base/test:test_support", |
[email protected] | 23e197d | 2013-12-31 12:14:01 | [diff] [blame] | 351 | "//testing/gtest", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 352 | ] |
| 353 | } |
thakis | e47a4763 | 2016-08-24 18:19:49 | [diff] [blame] | 354 | |
| 355 | fuzzer_test("gn_parser_fuzzer") { |
| 356 | sources = [ |
| 357 | "parser_fuzzer.cc", |
| 358 | ] |
| 359 | deps = [ |
| 360 | ":gn_lib", |
| 361 | ] |
| 362 | } |