Is there any way to exclude certain files per-platform within Projucer? I have a feature that only works in OSX using source file libraries that reference OSX-specific APIs, so I want to exclude the relevant files in WIndows builds. I could see an interface for this living in the Files tab of Projucer in the Group view.
Is there a recommended way to do something like this? I see a few options:
Wrap the library code in #ifdefs (pretty gross to custom edit a library)
Maintain multiple Projucer projects (not ideal)
Create a post-Projucer script that I run to edit the generated project files and delete the unwanted files (unfortunate to add this extra step)
I could also compile the libraries down to lib files and only link them in for the desired platforms, and then platform #ifdef out the calls into them, but I like having them as code. Maybe that’s my problem, though, and I should go that way.
Excellent, I like this #include wrapper approach, it allows me to #ifdef the library code out without actually editing the library code. Thanks for the advice!