Post build event settings on windows and mac
-
Hi,
Could you please share how to customize the post build events for MSVC and XCode solution files generated by project tool?
Is there a setting in project tool to do this? Otherwise, which file and where in frameworks/settings can be modified to achieve this?Thanks!
-
Hello @BruceC,
Thank you for reaching out to us. There are as far as I know no options to add custom build events with the public project tool.
For the source processor there are the
sourceprocessor.buildevent
files which contain the XML for the source processor build event. But for Xcode there is no equivalent and I doubt that you can extend this for VS in a manner that you can add your own event files, I would assume that the source processor event is hardcoded.When you really have to customize your projects in this manner, you have two options:
- Do it manually every time (not great, I know).
- Write yourself a wrapper around the source processor which fiddles with its output once it is done. So you run your wrapper which then runs the PT and after that pokes around in the project files to add your events.
While 2. can probably be done reasonably fast with some knowledge about VS and Xcode project files, I would point out that the days of the source processor (at least in this form) are counted. I cannot give any ETAs here, but I would avoid putting time into custom project tool solutions, when you are not uncomfortable with this work-time becoming obsolete in a year or so. For me this would be three days. I could probably write "something" in that time, not sure though if it would be good enough for production, as these "tools" tend to cost more time than one plans for .
Cheers,
Ferdinand -
Thank you, @ferdinand