Conditionally compile plugins based on platform

I don’t want to mislead anyone, but this DID NOT work for me. I’ve tried “WhiteListPlatforms”, and “BlackListPlatforms.”

In both cases, after re-generating project files, XCODE was still trying to Compile a plugin that I had BlackListed for IOS.

I’m going to write this one off as a bug.

That being said, I found a solution:

Just delete the .uplugin file that you “DO NOT” want to even try to compile. This is a much simpler approach, and it won’t allow the “Project File Generation” code to even notice that’s a plugin and add it to the build list.

My observations:

If you are under version control software such as Perforce, each time you grab the latest version, this file (*.uplugin) will be added back to the project file structure, just don’t forget to “re-delete” it. That should take care of the problem until “WhiteListPlatforms” or “BlackListPlatforms” starts working again.

I cannot give any source, as I am under NDA / working for a company which it is NOT allowed. I deeply apologize that I cannot provide samples.