| 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 # Compile a protocol buffer. | 5 # Compile a protocol buffer. |
| 6 # | 6 # |
| 7 # The 'proto_in_dir' variable must be the relative path to the | 7 # The 'proto_in_dir' variable is the path to the directory containing the |
| 8 # directory containing the .proto files. If left out, it defaults to '.'. | 8 # .proto files. If left out, it defaults to '.'. |
| 9 # | 9 # |
| 10 # The 'proto_out_dir' variable specifies the path suffix that output files are | 10 # The 'proto_out_dir' variable specifies the path suffix that output files are |
| 11 # generated under. Targets that gyp-depend on my_proto_lib will be able to | 11 # generated under. Targets that gyp-depend on my_proto_lib will be able to |
| 12 # include the resulting proto headers with an include like: | 12 # include the resulting proto headers with an include like: |
| 13 # #include "dir/for/my_proto_lib/foo.pb.h" | 13 # #include "dir/for/my_proto_lib/foo.pb.h" |
| 14 # If undefined, this defaults to matching the input directory. | 14 # If undefined, this defaults to matching the input directory. |
| 15 # | 15 # |
| 16 # If you need to add an EXPORT macro to a protobuf's C++ header, set the | 16 # If you need to add an EXPORT macro to a protobuf's C++ header, set the |
| 17 # 'cc_generator_options' variable with the value: 'dllexport_decl=FOO_EXPORT:' | 17 # 'cc_generator_options' variable with the value: 'dllexport_decl=FOO_EXPORT:' |
| 18 # e.g. 'dllexport_decl=BASE_EXPORT:' | 18 # e.g. 'dllexport_decl=BASE_EXPORT:' |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 sources = get_target_outputs(":$action_name") | 116 sources = get_target_outputs(":$action_name") |
| 117 | 117 |
| 118 direct_dependent_configs = [ "//third_party/protobuf:using_proto" ] | 118 direct_dependent_configs = [ "//third_party/protobuf:using_proto" ] |
| 119 | 119 |
| 120 deps = [ | 120 deps = [ |
| 121 ":$action_name", | 121 ":$action_name", |
| 122 "//third_party/protobuf:protobuf_lite", | 122 "//third_party/protobuf:protobuf_lite", |
| 123 ] | 123 ] |
| 124 } | 124 } |
| 125 } | 125 } |
| OLD | NEW |