Index: build/protoc.gypi |
diff --git a/build/protoc.gypi b/build/protoc.gypi |
index 897e446e8e86266844183a00ba625733378f8df7..e956718e0d038207bf660cd19948512d1df5c82a 100644 |
--- a/build/protoc.gypi |
+++ b/build/protoc.gypi |
@@ -48,12 +48,18 @@ |
{ |
'variables': { |
'protoc_wrapper': '<(DEPTH)/tools/protoc_wrapper/protoc_wrapper.py', |
- 'protoc': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
'cc_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out/<(proto_out_dir)', |
'py_dir': '<(PRODUCT_DIR)/pyproto/<(proto_out_dir)', |
'cc_generator_options%': '', |
'cc_include%': '', |
'proto_in_dir%': '.', |
+ 'conditions': [ |
+ ['use_system_protobuf==0', { |
+ 'protoc': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
+ }, { # use_system_protobuf==1 |
+ 'protoc': '<!(which protoc)', |
+ }], |
+ ], |
}, |
'rules': [ |
{ |