| OLD | NEW | 
|    1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |    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 |    2 # Use of this source code is governed by a BSD-style license that can be | 
|    3 # found in the LICENSE file. |    3 # found in the LICENSE file. | 
|    4  |    4  | 
|    5 gyp_file = "gn.gyp" |    5 gyp_file = "gn.gyp" | 
|    6  |    6  | 
|    7 # Not defined when doing a pure GYP build, this lets the code key off of |    7 # Not defined when doing a pure GYP build, this lets the code key off of | 
|    8 # GN-specific features (the last change target). |    8 # GN-specific features (the last change target). | 
|    9 defines = [ "GN_BUILD" ] |    9 defines = [ "GN_BUILD" ] | 
|   10  |   10  | 
|   11 static_library("gn_lib") { |   11 static_library("gn_lib") { | 
|   12   sources = [ |   12   sources = [ | 
|   13     "args.cc", |   13     "args.cc", | 
|   14     "args.h", |   14     "args.h", | 
|   15     "binary_target_generator.cc", |   15     "binary_target_generator.cc", | 
|   16     "binary_target_generator.h", |   16     "binary_target_generator.h", | 
|   17     "build_settings.cc", |   17     "build_settings.cc", | 
|   18     "build_settings.h", |   18     "build_settings.h", | 
 |   19     "builder.cc", | 
 |   20     "builder.h", | 
 |   21     "builder_record.cc", | 
 |   22     "builder_record.h", | 
|   19     "command_args.cc", |   23     "command_args.cc", | 
|   20     "command_desc.cc", |   24     "command_desc.cc", | 
|   21     "command_gen.cc", |   25     "command_gen.cc", | 
|   22     "command_gyp.cc", |   26     "command_gyp.cc", | 
|   23     "command_help.cc", |   27     "command_help.cc", | 
|   24     "command_refs.cc", |   28     "command_refs.cc", | 
|   25     "commands.cc", |   29     "commands.cc", | 
|   26     "commands.h", |   30     "commands.h", | 
|   27     "config.cc", |   31     "config.cc", | 
|   28     "config.h", |   32     "config.h", | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   65     "import_manager.cc", |   69     "import_manager.cc", | 
|   66     "import_manager.h", |   70     "import_manager.h", | 
|   67     "input_conversion.cc", |   71     "input_conversion.cc", | 
|   68     "input_conversion.h", |   72     "input_conversion.h", | 
|   69     "input_file.cc", |   73     "input_file.cc", | 
|   70     "input_file.h", |   74     "input_file.h", | 
|   71     "input_file_manager.cc", |   75     "input_file_manager.cc", | 
|   72     "input_file_manager.h", |   76     "input_file_manager.h", | 
|   73     "item.cc", |   77     "item.cc", | 
|   74     "item.h", |   78     "item.h", | 
|   75     "item_node.cc", |  | 
|   76     "item_node.h", |  | 
|   77     "item_tree.cc", |  | 
|   78     "item_tree.h", |  | 
|   79     "label.cc", |   79     "label.cc", | 
|   80     "label.h", |   80     "label.h", | 
|   81     "label_ptr.h", |   81     "label_ptr.h", | 
 |   82     "loader.cc", | 
 |   83     "loader.h", | 
|   82     "location.cc", |   84     "location.cc", | 
|   83     "location.h", |   85     "location.h", | 
|   84     "ninja_binary_target_writer.cc", |   86     "ninja_binary_target_writer.cc", | 
|   85     "ninja_binary_target_writer.h", |   87     "ninja_binary_target_writer.h", | 
|   86     "ninja_build_writer.cc", |   88     "ninja_build_writer.cc", | 
|   87     "ninja_build_writer.h", |   89     "ninja_build_writer.h", | 
|   88     "ninja_copy_target_writer.cc", |   90     "ninja_copy_target_writer.cc", | 
|   89     "ninja_copy_target_writer.h", |   91     "ninja_copy_target_writer.h", | 
|   90     "ninja_group_target_writer.cc", |   92     "ninja_group_target_writer.cc", | 
|   91     "ninja_group_target_writer.h", |   93     "ninja_group_target_writer.h", | 
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  129     "source_file.cc", |  131     "source_file.cc", | 
|  130     "source_file.h", |  132     "source_file.h", | 
|  131     "standard_out.cc", |  133     "standard_out.cc", | 
|  132     "standard_out.h", |  134     "standard_out.h", | 
|  133     "string_utils.cc", |  135     "string_utils.cc", | 
|  134     "string_utils.h", |  136     "string_utils.h", | 
|  135     "target.cc", |  137     "target.cc", | 
|  136     "target.h", |  138     "target.h", | 
|  137     "target_generator.cc", |  139     "target_generator.cc", | 
|  138     "target_generator.h", |  140     "target_generator.h", | 
|  139     "target_manager.cc", |  | 
|  140     "target_manager.h", |  | 
|  141     "token.cc", |  141     "token.cc", | 
|  142     "token.h", |  142     "token.h", | 
|  143     "tokenizer.cc", |  143     "tokenizer.cc", | 
|  144     "tokenizer.h", |  144     "tokenizer.h", | 
|  145     "toolchain.cc", |  145     "toolchain.cc", | 
|  146     "toolchain.h", |  146     "toolchain.h", | 
|  147     "toolchain_manager.cc", |  | 
|  148     "toolchain_manager.h", |  | 
|  149     "trace.cc", |  147     "trace.cc", | 
|  150     "trace.h", |  148     "trace.h", | 
|  151     "value.cc", |  149     "value.cc", | 
|  152     "value.h", |  150     "value.h", | 
|  153     "value_extractors.cc", |  151     "value_extractors.cc", | 
|  154     "value_extractors.h", |  152     "value_extractors.h", | 
|  155     "variables.cc", |  153     "variables.cc", | 
|  156     "variables.h", |  154     "variables.h", | 
|  157   ] |  155   ] | 
|  158  |  156  | 
|  159   deps = [ |  157   deps = [ | 
|  160     "//base", |  158     "//base", | 
|  161     "//base/third_party/dynamic_annotations", |  159     "//base/third_party/dynamic_annotations", | 
|  162     "//build/util:last_change", |  | 
|  163   ] |  160   ] | 
|  164 } |  161 } | 
|  165  |  162  | 
|  166 executable("gn") { |  163 executable("gn") { | 
|  167   sources = [ |  164   sources = [ | 
|  168     "gn_main.cc", |  165     "gn_main.cc", | 
|  169   ] |  166   ] | 
|  170  |  167  | 
|  171   deps = [ |  168   deps = [ | 
|  172     ":gn_lib", |  169     ":gn_lib", | 
 |  170     "//build/util:last_change", | 
|  173   ] |  171   ] | 
|  174 } |  172 } | 
|  175  |  173  | 
|  176 test("gn_unittests") { |  174 test("gn_unittests") { | 
|  177   sources = [ |  175   sources = [ | 
 |  176     "builder_unittest.cc", | 
|  178     "escape_unittest.cc", |  177     "escape_unittest.cc", | 
|  179     "file_template_unittest.cc", |  178     "file_template_unittest.cc", | 
|  180     "filesystem_utils_unittest.cc", |  179     "filesystem_utils_unittest.cc", | 
|  181     "function_rebase_path_unittest.cc", |  180     "function_rebase_path_unittest.cc", | 
|  182     "input_conversion_unittest.cc", |  181     "input_conversion_unittest.cc", | 
|  183     "label_unittest.cc", |  182     "label_unittest.cc", | 
 |  183     "loader_unittest.cc", | 
|  184     "ninja_binary_target_writer_unittest.cc", |  184     "ninja_binary_target_writer_unittest.cc", | 
|  185     "ninja_copy_target_writer_unittest.cc", |  185     "ninja_copy_target_writer_unittest.cc", | 
|  186     "ninja_helper_unittest.cc", |  186     "ninja_helper_unittest.cc", | 
|  187     "ninja_script_target_writer_unittest.cc", |  187     "ninja_script_target_writer_unittest.cc", | 
|  188     "parser_unittest.cc", |  188     "parser_unittest.cc", | 
|  189     "path_output_unittest.cc", |  189     "path_output_unittest.cc", | 
|  190     "pattern_unittest.cc", |  190     "pattern_unittest.cc", | 
|  191     "scope_per_file_provider_unittest.cc", |  191     "scope_per_file_provider_unittest.cc", | 
|  192     "source_dir_unittest.cc", |  192     "source_dir_unittest.cc", | 
|  193     "string_utils_unittest.cc", |  193     "string_utils_unittest.cc", | 
|  194     "target_generator_unittest.cc", |  194     "target_generator_unittest.cc", | 
|  195     "target_manager_unittest.cc", |  | 
|  196     "target_unittest.cc", |  195     "target_unittest.cc", | 
|  197     "test_with_scope.cc", |  196     "test_with_scope.cc", | 
|  198     "test_with_scope.h", |  197     "test_with_scope.h", | 
|  199     "tokenizer_unittest.cc", |  198     "tokenizer_unittest.cc", | 
|  200   ] |  199   ] | 
|  201   deps = [ |  200   deps = [ | 
|  202     ":gn_lib", |  201     ":gn_lib", | 
|  203     "//base:run_all_unittests", |  202     "//base:run_all_unittests", | 
|  204     "//base:test_support_base", |  203     "//base:test_support_base", | 
|  205     "//testing:gtest", |  204     "//testing:gtest", | 
|  206   ] |  205   ] | 
|  207 } |  206 } | 
|  208  |  207  | 
|  209 executable("generate_test_gn_data") { |  208 executable("generate_test_gn_data") { | 
|  210   sources = [ "generate_test_gn_data.cc" ] |  209   sources = [ "generate_test_gn_data.cc" ] | 
|  211   deps = [ "//base" ] |  210   deps = [ "//base" ] | 
|  212 } |  211 } | 
| OLD | NEW |