Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: third_party/protobuf/proto_library.gni

Issue 2935953002: Fix protobuf's Python runtime and imports.
Patch Set: debug import path Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 # Compile a protocol buffer. 5 # Compile a protocol buffer.
6 # 6 #
7 # Protobuf parameters: 7 # Protobuf parameters:
8 # 8 #
9 # proto_in_dir (optional) 9 # proto_in_dir (optional)
10 # Specifies the path relative to the current BUILD.gn file where 10 # Specifies the path relative to the current BUILD.gn file where
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 invoker.component_build_force_source_set && is_component_build) { 320 invoker.component_build_force_source_set && is_component_build) {
321 link_target_type = "source_set" 321 link_target_type = "source_set"
322 } else { 322 } else {
323 link_target_type = "static_library" 323 link_target_type = "static_library"
324 } 324 }
325 325
326 # Generated files may include other generated headers. These includes always 326 # Generated files may include other generated headers. These includes always
327 # use relative paths starting at |cc_out_dir|. 327 # use relative paths starting at |cc_out_dir|.
328 # However there is no necessity to add an additional directory, if all protos 328 # However there is no necessity to add an additional directory, if all protos
329 # are located in the same directory which is in the search path by default. 329 # are located in the same directory which is in the search path by default.
330 if (has_nested_dirs) { 330 if (has_nested_dirs && (generate_cc || generate_with_plugin)) {
331 config_name = "${target_name}_config" 331 config_name = "${target_name}_config"
332 config(config_name) { 332 config(config_name) {
333 include_dirs = [ cc_out_dir ] 333 include_dirs = [ cc_out_dir ]
334 } 334 }
335 } 335 }
336 336
337 # Build generated protobuf stubs as libary or source set. 337 # Build generated protobuf stubs as libary or source set.
338 target(link_target_type, target_name) { 338 target(link_target_type, target_name) {
339 forward_variables_from(invoker, 339 forward_variables_from(invoker,
340 [ 340 [
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 ":$action_name", 390 ":$action_name",
391 ] 391 ]
392 392
393 # This will link any libraries in the deps (the use of invoker.deps in the 393 # This will link any libraries in the deps (the use of invoker.deps in the
394 # action won't link it). 394 # action won't link it).
395 if (defined(invoker.deps)) { 395 if (defined(invoker.deps)) {
396 deps += invoker.deps 396 deps += invoker.deps
397 } 397 }
398 } 398 }
399 } 399 }
OLDNEW
« no previous file with comments | « third_party/protobuf/README.chromium ('k') | third_party/protobuf/python/google/protobuf/descriptor_pb2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698