OLD | NEW |
1 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 # Copied from Chromium's src/build/protoc.gypi | 9 # Copied from Chromium's src/build/protoc.gypi |
10 # | 10 # |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 '--use-system-protobuf=<(use_system_protobuf)', | 102 '--use-system-protobuf=<(use_system_protobuf)', |
103 '--', | 103 '--', |
104 '<(protoc)', | 104 '<(protoc)', |
105 '--cpp_out', '<(cc_generator_options)<(cc_dir)', | 105 '--cpp_out', '<(cc_generator_options)<(cc_dir)', |
106 '--python_out', '<(py_dir)', | 106 '--python_out', '<(py_dir)', |
107 ], | 107 ], |
108 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', | 108 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', |
109 'process_outputs_as_sources': 1, | 109 'process_outputs_as_sources': 1, |
110 }, | 110 }, |
111 ], | 111 ], |
112 'dependencies': [ | |
113 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', | |
114 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', | |
115 ], | |
116 'include_dirs': [ | 112 'include_dirs': [ |
117 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | 113 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
118 '<(DEPTH)', | 114 '<(DEPTH)', |
119 ], | 115 ], |
120 'direct_dependent_settings': { | 116 'direct_dependent_settings': { |
121 'include_dirs': [ | 117 'include_dirs': [ |
122 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | 118 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
123 '<(DEPTH)', | 119 '<(DEPTH)', |
124 ] | 120 ] |
125 }, | 121 }, |
126 'export_dependent_settings': [ | |
127 # The generated headers reference headers within protobuf_lite, | |
128 # so dependencies must be able to find those headers too. | |
129 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', | |
130 ], | |
131 # This target exports a hard dependency because it generates header | 122 # This target exports a hard dependency because it generates header |
132 # files. | 123 # files. |
133 'hard_dependency': 1, | 124 'hard_dependency': 1, |
| 125 'conditions': [ |
| 126 ['build_protobuf==1', { |
| 127 'dependencies': [ |
| 128 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', |
| 129 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 130 ], |
| 131 'export_dependent_settings': [ |
| 132 # The generated headers reference headers within protobuf_lite, |
| 133 # so dependencies must be able to find those headers too. |
| 134 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 135 ], |
| 136 }], |
| 137 ], |
134 } | 138 } |
OLD | NEW |