I'm using protobuf
to generate from .proto files to .cc/.h files. So I have my SConscript
as below:
env.protoc('my.proto')
env.Program(target='pb_my', CCFLAGS="-I.",
source=['pb_my.cpp', 'my.pb.cc'], LIBS='protobuf')
I find that, the "env." commands in a SConscript is not executed in sequence(that's why targets can be build in parallel using scons -j20). But sometimes problem is, because the target of "pb_my" should be build after I generate "my.pb.cc" from "my.proto", scons will report error is second line is executed first.
So how can I specify that the second line's target should only be executed after 1st line is finished?
Thanks a lot.