[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] | 60749e1c | 2013-08-19 21:11:05 | [diff] [blame] | 23 | "command_args.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 24 | "command_desc.cc", |
| 25 | "command_gen.cc", |
| 26 | "command_help.cc", |
[email protected] | 60749e1c | 2013-08-19 21:11:05 | [diff] [blame] | 27 | "command_refs.cc", |
[email protected] | 93c19fd2 | 2013-08-06 19:34:44 | [diff] [blame] | 28 | "commands.cc", |
| 29 | "commands.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 30 | "config.cc", |
| 31 | "config.h", |
[email protected] | 93c19fd2 | 2013-08-06 19:34:44 | [diff] [blame] | 32 | "config_values.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 33 | "config_values.h", |
| 34 | "config_values_extractors.cc", |
| 35 | "config_values_extractors.h", |
| 36 | "config_values_generator.cc", |
| 37 | "config_values_generator.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 38 | "copy_target_generator.cc", |
| 39 | "copy_target_generator.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 40 | "err.cc", |
| 41 | "err.h", |
| 42 | "escape.cc", |
| 43 | "escape.h", |
| 44 | "file_template.cc", |
| 45 | "file_template.h", |
| 46 | "filesystem_utils.cc", |
| 47 | "filesystem_utils.h", |
| 48 | "functions.cc", |
| 49 | "functions.h", |
| 50 | "functions_target.cc", |
| 51 | "function_exec_script.cc", |
| 52 | "function_process_file_template.cc", |
| 53 | "function_read_file.cc", |
[email protected] | ea3690c | 2013-09-23 17:59:22 | [diff] [blame] | 54 | "function_rebase_path.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 55 | "function_set_default_toolchain.cc", |
[email protected] | 6b4ee78 | 2013-08-20 17:13:24 | [diff] [blame] | 56 | "function_set_defaults.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 57 | "function_template.cc", |
| 58 | "function_toolchain.cc", |
| 59 | "function_write_file.cc", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 60 | "group_target_generator.cc", |
| 61 | "group_target_generator.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 62 | "import_manager.cc", |
| 63 | "import_manager.h", |
| 64 | "input_conversion.cc", |
| 65 | "input_conversion.h", |
| 66 | "input_file.cc", |
| 67 | "input_file.h", |
| 68 | "input_file_manager.cc", |
| 69 | "input_file_manager.h", |
| 70 | "item.cc", |
| 71 | "item.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 72 | "label.cc", |
| 73 | "label.h", |
[email protected] | 68d1dd3 | 2013-11-01 21:59:51 | [diff] [blame] | 74 | "label_ptr.h", |
[email protected] | 26542b0 | 2013-11-08 23:25:04 | [diff] [blame] | 75 | "loader.cc", |
| 76 | "loader.h", |
[email protected] | b0d3ad5d | 2013-09-16 23:31:36 | [diff] [blame] | 77 | "location.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 78 | "location.h", |
[email protected] | 2fbe101 | 2014-03-20 17:59:15 | [diff] [blame] | 79 | "ninja_action_target_writer.cc", |
| 80 | "ninja_action_target_writer.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 81 | "ninja_binary_target_writer.cc", |
| 82 | "ninja_binary_target_writer.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 83 | "ninja_build_writer.cc", |
| 84 | "ninja_build_writer.h", |
[email protected] | c0822d7f | 2013-08-13 17:10:56 | [diff] [blame] | 85 | "ninja_copy_target_writer.cc", |
| 86 | "ninja_copy_target_writer.h", |
| 87 | "ninja_group_target_writer.cc", |
| 88 | "ninja_group_target_writer.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 89 | "ninja_helper.cc", |
| 90 | "ninja_helper.h", |
| 91 | "ninja_target_writer.cc", |
| 92 | "ninja_target_writer.h", |
| 93 | "ninja_toolchain_writer.cc", |
| 94 | "ninja_toolchain_writer.h", |
| 95 | "ninja_writer.cc", |
| 96 | "ninja_writer.h", |
| 97 | "operators.cc", |
| 98 | "operators.h", |
| 99 | "output_file.h", |
| 100 | "parse_tree.cc", |
| 101 | "parse_tree.h", |
| 102 | "parser.cc", |
| 103 | "parser.h", |
| 104 | "path_output.cc", |
| 105 | "path_output.h", |
| 106 | "pattern.cc", |
| 107 | "pattern.h", |
| 108 | "scheduler.cc", |
| 109 | "scheduler.h", |
| 110 | "scope.cc", |
| 111 | "scope.h", |
| 112 | "scope_per_file_provider.cc", |
| 113 | "scope_per_file_provider.h", |
| 114 | "settings.cc", |
| 115 | "settings.h", |
| 116 | "setup.cc", |
| 117 | "setup.h", |
| 118 | "source_dir.cc", |
| 119 | "source_dir.h", |
| 120 | "source_file.cc", |
| 121 | "source_file.h", |
| 122 | "standard_out.cc", |
| 123 | "standard_out.h", |
| 124 | "string_utils.cc", |
| 125 | "string_utils.h", |
| 126 | "target.cc", |
| 127 | "target.h", |
| 128 | "target_generator.cc", |
| 129 | "target_generator.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 130 | "token.cc", |
| 131 | "token.h", |
| 132 | "tokenizer.cc", |
| 133 | "tokenizer.h", |
| 134 | "toolchain.cc", |
| 135 | "toolchain.h", |
[email protected] | 7f8c9fc | 2013-09-23 18:08:28 | [diff] [blame] | 136 | "trace.cc", |
| 137 | "trace.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 138 | "value.cc", |
| 139 | "value.h", |
| 140 | "value_extractors.cc", |
| 141 | "value_extractors.h", |
[email protected] | 4441041b | 2013-08-06 21:11:06 | [diff] [blame] | 142 | "variables.cc", |
| 143 | "variables.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 144 | ] |
[email protected] | 9af0b83 | 2013-11-08 20:31:13 | [diff] [blame] | 145 | |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 146 | deps = [ |
| 147 | "//base", |
| 148 | "//base/third_party/dynamic_annotations", |
| 149 | ] |
| 150 | } |
| 151 | |
| 152 | executable("gn") { |
| 153 | sources = [ |
| 154 | "gn_main.cc", |
| 155 | ] |
[email protected] | 9af0b83 | 2013-11-08 20:31:13 | [diff] [blame] | 156 | |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 157 | deps = [ |
| 158 | ":gn_lib", |
[email protected] | 1539320 | 2014-03-27 21:08:35 | [diff] [blame^] | 159 | "//build/util:last_change", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 160 | ] |
| 161 | } |
| 162 | |
| 163 | test("gn_unittests") { |
| 164 | sources = [ |
[email protected] | 26542b0 | 2013-11-08 23:25:04 | [diff] [blame] | 165 | "builder_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 166 | "escape_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 167 | "filesystem_utils_unittest.cc", |
[email protected] | 2fbe101 | 2014-03-20 17:59:15 | [diff] [blame] | 168 | "file_template_unittest.cc", |
[email protected] | ea3690c | 2013-09-23 17:59:22 | [diff] [blame] | 169 | "function_rebase_path_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 170 | "input_conversion_unittest.cc", |
| 171 | "label_unittest.cc", |
[email protected] | 26542b0 | 2013-11-08 23:25:04 | [diff] [blame] | 172 | "loader_unittest.cc", |
[email protected] | 2fbe101 | 2014-03-20 17:59:15 | [diff] [blame] | 173 | "ninja_action_target_writer_unittest.cc", |
[email protected] | 7ff2f5d | 2013-10-08 21:30:34 | [diff] [blame] | 174 | "ninja_binary_target_writer_unittest.cc", |
[email protected] | b90c75a | 2013-09-18 22:02:50 | [diff] [blame] | 175 | "ninja_copy_target_writer_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 176 | "ninja_helper_unittest.cc", |
[email protected] | 4419688 | 2013-12-21 05:31:11 | [diff] [blame] | 177 | "operators_unittest.cc", |
[email protected] | 51d0172 | 2014-03-26 16:57:07 | [diff] [blame] | 178 | "parse_tree_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 179 | "parser_unittest.cc", |
| 180 | "path_output_unittest.cc", |
| 181 | "pattern_unittest.cc", |
[email protected] | 17f43bf | 2013-08-23 21:04:46 | [diff] [blame] | 182 | "scope_per_file_provider_unittest.cc", |
[email protected] | a2d0b7a | 2013-12-16 23:59:09 | [diff] [blame] | 183 | "scope_unittest.cc", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 184 | "source_dir_unittest.cc", |
| 185 | "string_utils_unittest.cc", |
| 186 | "target_generator_unittest.cc", |
[email protected] | 3c1274d | 2013-09-10 22:21:21 | [diff] [blame] | 187 | "target_unittest.cc", |
[email protected] | 43bf6a5 | 2013-09-17 16:54:24 | [diff] [blame] | 188 | "test_with_scope.cc", |
| 189 | "test_with_scope.h", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 190 | "tokenizer_unittest.cc", |
| 191 | ] |
| 192 | deps = [ |
| 193 | ":gn_lib", |
[email protected] | 5483752 | 2013-12-21 17:56:38 | [diff] [blame] | 194 | "//base/test:run_all_unittests", |
| 195 | "//base/test:test_support_base", |
[email protected] | 23e197d | 2013-12-31 12:14:01 | [diff] [blame] | 196 | "//testing/gtest", |
[email protected] | ceb1841 | 2013-07-31 19:17:58 | [diff] [blame] | 197 | ] |
| 198 | } |
| 199 | |
| 200 | executable("generate_test_gn_data") { |
| 201 | sources = [ "generate_test_gn_data.cc" ] |
| 202 | deps = [ "//base" ] |
| 203 | } |