1 { 2 'variables': { 3 'chromium_code': 1, 4 }, 5 'targets': [ 6 { 7 'target_name': 'gn_lib', 8 'type': 'static_library', 9 'dependencies': [ 10 '../../base/base.gyp:base', 11 ], 12 'sources': [ 13 'build_settings.cc', 14 'build_settings.h', 15 'command_desc.cc', 16 'command_gen.cc', 17 'command_help.cc', 18 'commands.cc', 19 'commands.h', 20 'config.cc', 21 'config.h', 22 'config_values.cc', 23 'config_values.h', 24 'config_values_extractors.cc', 25 'config_values_extractors.h', 26 'config_values_generator.cc', 27 'config_values_generator.h', 28 'err.cc', 29 'err.h', 30 'escape.cc', 31 'escape.h', 32 'file_template.cc', 33 'file_template.h', 34 'filesystem_utils.cc', 35 'filesystem_utils.h', 36 'functions_target.cc', 37 'functions.cc', 38 'functions.h', 39 'function_exec_script.cc', 40 'function_process_file_template.cc', 41 'function_read_file.cc', 42 'function_set_default_toolchain.cc', 43 'function_template.cc', 44 'function_toolchain.cc', 45 'function_write_file.cc', 46 'import_manager.cc', 47 'import_manager.h', 48 'input_conversion.cc', 49 'input_conversion.h', 50 'input_file.cc', 51 'input_file.h', 52 'input_file_manager.cc', 53 'input_file_manager.h', 54 'item.cc', 55 'item.h', 56 'item_node.cc', 57 'item_node.h', 58 'item_tree.cc', 59 'item_tree.h', 60 'label.cc', 61 'label.h', 62 'location.h', 63 'ninja_build_writer.cc', 64 'ninja_build_writer.h', 65 'ninja_helper.cc', 66 'ninja_helper.h', 67 'ninja_target_writer.cc', 68 'ninja_target_writer.h', 69 'ninja_toolchain_writer.cc', 70 'ninja_toolchain_writer.h', 71 'ninja_writer.cc', 72 'ninja_writer.h', 73 'operators.cc', 74 'operators.h', 75 'output_file.h', 76 'parse_tree.cc', 77 'parse_tree.h', 78 'parser.cc', 79 'parser.h', 80 'path_output.cc', 81 'path_output.h', 82 'pattern.cc', 83 'pattern.h', 84 'scheduler.cc', 85 'scheduler.h', 86 'scope.cc', 87 'scope.h', 88 'scope_per_file_provider.cc', 89 'scope_per_file_provider.h', 90 'settings.cc', 91 'settings.h', 92 'setup.cc', 93 'setup.h', 94 'source_dir.cc', 95 'source_dir.h', 96 'source_file.cc', 97 'source_file.h', 98 'standard_out.cc', 99 'standard_out.h', 100 'string_utils.cc', 101 'string_utils.h', 102 'target.cc', 103 'target.h', 104 'target_generator.cc', 105 'target_generator.h', 106 'target_manager.cc', 107 'target_manager.h', 108 'token.cc', 109 'token.h', 110 'tokenizer.cc', 111 'tokenizer.h', 112 'toolchain.cc', 113 'toolchain.h', 114 'toolchain_manager.cc', 115 'toolchain_manager.h', 116 'value.cc', 117 'value.h', 118 'value_extractors.cc', 119 'value_extractors.h', 120 'variables.cc', 121 'variables.h', 122 ], 123 }, 124 { 125 'target_name': 'gn', 126 'type': 'executable', 127 'sources': [ 128 'gn_main.cc', 129 ], 130 'dependencies': [ 131 'gn_lib', 132 '../../base/base.gyp:base', 133 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', 134 ], 135 }, 136 { 137 'target_name': 'gn_unittests', 138 'type': '<(gtest_target_type)', 139 'sources': [ 140 'escape_unittest.cc', 141 'file_template_unittest.cc', 142 'filesystem_utils_unittest.cc', 143 'input_conversion_unittest.cc', 144 'label_unittest.cc', 145 'ninja_helper_unittest.cc', 146 'parser_unittest.cc', 147 'path_output_unittest.cc', 148 'pattern_unittest.cc', 149 'source_dir_unittest.cc', 150 'string_utils_unittest.cc', 151 'target_generator_unittest.cc', 152 'target_manager_unittest.cc', 153 'tokenizer_unittest.cc', 154 ], 155 'dependencies': [ 156 'gn_lib', 157 '../../base/base.gyp:run_all_unittests', 158 '../../base/base.gyp:test_support_base', 159 '../../testing/gtest.gyp:gtest', 160 ], 161 }, 162 { 163 'target_name': 'generate_test_gn_data', 164 'type': 'executable', 165 'sources': [ 166 'generate_test_gn_data.cc', 167 ], 168 'dependencies': [ 169 '../../base/base.gyp:base', 170 ], 171 } 172 ], 173 } 174