mirror of https://gitlab.com/ita1024/waf.git
Protoc: Fix bug in src-path
The tool was using an relative path for the includes, but an absolute for the src-files. Protoc cannot distinguish between relative and absolute paths and is not able to find sources when relative and absolute paths are combined. Tested with protoc 2.6.1, python 3.5.1
This commit is contained in:
parent
213068dc99
commit
c6fb060710
|
@ -35,8 +35,7 @@ Notes when using this tool:
|
|||
"""
|
||||
|
||||
class protoc(Task):
|
||||
# protoc expects the input proto file to be an absolute path.
|
||||
run_str = '${PROTOC} ${PROTOC_FLAGS} ${PROTOC_ST:INCPATHS} ${SRC[0].abspath()}'
|
||||
run_str = '${PROTOC} ${PROTOC_FLAGS} ${PROTOC_ST:INCPATHS} ${SRC[0].bldpath()}'
|
||||
color = 'BLUE'
|
||||
ext_out = ['.h', 'pb.cc']
|
||||
def scan(self):
|
||||
|
|
Loading…
Reference in New Issue