| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 if (is_win) { | |
| 6 config_h_dir = "vsprojects" | |
| 7 } else { | |
| 8 config_h_dir = "." | |
| 9 } | |
| 10 | |
| 11 config("protobuf_config") { | 5 config("protobuf_config") { |
| 12 include_dirs = [ | 6 include_dirs = [ "src" ] |
| 13 "src", | |
| 14 config_h_dir, | |
| 15 ] | |
| 16 defines = [ | 7 defines = [ |
| 17 "GOOGLE_PROTOBUF_NO_RTTI", | 8 "GOOGLE_PROTOBUF_NO_RTTI", |
| 18 "GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", | 9 "GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", |
| 19 ] | 10 ] |
| 20 } | 11 } |
| 21 | 12 |
| 22 if (is_component_build) { | 13 if (is_component_build) { |
| 23 config("protobuf_use_dlls") { | 14 config("protobuf_use_dlls") { |
| 24 defines = [ "PROTOBUF_USE_DLLS" ] | 15 defines = [ "PROTOBUF_USE_DLLS" ] |
| 25 } | 16 } |
| 26 } | 17 } |
| 27 | 18 |
| 28 # This config should be applied to targets using generated code from the proto | 19 # This config should be applied to targets using generated code from the proto |
| 29 # compiler. It sets up the include directories properly. | 20 # compiler. It sets up the include directories properly. |
| 30 config("using_proto") { | 21 config("using_proto") { |
| 31 include_dirs = [ | 22 include_dirs = [ |
| 32 "src", | 23 "src", |
| 33 "$root_gen_dir/protoc_out", | 24 "$root_gen_dir/protoc_out", |
| 34 ] | 25 ] |
| 35 } | 26 } |
| 36 | 27 |
| 37 protobuf_lite_sources = [ | 28 protobuf_lite_sources = [ |
| 29 "src/google/protobuf/arena.cc", |
| 30 "src/google/protobuf/arena.h", |
| 31 "src/google/protobuf/arenastring.cc", |
| 32 "src/google/protobuf/arenastring.h", |
| 33 "src/google/protobuf/descriptor.h", |
| 34 "src/google/protobuf/descriptor.pb.h", |
| 38 "src/google/protobuf/extension_set.cc", | 35 "src/google/protobuf/extension_set.cc", |
| 39 "src/google/protobuf/extension_set.h", | 36 "src/google/protobuf/extension_set.h", |
| 37 "src/google/protobuf/generated_enum_reflection.h", |
| 38 "src/google/protobuf/generated_enum_util.h", |
| 40 "src/google/protobuf/generated_message_util.cc", | 39 "src/google/protobuf/generated_message_util.cc", |
| 41 "src/google/protobuf/generated_message_util.h", | 40 "src/google/protobuf/generated_message_util.h", |
| 42 "src/google/protobuf/io/coded_stream.cc", | 41 "src/google/protobuf/io/coded_stream.cc", |
| 43 "src/google/protobuf/io/coded_stream.h", | 42 "src/google/protobuf/io/coded_stream.h", |
| 44 "src/google/protobuf/io/coded_stream_inl.h", | 43 "src/google/protobuf/io/coded_stream_inl.h", |
| 45 "src/google/protobuf/io/zero_copy_stream.cc", | 44 "src/google/protobuf/io/zero_copy_stream.cc", |
| 46 "src/google/protobuf/io/zero_copy_stream.h", | 45 "src/google/protobuf/io/zero_copy_stream.h", |
| 47 "src/google/protobuf/io/zero_copy_stream_impl_lite.cc", | 46 "src/google/protobuf/io/zero_copy_stream_impl_lite.cc", |
| 48 "src/google/protobuf/io/zero_copy_stream_impl_lite.h", | 47 "src/google/protobuf/io/zero_copy_stream_impl_lite.h", |
| 48 "src/google/protobuf/message.h", |
| 49 "src/google/protobuf/message_lite.cc", | 49 "src/google/protobuf/message_lite.cc", |
| 50 "src/google/protobuf/message_lite.h", | 50 "src/google/protobuf/message_lite.h", |
| 51 "src/google/protobuf/metadata.cc", |
| 52 "src/google/protobuf/metadata.h", |
| 51 "src/google/protobuf/repeated_field.cc", | 53 "src/google/protobuf/repeated_field.cc", |
| 52 "src/google/protobuf/repeated_field.h", | 54 "src/google/protobuf/repeated_field.h", |
| 55 "src/google/protobuf/stubs/atomic_sequence_num.h", |
| 53 "src/google/protobuf/stubs/atomicops.h", | 56 "src/google/protobuf/stubs/atomicops.h", |
| 57 "src/google/protobuf/stubs/atomicops_internals_aix.h", |
| 58 "src/google/protobuf/stubs/atomicops_internals_arm64_gcc.h", |
| 54 "src/google/protobuf/stubs/atomicops_internals_arm_gcc.h", | 59 "src/google/protobuf/stubs/atomicops_internals_arm_gcc.h", |
| 60 "src/google/protobuf/stubs/atomicops_internals_arm_qnx.h", |
| 55 "src/google/protobuf/stubs/atomicops_internals_atomicword_compat.h", | 61 "src/google/protobuf/stubs/atomicops_internals_atomicword_compat.h", |
| 62 "src/google/protobuf/stubs/atomicops_internals_generic_gcc.h", |
| 56 "src/google/protobuf/stubs/atomicops_internals_macosx.h", | 63 "src/google/protobuf/stubs/atomicops_internals_macosx.h", |
| 57 "src/google/protobuf/stubs/atomicops_internals_mips_gcc.h", | 64 "src/google/protobuf/stubs/atomicops_internals_mips_gcc.h", |
| 65 "src/google/protobuf/stubs/atomicops_internals_pnacl.h", |
| 66 "src/google/protobuf/stubs/atomicops_internals_solaris.h", |
| 67 "src/google/protobuf/stubs/atomicops_internals_tsan.h", |
| 58 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc", | 68 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc", |
| 59 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.h", | 69 "src/google/protobuf/stubs/atomicops_internals_x86_gcc.h", |
| 60 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc", | 70 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc", |
| 61 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.h", | 71 "src/google/protobuf/stubs/atomicops_internals_x86_msvc.h", |
| 72 "src/google/protobuf/stubs/bytestream.cc", |
| 73 "src/google/protobuf/stubs/bytestream.h", |
| 74 "src/google/protobuf/stubs/callback.h", |
| 75 "src/google/protobuf/stubs/casts.h", |
| 62 "src/google/protobuf/stubs/common.cc", | 76 "src/google/protobuf/stubs/common.cc", |
| 63 "src/google/protobuf/stubs/common.h", | 77 "src/google/protobuf/stubs/common.h", |
| 78 "src/google/protobuf/stubs/fastmem.h", |
| 64 "src/google/protobuf/stubs/hash.h", | 79 "src/google/protobuf/stubs/hash.h", |
| 65 "src/google/protobuf/stubs/map-util.h", | 80 "src/google/protobuf/stubs/logging.h", |
| 81 "src/google/protobuf/stubs/macros.h", |
| 82 "src/google/protobuf/stubs/map_util.h", |
| 83 "src/google/protobuf/stubs/mathlimits.h", |
| 84 "src/google/protobuf/stubs/mutex.h", |
| 66 "src/google/protobuf/stubs/once.cc", | 85 "src/google/protobuf/stubs/once.cc", |
| 67 "src/google/protobuf/stubs/once.h", | 86 "src/google/protobuf/stubs/once.h", |
| 68 "src/google/protobuf/stubs/platform_macros.h", | 87 "src/google/protobuf/stubs/platform_macros.h", |
| 88 "src/google/protobuf/stubs/port.h", |
| 89 "src/google/protobuf/stubs/scoped_ptr.h", |
| 90 "src/google/protobuf/stubs/status.cc", |
| 91 "src/google/protobuf/stubs/status.h", |
| 92 "src/google/protobuf/stubs/statusor.cc", |
| 93 "src/google/protobuf/stubs/statusor.h", |
| 94 "src/google/protobuf/stubs/stl_util.h", |
| 95 "src/google/protobuf/stubs/stringpiece.cc", |
| 96 "src/google/protobuf/stubs/stringpiece.h", |
| 97 "src/google/protobuf/stubs/stringprintf.cc", |
| 98 "src/google/protobuf/stubs/stringprintf.h", |
| 99 "src/google/protobuf/stubs/strutil.cc", |
| 100 "src/google/protobuf/stubs/strutil.h", |
| 101 "src/google/protobuf/stubs/template_util.h", |
| 102 "src/google/protobuf/stubs/time.cc", |
| 103 "src/google/protobuf/stubs/time.h", |
| 104 "src/google/protobuf/stubs/type_traits.h", |
| 105 "src/google/protobuf/testing/googletest.h", |
| 69 "src/google/protobuf/unknown_field_set.cc", | 106 "src/google/protobuf/unknown_field_set.cc", |
| 70 "src/google/protobuf/unknown_field_set.h", | 107 "src/google/protobuf/unknown_field_set.h", |
| 71 "src/google/protobuf/wire_format_lite.cc", | 108 "src/google/protobuf/wire_format_lite.cc", |
| 72 "src/google/protobuf/wire_format_lite.h", | 109 "src/google/protobuf/wire_format_lite.h", |
| 73 "src/google/protobuf/wire_format_lite_inl.h", | 110 "src/google/protobuf/wire_format_lite_inl.h", |
| 74 "$config_h_dir/config.h", | |
| 75 ] | 111 ] |
| 76 | 112 |
| 77 protobuf_lite_cflags = [] | 113 protobuf_lite_cflags = [] |
| 78 if (is_win) { | 114 if (is_win) { |
| 79 protobuf_lite_cflags = [ | 115 protobuf_lite_cflags = [ |
| 80 "/wd4018", # Signed/unsigned mismatch in comparison. | 116 "/wd4018", # Signed/unsigned mismatch in comparison. |
| 117 "/wd4065", # Switch statement contains 'default' but no 'case' labels |
| 118 "/wd4146", # Unary minus operator applied to unsigned type |
| 81 "/wd4244", # Implicit conversion, possible loss of data. | 119 "/wd4244", # Implicit conversion, possible loss of data. |
| 82 "/wd4355", # 'this' used in base member initializer list. | |
| 83 "/wd4267", # Size_t to int truncation. | 120 "/wd4267", # Size_t to int truncation. |
| 84 "/wd4291", # No matching operator delete for a placement new. | 121 "/wd4291", # No matching operator delete for a placement new. |
| 122 "/wd4355", # 'this' used in base member initializer list. |
| 123 "/wd4506", # No definition for inline function. |
| 85 ] | 124 ] |
| 86 } | 125 } |
| 87 | 126 |
| 88 component("protobuf_lite") { | 127 component("protobuf_lite") { |
| 89 sources = protobuf_lite_sources | 128 sources = protobuf_lite_sources |
| 90 | 129 |
| 91 configs -= [ "//build/config/compiler:chromium_code" ] | 130 configs -= [ "//build/config/compiler:chromium_code" ] |
| 92 configs += [ "//build/config/compiler:no_chromium_code" ] | 131 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 93 if (is_win) { | 132 if (is_win) { |
| 94 configs -= [ "//build/config/win:lean_and_mean" ] | 133 configs -= [ "//build/config/win:lean_and_mean" ] |
| (...skipping 17 matching lines...) Expand all Loading... |
| 112 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't | 151 # This is the full, heavy protobuf lib that's needed for c++ .protos that don't |
| 113 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls | 152 # specify the LITE_RUNTIME option. The protocol compiler itself (protoc) falls |
| 114 # into that category. Do not use in Chrome code. | 153 # into that category. Do not use in Chrome code. |
| 115 | 154 |
| 116 source_set("protobuf_full") { | 155 source_set("protobuf_full") { |
| 117 # Prevent people from depending on this outside our file. | 156 # Prevent people from depending on this outside our file. |
| 118 visibility = [ ":*" ] | 157 visibility = [ ":*" ] |
| 119 | 158 |
| 120 sources = protobuf_lite_sources | 159 sources = protobuf_lite_sources |
| 121 sources += [ | 160 sources += [ |
| 122 "src/google/protobuf/compiler/code_generator.h", | 161 "src/google/protobuf/any.cc", |
| 123 "src/google/protobuf/compiler/command_line_interface.h", | 162 "src/google/protobuf/any.h", |
| 163 "src/google/protobuf/any.pb.cc", |
| 164 "src/google/protobuf/any.pb.h", |
| 165 "src/google/protobuf/api.pb.cc", |
| 166 "src/google/protobuf/api.pb.h", |
| 167 "src/google/protobuf/compiler/importer.cc", |
| 124 "src/google/protobuf/compiler/importer.h", | 168 "src/google/protobuf/compiler/importer.h", |
| 125 "src/google/protobuf/compiler/java/java_doc_comment.cc", | 169 "src/google/protobuf/compiler/parser.cc", |
| 126 "src/google/protobuf/compiler/java/java_doc_comment.h", | |
| 127 "src/google/protobuf/compiler/parser.h", | 170 "src/google/protobuf/compiler/parser.h", |
| 128 "src/google/protobuf/descriptor.cc", | 171 "src/google/protobuf/descriptor.cc", |
| 129 "src/google/protobuf/descriptor.h", | |
| 130 "src/google/protobuf/descriptor.pb.cc", | 172 "src/google/protobuf/descriptor.pb.cc", |
| 131 "src/google/protobuf/descriptor.pb.h", | |
| 132 "src/google/protobuf/descriptor_database.cc", | 173 "src/google/protobuf/descriptor_database.cc", |
| 133 "src/google/protobuf/descriptor_database.h", | 174 "src/google/protobuf/descriptor_database.h", |
| 175 "src/google/protobuf/duration.pb.cc", |
| 176 "src/google/protobuf/duration.pb.h", |
| 134 "src/google/protobuf/dynamic_message.cc", | 177 "src/google/protobuf/dynamic_message.cc", |
| 135 "src/google/protobuf/dynamic_message.h", | 178 "src/google/protobuf/dynamic_message.h", |
| 179 "src/google/protobuf/empty.pb.cc", |
| 180 "src/google/protobuf/empty.pb.h", |
| 136 "src/google/protobuf/extension_set_heavy.cc", | 181 "src/google/protobuf/extension_set_heavy.cc", |
| 137 "src/google/protobuf/generated_enum_reflection.h", | 182 "src/google/protobuf/field_mask.pb.cc", |
| 183 "src/google/protobuf/field_mask.pb.h", |
| 138 "src/google/protobuf/generated_message_reflection.cc", | 184 "src/google/protobuf/generated_message_reflection.cc", |
| 139 "src/google/protobuf/generated_message_reflection.h", | 185 "src/google/protobuf/generated_message_reflection.h", |
| 140 "src/google/protobuf/io/gzip_stream.h", | 186 |
| 187 # gzip_stream.cc pulls in zlib, but it's not actually used by protoc, just |
| 188 # by test code; so instead of compiling zlib for the host, let's just |
| 189 # exclude these. |
| 190 # "src/google/protobuf/io/gzip_stream.cc", |
| 191 # "src/google/protobuf/io/gzip_stream.h", |
| 192 "src/google/protobuf/io/printer.cc", |
| 141 "src/google/protobuf/io/printer.h", | 193 "src/google/protobuf/io/printer.h", |
| 194 "src/google/protobuf/io/strtod.cc", |
| 195 "src/google/protobuf/io/strtod.h", |
| 196 "src/google/protobuf/io/tokenizer.cc", |
| 142 "src/google/protobuf/io/tokenizer.h", | 197 "src/google/protobuf/io/tokenizer.h", |
| 198 "src/google/protobuf/io/zero_copy_stream_impl.cc", |
| 143 "src/google/protobuf/io/zero_copy_stream_impl.h", | 199 "src/google/protobuf/io/zero_copy_stream_impl.h", |
| 200 "src/google/protobuf/map.h", |
| 201 "src/google/protobuf/map_entry_lite.h", |
| 202 "src/google/protobuf/map_field.cc", |
| 203 "src/google/protobuf/map_field.h", |
| 204 "src/google/protobuf/map_field_inl.h", |
| 205 "src/google/protobuf/map_field_lite.h", |
| 206 "src/google/protobuf/map_type_handler.h", |
| 144 "src/google/protobuf/message.cc", | 207 "src/google/protobuf/message.cc", |
| 145 "src/google/protobuf/message.h", | |
| 146 "src/google/protobuf/reflection_ops.cc", | 208 "src/google/protobuf/reflection_ops.cc", |
| 147 "src/google/protobuf/reflection_ops.h", | 209 "src/google/protobuf/reflection_ops.h", |
| 148 "src/google/protobuf/service.cc", | 210 "src/google/protobuf/service.cc", |
| 149 "src/google/protobuf/service.h", | 211 "src/google/protobuf/service.h", |
| 150 "src/google/protobuf/stubs/stl_util.h", | 212 "src/google/protobuf/source_context.pb.cc", |
| 151 "src/google/protobuf/stubs/stringprintf.cc", | 213 "src/google/protobuf/source_context.pb.h", |
| 152 "src/google/protobuf/stubs/stringprintf.h", | 214 "src/google/protobuf/struct.pb.cc", |
| 215 "src/google/protobuf/struct.pb.h", |
| 216 "src/google/protobuf/stubs/mathlimits.cc", |
| 217 "src/google/protobuf/stubs/mathutil.h", |
| 218 "src/google/protobuf/stubs/shared_ptr.h", |
| 219 "src/google/protobuf/stubs/singleton.h", |
| 220 "src/google/protobuf/stubs/status_macros.h", |
| 153 "src/google/protobuf/stubs/structurally_valid.cc", | 221 "src/google/protobuf/stubs/structurally_valid.cc", |
| 154 "src/google/protobuf/stubs/strutil.cc", | |
| 155 "src/google/protobuf/stubs/strutil.h", | |
| 156 "src/google/protobuf/stubs/substitute.cc", | 222 "src/google/protobuf/stubs/substitute.cc", |
| 157 "src/google/protobuf/stubs/substitute.h", | 223 "src/google/protobuf/stubs/substitute.h", |
| 158 "src/google/protobuf/stubs/template_util.h", | |
| 159 "src/google/protobuf/stubs/type_traits.h", | |
| 160 "src/google/protobuf/text_format.cc", | 224 "src/google/protobuf/text_format.cc", |
| 161 "src/google/protobuf/text_format.h", | 225 "src/google/protobuf/text_format.h", |
| 226 "src/google/protobuf/timestamp.pb.cc", |
| 227 "src/google/protobuf/timestamp.pb.h", |
| 228 "src/google/protobuf/type.pb.cc", |
| 229 "src/google/protobuf/type.pb.h", |
| 230 "src/google/protobuf/util/field_comparator.cc", |
| 231 "src/google/protobuf/util/field_comparator.h", |
| 232 "src/google/protobuf/util/internal/constants.h", |
| 233 "src/google/protobuf/util/internal/datapiece.cc", |
| 234 "src/google/protobuf/util/internal/datapiece.h", |
| 235 "src/google/protobuf/util/internal/default_value_objectwriter.cc", |
| 236 "src/google/protobuf/util/internal/default_value_objectwriter.h", |
| 237 "src/google/protobuf/util/internal/error_listener.cc", |
| 238 "src/google/protobuf/util/internal/error_listener.h", |
| 239 "src/google/protobuf/util/internal/field_mask_utility.cc", |
| 240 "src/google/protobuf/util/internal/field_mask_utility.h", |
| 241 "src/google/protobuf/util/internal/json_escaping.cc", |
| 242 "src/google/protobuf/util/internal/json_escaping.h", |
| 243 "src/google/protobuf/util/internal/json_objectwriter.cc", |
| 244 "src/google/protobuf/util/internal/json_objectwriter.h", |
| 245 "src/google/protobuf/util/internal/json_stream_parser.cc", |
| 246 "src/google/protobuf/util/internal/json_stream_parser.h", |
| 247 "src/google/protobuf/util/internal/location_tracker.h", |
| 248 "src/google/protobuf/util/internal/object_location_tracker.h", |
| 249 "src/google/protobuf/util/internal/object_source.h", |
| 250 "src/google/protobuf/util/internal/object_writer.cc", |
| 251 "src/google/protobuf/util/internal/object_writer.h", |
| 252 "src/google/protobuf/util/internal/protostream_objectsource.cc", |
| 253 "src/google/protobuf/util/internal/protostream_objectsource.h", |
| 254 "src/google/protobuf/util/internal/protostream_objectwriter.cc", |
| 255 "src/google/protobuf/util/internal/protostream_objectwriter.h", |
| 256 "src/google/protobuf/util/internal/snake2camel_objectwriter.h", |
| 257 "src/google/protobuf/util/internal/structured_objectwriter.h", |
| 258 "src/google/protobuf/util/internal/type_info.cc", |
| 259 "src/google/protobuf/util/internal/type_info.h", |
| 260 "src/google/protobuf/util/internal/type_info_test_helper.cc", |
| 261 "src/google/protobuf/util/internal/type_info_test_helper.h", |
| 262 "src/google/protobuf/util/internal/utility.cc", |
| 263 "src/google/protobuf/util/internal/utility.h", |
| 264 "src/google/protobuf/util/json_util.cc", |
| 265 "src/google/protobuf/util/json_util.h", |
| 266 "src/google/protobuf/util/message_differencer.cc", |
| 267 "src/google/protobuf/util/message_differencer.h", |
| 268 "src/google/protobuf/util/type_resolver.h", |
| 269 "src/google/protobuf/util/type_resolver_util.cc", |
| 270 "src/google/protobuf/util/type_resolver_util.h", |
| 162 "src/google/protobuf/wire_format.cc", | 271 "src/google/protobuf/wire_format.cc", |
| 163 "src/google/protobuf/wire_format.h", | 272 "src/google/protobuf/wire_format.h", |
| 164 | 273 "src/google/protobuf/wrappers.pb.cc", |
| 165 # This file pulls in zlib, but it's not actually used by protoc, so | 274 "src/google/protobuf/wrappers.pb.h", |
| 166 # instead of compiling zlib for the host, let's just exclude this. | |
| 167 # "src/src/google/protobuf/io/gzip_stream.cc", | |
| 168 "src/google/protobuf/compiler/importer.cc", | |
| 169 "src/google/protobuf/compiler/parser.cc", | |
| 170 "src/google/protobuf/io/printer.cc", | |
| 171 "src/google/protobuf/io/tokenizer.cc", | |
| 172 "src/google/protobuf/io/zero_copy_stream_impl.cc", | |
| 173 ] | 275 ] |
| 174 | 276 |
| 175 configs -= [ "//build/config/compiler:chromium_code" ] | 277 configs -= [ "//build/config/compiler:chromium_code" ] |
| 176 configs += [ "//build/config/compiler:no_chromium_code" ] | 278 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 177 if (is_win) { | 279 if (is_win) { |
| 178 configs -= [ "//build/config/win:lean_and_mean" ] | 280 configs -= [ "//build/config/win:lean_and_mean" ] |
| 179 } | 281 } |
| 180 public_configs = [ | 282 public_configs = [ |
| 181 ":protobuf_config", | 283 ":protobuf_config", |
| 182 | 284 |
| 183 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 285 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 184 "//build/config/compiler:no_size_t_to_int_warning", | 286 "//build/config/compiler:no_size_t_to_int_warning", |
| 185 ] | 287 ] |
| 186 | 288 |
| 187 cflags = protobuf_lite_cflags | 289 cflags = protobuf_lite_cflags |
| 188 } | 290 } |
| 189 | 291 |
| 190 # Only compile the compiler for the host architecture. | 292 # Only compile the compiler for the host architecture. |
| 191 if (current_toolchain == host_toolchain) { | 293 if (current_toolchain == host_toolchain) { |
| 192 executable("protoc") { | 294 executable("protoc") { |
| 193 sources = [ | 295 sources = [ |
| 194 "src/google/protobuf/compiler/code_generator.cc", | 296 "src/google/protobuf/compiler/code_generator.cc", |
| 297 "src/google/protobuf/compiler/code_generator.h", |
| 195 "src/google/protobuf/compiler/command_line_interface.cc", | 298 "src/google/protobuf/compiler/command_line_interface.cc", |
| 299 "src/google/protobuf/compiler/command_line_interface.h", |
| 196 "src/google/protobuf/compiler/cpp/cpp_enum.cc", | 300 "src/google/protobuf/compiler/cpp/cpp_enum.cc", |
| 197 "src/google/protobuf/compiler/cpp/cpp_enum.h", | 301 "src/google/protobuf/compiler/cpp/cpp_enum.h", |
| 198 "src/google/protobuf/compiler/cpp/cpp_enum_field.cc", | 302 "src/google/protobuf/compiler/cpp/cpp_enum_field.cc", |
| 199 "src/google/protobuf/compiler/cpp/cpp_enum_field.h", | 303 "src/google/protobuf/compiler/cpp/cpp_enum_field.h", |
| 200 "src/google/protobuf/compiler/cpp/cpp_extension.cc", | 304 "src/google/protobuf/compiler/cpp/cpp_extension.cc", |
| 201 "src/google/protobuf/compiler/cpp/cpp_extension.h", | 305 "src/google/protobuf/compiler/cpp/cpp_extension.h", |
| 202 "src/google/protobuf/compiler/cpp/cpp_field.cc", | 306 "src/google/protobuf/compiler/cpp/cpp_field.cc", |
| 203 "src/google/protobuf/compiler/cpp/cpp_field.h", | 307 "src/google/protobuf/compiler/cpp/cpp_field.h", |
| 204 "src/google/protobuf/compiler/cpp/cpp_file.cc", | 308 "src/google/protobuf/compiler/cpp/cpp_file.cc", |
| 205 "src/google/protobuf/compiler/cpp/cpp_file.h", | 309 "src/google/protobuf/compiler/cpp/cpp_file.h", |
| 206 "src/google/protobuf/compiler/cpp/cpp_generator.cc", | 310 "src/google/protobuf/compiler/cpp/cpp_generator.cc", |
| 311 "src/google/protobuf/compiler/cpp/cpp_generator.h", |
| 207 "src/google/protobuf/compiler/cpp/cpp_helpers.cc", | 312 "src/google/protobuf/compiler/cpp/cpp_helpers.cc", |
| 208 "src/google/protobuf/compiler/cpp/cpp_helpers.h", | 313 "src/google/protobuf/compiler/cpp/cpp_helpers.h", |
| 314 "src/google/protobuf/compiler/cpp/cpp_map_field.cc", |
| 315 "src/google/protobuf/compiler/cpp/cpp_map_field.h", |
| 209 "src/google/protobuf/compiler/cpp/cpp_message.cc", | 316 "src/google/protobuf/compiler/cpp/cpp_message.cc", |
| 210 "src/google/protobuf/compiler/cpp/cpp_message.h", | 317 "src/google/protobuf/compiler/cpp/cpp_message.h", |
| 211 "src/google/protobuf/compiler/cpp/cpp_message_field.cc", | 318 "src/google/protobuf/compiler/cpp/cpp_message_field.cc", |
| 212 "src/google/protobuf/compiler/cpp/cpp_message_field.h", | 319 "src/google/protobuf/compiler/cpp/cpp_message_field.h", |
| 320 "src/google/protobuf/compiler/cpp/cpp_options.h", |
| 213 "src/google/protobuf/compiler/cpp/cpp_primitive_field.cc", | 321 "src/google/protobuf/compiler/cpp/cpp_primitive_field.cc", |
| 214 "src/google/protobuf/compiler/cpp/cpp_primitive_field.h", | 322 "src/google/protobuf/compiler/cpp/cpp_primitive_field.h", |
| 215 "src/google/protobuf/compiler/cpp/cpp_service.cc", | 323 "src/google/protobuf/compiler/cpp/cpp_service.cc", |
| 216 "src/google/protobuf/compiler/cpp/cpp_service.h", | 324 "src/google/protobuf/compiler/cpp/cpp_service.h", |
| 217 "src/google/protobuf/compiler/cpp/cpp_string_field.cc", | 325 "src/google/protobuf/compiler/cpp/cpp_string_field.cc", |
| 218 "src/google/protobuf/compiler/cpp/cpp_string_field.h", | 326 "src/google/protobuf/compiler/cpp/cpp_string_field.h", |
| 327 "src/google/protobuf/compiler/csharp/csharp_enum.cc", |
| 328 "src/google/protobuf/compiler/csharp/csharp_enum.h", |
| 329 "src/google/protobuf/compiler/csharp/csharp_enum_field.cc", |
| 330 "src/google/protobuf/compiler/csharp/csharp_enum_field.h", |
| 331 "src/google/protobuf/compiler/csharp/csharp_field_base.cc", |
| 332 "src/google/protobuf/compiler/csharp/csharp_field_base.h", |
| 333 "src/google/protobuf/compiler/csharp/csharp_generator.cc", |
| 334 "src/google/protobuf/compiler/csharp/csharp_generator.h", |
| 335 "src/google/protobuf/compiler/csharp/csharp_helpers.cc", |
| 336 "src/google/protobuf/compiler/csharp/csharp_helpers.h", |
| 337 "src/google/protobuf/compiler/csharp/csharp_map_field.cc", |
| 338 "src/google/protobuf/compiler/csharp/csharp_map_field.h", |
| 339 "src/google/protobuf/compiler/csharp/csharp_message.cc", |
| 340 "src/google/protobuf/compiler/csharp/csharp_message.h", |
| 341 "src/google/protobuf/compiler/csharp/csharp_message_field.cc", |
| 342 "src/google/protobuf/compiler/csharp/csharp_message_field.h", |
| 343 "src/google/protobuf/compiler/csharp/csharp_names.h", |
| 344 "src/google/protobuf/compiler/csharp/csharp_primitive_field.cc", |
| 345 "src/google/protobuf/compiler/csharp/csharp_primitive_field.h", |
| 346 "src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc", |
| 347 "src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.h", |
| 348 "src/google/protobuf/compiler/csharp/csharp_repeated_message_field.cc", |
| 349 "src/google/protobuf/compiler/csharp/csharp_repeated_message_field.h", |
| 350 "src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc", |
| 351 "src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.h", |
| 352 "src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc", |
| 353 "src/google/protobuf/compiler/csharp/csharp_source_generator_base.h", |
| 354 "src/google/protobuf/compiler/csharp/csharp_umbrella_class.cc", |
| 355 "src/google/protobuf/compiler/csharp/csharp_umbrella_class.h", |
| 356 "src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc", |
| 357 "src/google/protobuf/compiler/csharp/csharp_wrapper_field.h", |
| 358 "src/google/protobuf/compiler/java/java_context.cc", |
| 359 "src/google/protobuf/compiler/java/java_context.h", |
| 360 "src/google/protobuf/compiler/java/java_doc_comment.cc", |
| 361 "src/google/protobuf/compiler/java/java_doc_comment.h", |
| 219 "src/google/protobuf/compiler/java/java_enum.cc", | 362 "src/google/protobuf/compiler/java/java_enum.cc", |
| 220 "src/google/protobuf/compiler/java/java_enum.h", | 363 "src/google/protobuf/compiler/java/java_enum.h", |
| 221 "src/google/protobuf/compiler/java/java_enum_field.cc", | 364 "src/google/protobuf/compiler/java/java_enum_field.cc", |
| 222 "src/google/protobuf/compiler/java/java_enum_field.h", | 365 "src/google/protobuf/compiler/java/java_enum_field.h", |
| 366 "src/google/protobuf/compiler/java/java_enum_field_lite.cc", |
| 367 "src/google/protobuf/compiler/java/java_enum_field_lite.h", |
| 223 "src/google/protobuf/compiler/java/java_extension.cc", | 368 "src/google/protobuf/compiler/java/java_extension.cc", |
| 224 "src/google/protobuf/compiler/java/java_extension.h", | 369 "src/google/protobuf/compiler/java/java_extension.h", |
| 225 "src/google/protobuf/compiler/java/java_field.cc", | 370 "src/google/protobuf/compiler/java/java_field.cc", |
| 226 "src/google/protobuf/compiler/java/java_field.h", | 371 "src/google/protobuf/compiler/java/java_field.h", |
| 227 "src/google/protobuf/compiler/java/java_file.cc", | 372 "src/google/protobuf/compiler/java/java_file.cc", |
| 228 "src/google/protobuf/compiler/java/java_file.h", | 373 "src/google/protobuf/compiler/java/java_file.h", |
| 229 "src/google/protobuf/compiler/java/java_generator.cc", | 374 "src/google/protobuf/compiler/java/java_generator.cc", |
| 375 "src/google/protobuf/compiler/java/java_generator.h", |
| 376 "src/google/protobuf/compiler/java/java_generator_factory.cc", |
| 377 "src/google/protobuf/compiler/java/java_generator_factory.h", |
| 230 "src/google/protobuf/compiler/java/java_helpers.cc", | 378 "src/google/protobuf/compiler/java/java_helpers.cc", |
| 231 "src/google/protobuf/compiler/java/java_helpers.h", | 379 "src/google/protobuf/compiler/java/java_helpers.h", |
| 380 "src/google/protobuf/compiler/java/java_lazy_message_field.cc", |
| 381 "src/google/protobuf/compiler/java/java_lazy_message_field.h", |
| 382 "src/google/protobuf/compiler/java/java_lazy_message_field_lite.cc", |
| 383 "src/google/protobuf/compiler/java/java_lazy_message_field_lite.h", |
| 384 "src/google/protobuf/compiler/java/java_map_field.cc", |
| 385 "src/google/protobuf/compiler/java/java_map_field.h", |
| 386 "src/google/protobuf/compiler/java/java_map_field_lite.cc", |
| 387 "src/google/protobuf/compiler/java/java_map_field_lite.h", |
| 232 "src/google/protobuf/compiler/java/java_message.cc", | 388 "src/google/protobuf/compiler/java/java_message.cc", |
| 233 "src/google/protobuf/compiler/java/java_message.h", | 389 "src/google/protobuf/compiler/java/java_message.h", |
| 390 "src/google/protobuf/compiler/java/java_message_builder.cc", |
| 391 "src/google/protobuf/compiler/java/java_message_builder.h", |
| 392 "src/google/protobuf/compiler/java/java_message_builder_lite.cc", |
| 393 "src/google/protobuf/compiler/java/java_message_builder_lite.h", |
| 234 "src/google/protobuf/compiler/java/java_message_field.cc", | 394 "src/google/protobuf/compiler/java/java_message_field.cc", |
| 235 "src/google/protobuf/compiler/java/java_message_field.h", | 395 "src/google/protobuf/compiler/java/java_message_field.h", |
| 396 "src/google/protobuf/compiler/java/java_message_field_lite.cc", |
| 397 "src/google/protobuf/compiler/java/java_message_field_lite.h", |
| 398 "src/google/protobuf/compiler/java/java_message_lite.cc", |
| 399 "src/google/protobuf/compiler/java/java_message_lite.h", |
| 400 "src/google/protobuf/compiler/java/java_name_resolver.cc", |
| 401 "src/google/protobuf/compiler/java/java_name_resolver.h", |
| 236 "src/google/protobuf/compiler/java/java_primitive_field.cc", | 402 "src/google/protobuf/compiler/java/java_primitive_field.cc", |
| 237 "src/google/protobuf/compiler/java/java_primitive_field.h", | 403 "src/google/protobuf/compiler/java/java_primitive_field.h", |
| 404 "src/google/protobuf/compiler/java/java_primitive_field_lite.cc", |
| 405 "src/google/protobuf/compiler/java/java_primitive_field_lite.h", |
| 238 "src/google/protobuf/compiler/java/java_service.cc", | 406 "src/google/protobuf/compiler/java/java_service.cc", |
| 239 "src/google/protobuf/compiler/java/java_service.h", | 407 "src/google/protobuf/compiler/java/java_service.h", |
| 408 "src/google/protobuf/compiler/java/java_shared_code_generator.cc", |
| 409 "src/google/protobuf/compiler/java/java_shared_code_generator.h", |
| 240 "src/google/protobuf/compiler/java/java_string_field.cc", | 410 "src/google/protobuf/compiler/java/java_string_field.cc", |
| 241 "src/google/protobuf/compiler/java/java_string_field.h", | 411 "src/google/protobuf/compiler/java/java_string_field.h", |
| 412 "src/google/protobuf/compiler/java/java_string_field_lite.cc", |
| 413 "src/google/protobuf/compiler/java/java_string_field_lite.h", |
| 414 "src/google/protobuf/compiler/javanano/javanano_enum.cc", |
| 415 "src/google/protobuf/compiler/javanano/javanano_enum.h", |
| 416 "src/google/protobuf/compiler/javanano/javanano_enum_field.cc", |
| 417 "src/google/protobuf/compiler/javanano/javanano_enum_field.h", |
| 418 "src/google/protobuf/compiler/javanano/javanano_extension.cc", |
| 419 "src/google/protobuf/compiler/javanano/javanano_extension.h", |
| 420 "src/google/protobuf/compiler/javanano/javanano_field.cc", |
| 421 "src/google/protobuf/compiler/javanano/javanano_field.h", |
| 422 "src/google/protobuf/compiler/javanano/javanano_file.cc", |
| 423 "src/google/protobuf/compiler/javanano/javanano_file.h", |
| 424 "src/google/protobuf/compiler/javanano/javanano_generator.cc", |
| 425 "src/google/protobuf/compiler/javanano/javanano_generator.h", |
| 426 "src/google/protobuf/compiler/javanano/javanano_helpers.cc", |
| 427 "src/google/protobuf/compiler/javanano/javanano_helpers.h", |
| 428 "src/google/protobuf/compiler/javanano/javanano_map_field.cc", |
| 429 "src/google/protobuf/compiler/javanano/javanano_map_field.h", |
| 430 "src/google/protobuf/compiler/javanano/javanano_message.cc", |
| 431 "src/google/protobuf/compiler/javanano/javanano_message.h", |
| 432 "src/google/protobuf/compiler/javanano/javanano_message_field.cc", |
| 433 "src/google/protobuf/compiler/javanano/javanano_message_field.h", |
| 434 "src/google/protobuf/compiler/javanano/javanano_params.h", |
| 435 "src/google/protobuf/compiler/javanano/javanano_primitive_field.cc", |
| 436 "src/google/protobuf/compiler/javanano/javanano_primitive_field.h", |
| 242 "src/google/protobuf/compiler/main.cc", | 437 "src/google/protobuf/compiler/main.cc", |
| 438 "src/google/protobuf/compiler/objectivec/objectivec_enum.cc", |
| 439 "src/google/protobuf/compiler/objectivec/objectivec_enum.h", |
| 440 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc", |
| 441 "src/google/protobuf/compiler/objectivec/objectivec_enum_field.h", |
| 442 "src/google/protobuf/compiler/objectivec/objectivec_extension.cc", |
| 443 "src/google/protobuf/compiler/objectivec/objectivec_extension.h", |
| 444 "src/google/protobuf/compiler/objectivec/objectivec_field.cc", |
| 445 "src/google/protobuf/compiler/objectivec/objectivec_field.h", |
| 446 "src/google/protobuf/compiler/objectivec/objectivec_file.cc", |
| 447 "src/google/protobuf/compiler/objectivec/objectivec_file.h", |
| 448 "src/google/protobuf/compiler/objectivec/objectivec_generator.cc", |
| 449 "src/google/protobuf/compiler/objectivec/objectivec_generator.h", |
| 450 "src/google/protobuf/compiler/objectivec/objectivec_helpers.cc", |
| 451 "src/google/protobuf/compiler/objectivec/objectivec_helpers.h", |
| 452 "src/google/protobuf/compiler/objectivec/objectivec_map_field.cc", |
| 453 "src/google/protobuf/compiler/objectivec/objectivec_map_field.h", |
| 454 "src/google/protobuf/compiler/objectivec/objectivec_message.cc", |
| 455 "src/google/protobuf/compiler/objectivec/objectivec_message.h", |
| 456 "src/google/protobuf/compiler/objectivec/objectivec_message_field.cc", |
| 457 "src/google/protobuf/compiler/objectivec/objectivec_message_field.h", |
| 458 "src/google/protobuf/compiler/objectivec/objectivec_oneof.cc", |
| 459 "src/google/protobuf/compiler/objectivec/objectivec_oneof.h", |
| 460 "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc", |
| 461 "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.h", |
| 243 "src/google/protobuf/compiler/plugin.cc", | 462 "src/google/protobuf/compiler/plugin.cc", |
| 463 "src/google/protobuf/compiler/plugin.h", |
| 244 "src/google/protobuf/compiler/plugin.pb.cc", | 464 "src/google/protobuf/compiler/plugin.pb.cc", |
| 465 "src/google/protobuf/compiler/plugin.pb.h", |
| 245 "src/google/protobuf/compiler/python/python_generator.cc", | 466 "src/google/protobuf/compiler/python/python_generator.cc", |
| 467 "src/google/protobuf/compiler/python/python_generator.h", |
| 468 "src/google/protobuf/compiler/ruby/ruby_generator.cc", |
| 469 "src/google/protobuf/compiler/ruby/ruby_generator.h", |
| 246 "src/google/protobuf/compiler/subprocess.cc", | 470 "src/google/protobuf/compiler/subprocess.cc", |
| 247 "src/google/protobuf/compiler/subprocess.h", | 471 "src/google/protobuf/compiler/subprocess.h", |
| 248 "src/google/protobuf/compiler/zip_writer.cc", | 472 "src/google/protobuf/compiler/zip_writer.cc", |
| 249 "src/google/protobuf/compiler/zip_writer.h", | 473 "src/google/protobuf/compiler/zip_writer.h", |
| 250 ] | 474 ] |
| 251 | 475 |
| 252 configs -= [ "//build/config/compiler:chromium_code" ] | 476 configs -= [ "//build/config/compiler:chromium_code" ] |
| 253 configs += [ "//build/config/compiler:no_chromium_code" ] | 477 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 254 if (is_win) { | 478 if (is_win) { |
| 255 # This is defined internally, don't warn on duplicate. | 479 # This is defined internally, don't warn on duplicate. |
| 256 configs -= [ "//build/config/win:lean_and_mean" ] | 480 configs -= [ "//build/config/win:lean_and_mean" ] |
| 257 } | 481 } |
| 258 | 482 |
| 259 cflags = protobuf_lite_cflags | 483 cflags = protobuf_lite_cflags |
| 260 | 484 |
| 261 deps = [ | 485 deps = [ |
| 262 ":protobuf_full", | 486 ":protobuf_full", |
| 263 ] | 487 ] |
| 264 deps += [ "//build/config/sanitizers:deps" ] | 488 deps += [ "//build/config/sanitizers:deps" ] |
| 265 } | 489 } |
| 266 } | 490 } |
| 267 | 491 |
| 268 google_python_dir = "$root_out_dir/pyproto/google" | 492 google_python_dir = "$root_out_dir/pyproto/google" |
| 269 | 493 |
| 270 copy("copy_google") { | 494 copy("copy_google") { |
| 271 sources = [ | 495 sources = [ |
| 272 "__init__.py", | 496 "python/google/__init__.py", |
| 273 ] | 497 ] |
| 274 outputs = [ | 498 outputs = [ |
| 275 "$google_python_dir/{{source_file_part}}", | 499 "$google_python_dir/{{source_file_part}}", |
| 276 ] | 500 ] |
| 277 } | 501 } |
| 278 | 502 |
| 279 copy("copy_google_protobuf") { | 503 copy("copy_google_protobuf") { |
| 280 sources = [ | 504 sources = [ |
| 281 "python/google/protobuf/__init__.py", | 505 "python/google/protobuf/__init__.py", |
| 282 "python/google/protobuf/descriptor.py", | 506 "python/google/protobuf/descriptor.py", |
| 283 "python/google/protobuf/descriptor_database.py", | 507 "python/google/protobuf/descriptor_database.py", |
| 508 |
| 509 # TODO(ncarter): protoc's python generator treats descriptor.proto |
| 510 # specially, but only when the input path is exactly |
| 511 # "google/protobuf/descriptor.proto". I'm not sure how to execute a rule |
| 512 # from a different directory. For now, use a manually-generated copy of |
| 513 # descriptor_pb2.py. |
| 514 "python/google/protobuf/descriptor_pb2.py", |
| 284 "python/google/protobuf/descriptor_pool.py", | 515 "python/google/protobuf/descriptor_pool.py", |
| 285 "python/google/protobuf/message.py", | 516 "python/google/protobuf/message.py", |
| 286 "python/google/protobuf/message_factory.py", | 517 "python/google/protobuf/message_factory.py", |
| 518 "python/google/protobuf/proto_builder.py", |
| 287 "python/google/protobuf/reflection.py", | 519 "python/google/protobuf/reflection.py", |
| 288 "python/google/protobuf/service.py", | 520 "python/google/protobuf/service.py", |
| 289 "python/google/protobuf/service_reflection.py", | 521 "python/google/protobuf/service_reflection.py", |
| 522 "python/google/protobuf/symbol_database.py", |
| 523 "python/google/protobuf/text_encoding.py", |
| 290 "python/google/protobuf/text_format.py", | 524 "python/google/protobuf/text_format.py", |
| 291 | |
| 292 # TODO(ncarter): protoc"s python generator treats | |
| 293 # descriptor.proto specially, but it's not possible to trigger | |
| 294 # the special treatment unless you run protoc from ./src/src | |
| 295 # (the treatment is based on the path to the .proto file | |
| 296 # matching a constant exactly). I'm not sure how to convince | |
| 297 # gyp to execute a rule from a different directory. Until this | |
| 298 # is resolved, use a copy of descriptor_pb2.py that I manually | |
| 299 # generated. | |
| 300 "descriptor_pb2.py", | |
| 301 ] | 525 ] |
| 302 outputs = [ | 526 outputs = [ |
| 303 "$google_python_dir/protobuf/{{source_file_part}}", | 527 "$google_python_dir/protobuf/{{source_file_part}}", |
| 304 ] | 528 ] |
| 305 } | 529 } |
| 306 | 530 |
| 307 copy("copy_google_protobuf_internal") { | 531 copy("copy_google_protobuf_internal") { |
| 308 sources = [ | 532 sources = [ |
| 309 "python/google/protobuf/internal/__init__.py", | 533 "python/google/protobuf/internal/__init__.py", |
| 310 "python/google/protobuf/internal/api_implementation.py", | 534 "python/google/protobuf/internal/api_implementation.py", |
| 311 "python/google/protobuf/internal/containers.py", | 535 "python/google/protobuf/internal/containers.py", |
| 312 "python/google/protobuf/internal/cpp_message.py", | |
| 313 "python/google/protobuf/internal/decoder.py", | 536 "python/google/protobuf/internal/decoder.py", |
| 314 "python/google/protobuf/internal/encoder.py", | 537 "python/google/protobuf/internal/encoder.py", |
| 315 "python/google/protobuf/internal/enum_type_wrapper.py", | 538 "python/google/protobuf/internal/enum_type_wrapper.py", |
| 316 "python/google/protobuf/internal/generator_test.py", | 539 "python/google/protobuf/internal/generator_test.py", |
| 317 "python/google/protobuf/internal/message_listener.py", | 540 "python/google/protobuf/internal/message_listener.py", |
| 318 "python/google/protobuf/internal/python_message.py", | 541 "python/google/protobuf/internal/python_message.py", |
| 319 "python/google/protobuf/internal/type_checkers.py", | 542 "python/google/protobuf/internal/type_checkers.py", |
| 320 "python/google/protobuf/internal/wire_format.py", | 543 "python/google/protobuf/internal/wire_format.py", |
| 321 ] | 544 ] |
| 322 outputs = [ | 545 outputs = [ |
| 323 "$google_python_dir/protobuf/internal/{{source_file_part}}", | 546 "$google_python_dir/protobuf/internal/{{source_file_part}}", |
| 324 ] | 547 ] |
| 325 } | 548 } |
| 326 | 549 |
| 550 copy("copy_google_protobuf_pyext") { |
| 551 sources = [ |
| 552 "python/google/protobuf/pyext/__init__.py", |
| 553 "python/google/protobuf/pyext/cpp_message.py", |
| 554 ] |
| 555 outputs = [ |
| 556 "$google_python_dir/protobuf/pyext/{{source_file_part}}", |
| 557 ] |
| 558 } |
| 559 |
| 327 group("py_proto") { | 560 group("py_proto") { |
| 328 public_deps = [ | 561 public_deps = [ |
| 329 ":copy_google", | 562 ":copy_google", |
| 330 ":copy_google_protobuf", | 563 ":copy_google_protobuf", |
| 331 ":copy_google_protobuf_internal", | 564 ":copy_google_protobuf_internal", |
| 332 ] | 565 ] |
| 333 | 566 |
| 334 # Targets that depend on this should depend on the copied data files. | 567 # Targets that depend on this should depend on the copied data files. |
| 335 data = get_target_outputs(":copy_google") | 568 data = get_target_outputs(":copy_google") |
| 336 data += get_target_outputs(":copy_google_protobuf") | 569 data += get_target_outputs(":copy_google_protobuf") |
| 337 data += get_target_outputs(":copy_google_protobuf_internal") | 570 data += get_target_outputs(":copy_google_protobuf_internal") |
| 338 } | 571 } |
| OLD | NEW |