Hi, I have a single project which builds slightly different variants of a plugin - these all appear with the same plugin name - is there any way to easily change this for each build configuration or do I need to create a separate Projucer project for building each variant?
thx - yes, that’s what I’m doing, but that doesn’t change the actual plugin name as it appears in hosts, or in plugin-host, as that is baked into the info defined in the Projucer project - it’s this information I want to change, but obv I need to do this in a complaint way so that it doesn’t get overwritten the next time I save the Projucer file
We have a number of projects with all sorts of requirements like this. I wrote a python module that allows us to change things in a jucer file. If it’s of any use I could probably put something up tonight or tomorrow night that you’re welcome to use. Essentially though it’s pretty easy as the jucer file is just an xml. The one thing to watch out for if you roll you’re own is to do the following…
read the xml data and make a copy of it
make the changes and write to disc
re-save using the projucer
build the project
reset the xml data on disc to exactly how you found it using the copy made in the first instruction
In python you can achieve the above using a try / finally clause or better still using a contextmanager so it can all be done in a with statement.
I thought setting JucePlugin_Name="MyPlug-debug"
in projucers config should work, and it changes the define indeed, so getName() will return that string.
But with a quick check the host still showed the old name. I assume it was cached somewhere, but I guess that’s the route to go…
Bumping this for 2020. With the current state of Projucer and Juce 6, is it possible to generate different plugin file names from a single Jucer project?
Some of my older plugins have different names for the 32 and 64-bit plugin files, as they date back from the PPC/Intel days. It would be great to have a single Projucer project for all the 64-bit plugins that can retain the older file names.