I would like to build all binaries for 64 and 32bit from the command line without the need to go to the Projucer and manually set the Architecture property in the Release settings of the Visual Studio exporter.
But between building the 64 and 32 bit binaries I need to select next to be build architecture from the Projucer and resave the project.
What I want instead is to completely automate the build (I have a NodeJS/grunt cli build that executes all the tasks).
Anyone has an advice?
Update:
Why does the Projucer makes you choose between the 2 Architectures, since the solution can have both. Can’t the Projucer just setup the 2 Architectures in the solution?
I’m not at my windows box right now, but IIRC that is the solution.
You can add additional configurations in the projucer and name them e.g. Debug-x64 and Debug-32 (Right click on Debug and select create copy of this configuration). Then you can set the settings for architecture in each one accordingly.
I’m using appveyor for automated Windows builds and found that having 2 separate Visual Studio exporters works great for that. After creating the exporters you should set their target project folders to something sensible and choose the architectures. Then adjust appveyor.yml as follows: