Building a Reaper extension for both Windows and MacOS

I am using Projucer 8.0.8 to build a Reaper extension. I finished the Windows version (using VS2022) and would like to now get it working for the Mac. I’ve added the Xcode (MacOS) exporter and tried building just to see how it goes. It fails as there are some Lice/OpenGL files that it tries to compile that are Windows-only.

In Projucer, I tried choosing the Xcode exporter using the “Selected Exporter” comboBox at the top of the window. I then unchecked “Compile” for the offending files. I found that this also unchecked them for the VS2022 exporter (and vice versa).

How do I make custom selections for each exporter? If that isn’t the right approach, what is the proper method for cross-platform development like this?

Do you need Lice/OpenGL for the specific purpose of your extension? If not, you might have over engineered the Windows solution. If you can share the process of how you got it to run I might be able to help further.

But generally speaking, CMake is the solution for any cross-platform customization.