Chromium Code Reviews| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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, | 97 'msvs_cygwin_shell': 0, |
| 98 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', | 98 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', |
| 99 'process_outputs_as_sources': 1, | 99 'process_outputs_as_sources': 1, |
| 100 }, | 100 }, |
| 101 ], | 101 ], |
| 102 'dependencies': [ | 102 'dependencies': [ |
| 103 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', | 103 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', |
| 104 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', | 104 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_full_do_not_use', |
|
Albert Bodenhamer
2012/12/18 17:42:22
Test code?
Ilya Sherman
2012/12/19 01:50:08
Yep, this enables the DebugString() method that al
| |
| 105 # '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', | |
| 105 ], | 106 ], |
| 106 'include_dirs': [ | 107 'include_dirs': [ |
| 107 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | 108 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
| 108 '<(DEPTH)', | 109 '<(DEPTH)', |
| 109 ], | 110 ], |
| 110 'direct_dependent_settings': { | 111 'direct_dependent_settings': { |
| 111 'include_dirs': [ | 112 'include_dirs': [ |
| 112 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | 113 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
| 113 '<(DEPTH)', | 114 '<(DEPTH)', |
| 114 ] | 115 ] |
| 115 }, | 116 }, |
| 116 'export_dependent_settings': [ | 117 'export_dependent_settings': [ |
| 117 # The generated headers reference headers within protobuf_lite, | 118 # The generated headers reference headers within protobuf_lite, |
| 118 # so dependencies must be able to find those headers too. | 119 # so dependencies must be able to find those headers too. |
| 119 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', | 120 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_full_do_not_use', |
| 121 # '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', | |
| 120 ], | 122 ], |
| 121 # This target exports a hard dependency because it generates header | 123 # This target exports a hard dependency because it generates header |
| 122 # files. | 124 # files. |
| 123 'hard_dependency': 1, | 125 'hard_dependency': 1, |
| 124 } | 126 } |
| OLD | NEW |