I'm using protocol buffers and I need to generate C files in my build step which need to be added into my Application make targets. What would be the best way to do this? How can I create a pre application build target that will generate the extra source files and then add it to the main applications targets dependency ?
Perhaps it would be beneficial for your project to create a script. In this script, first call a make to generate protobuf c/h files then call Wiced make to build your app. You may use your favorite scripting language.
The same script could be used on your build server to generate nightly builds as well. Script could be used by other developers as they join to generate protobuf files.
Below batch file is for Windows environment to build but if your server is running Linux, it could be replaced with a script running on Linux.