| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # This file is meant to be included into a target to provide a rule | 5 # This file is meant to be included into a target to provide a rule |
| 6 # to invoke protoc in a consistent manner. For Java-targets, see | 6 # to invoke protoc in a consistent manner. For Java-targets, see |
| 7 # protoc_java.gypi. | 7 # protoc_java.gypi. |
| 8 # | 8 # |
| 9 # To use this, create a gyp target with the following form: | 9 # To use this, create a gyp target with the following form: |
| 10 # { | 10 # { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 '--proto-in-dir','<(proto_in_dir)', | 87 '--proto-in-dir','<(proto_in_dir)', |
| 88 # Naively you'd use <(RULE_INPUT_PATH) here, but protoc requires | 88 # Naively you'd use <(RULE_INPUT_PATH) here, but protoc requires |
| 89 # --proto_path is a strict prefix of the path given as an argument. | 89 # --proto_path is a strict prefix of the path given as an argument. |
| 90 '--proto-in-file','<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)', | 90 '--proto-in-file','<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)', |
| 91 '--use-system-protobuf=<(use_system_protobuf)', | 91 '--use-system-protobuf=<(use_system_protobuf)', |
| 92 '--', | 92 '--', |
| 93 '<(protoc)', | 93 '<(protoc)', |
| 94 '--cpp_out', '<(cc_generator_options)<(cc_dir)', | 94 '--cpp_out', '<(cc_generator_options)<(cc_dir)', |
| 95 '--python_out', '<(py_dir)', | 95 '--python_out', '<(py_dir)', |
| 96 ], | 96 ], |
| 97 'msvs_cygwin_shell': 0, | |
| 98 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', | 97 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', |
| 99 'process_outputs_as_sources': 1, | 98 'process_outputs_as_sources': 1, |
| 100 }, | 99 }, |
| 101 ], | 100 ], |
| 102 'dependencies': [ | 101 'dependencies': [ |
| 103 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', | 102 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', |
| 104 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', | 103 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 105 ], | 104 ], |
| 106 'include_dirs': [ | 105 'include_dirs': [ |
| 107 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | 106 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
| 108 '<(DEPTH)', | 107 '<(DEPTH)', |
| 109 ], | 108 ], |
| 110 'direct_dependent_settings': { | 109 'direct_dependent_settings': { |
| 111 'include_dirs': [ | 110 'include_dirs': [ |
| 112 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | 111 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
| 113 '<(DEPTH)', | 112 '<(DEPTH)', |
| 114 ] | 113 ] |
| 115 }, | 114 }, |
| 116 'export_dependent_settings': [ | 115 'export_dependent_settings': [ |
| 117 # The generated headers reference headers within protobuf_lite, | 116 # The generated headers reference headers within protobuf_lite, |
| 118 # so dependencies must be able to find those headers too. | 117 # so dependencies must be able to find those headers too. |
| 119 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', | 118 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 120 ], | 119 ], |
| 121 # This target exports a hard dependency because it generates header | 120 # This target exports a hard dependency because it generates header |
| 122 # files. | 121 # files. |
| 123 'hard_dependency': 1, | 122 'hard_dependency': 1, |
| 124 } | 123 } |
| OLD | NEW |