True, that would be better. But I’d still have to open each plugin project individually to build it against any changes.
I think it’s a matter of what is the core group of customers JUCE aims at.
Back when I got started with JUCE with very little C++ knowledge I was happy that the Projucer existed as it took away the need from me to learn both, build systems and writing C++ at the same time. I loved that tool. Fast forward to today, I’m working full time as C++ developer for a company that builds every plugin based on JUCE and haven’t opened the Projucer for approx 1 1/2 years now.
I think I can understand both sides, the Projucer fans and the CMake fans. I don’t want to try to convince anyone here that CMake is the ultimative better choice, I just want to explain why e.g. we at sonible happily decided to go full CMake and why we didn’t look back since then.
When I joined the sonible team, there was no official CMake support for JUCE, so all our products were Projucer based. Back then, we used our own customised Projucer build because we wanted one simple feature that were not possible at the time (not sure if it is today): For each plugin project, there should be a VST, VST3, AU, AAX and a catch unit test target, all using the same shared code. While all the plugin formats were there, creating an extra unit test target for a plugin was not possible out of the box, which is quite bad if you take test driven development serious. So we had to maintain a custom Projucer fork.
With the change to CMake we were suddenly able to just implement this feature ourselves in a few simple lines of CMake code, which was a huge improvement over always patching the Projucer. Over time we now have added lots of convenient CMake-based functionality that made our daily life as programers easier. Some examples are:
- We use conan to manage library dependencies. A rather simple task with CMake because CMake is an industry standard and there is some integration. Not sure how that should be possible with the Projucer
- Parts of our code-base are not based on JUCE as they need to be compatible with third party stuff that is not JUCE-based. It’s simple to integrate these parts im our plugins with CMake while managing the non-JUCE things with pure CMake and other parties also know how to integrate CMake
- We are completely free in our choice of IDEs etc. – None of our Mac developers still uses Xcode anymore
- The CI setup has become a lot simpler since all projects were ported to CMake
Porting all our existing projects to CMake was quite a bit of work. But I’m not sure if e.g. our smartEQ:3 (which was our first CMake project) with all the dependencies that it has to make inter-plugin-communication and the AI stuff we integrate and needs a lot of fancy pre-build steps could be built at all with the Projucer.
Again, all this should just give you an idea of why we love and need CMake and maybe explain why some people here promote it that much. I remember that learning CMake was quite hard at first, you quickly forget that once you have learnt something. If the JUCE team decided to drop the Projucer in favour of putting more effort into the C++ codebase, I would probably be happy because they would spend more time on the part of JUCE that I actually use. But reading other comments, I’m totally aware that not all the users here work at a company of our size and might have totally different requirements, so I think the Projucer has its value and I also don’t expect the team to drop it in the near future.
Great points. The Projucer is a good “getting started” tool, but as soon as you need to do anything more advanced or custom, it’s either a pain or just not possible at all in the Projucer.
thanks for your insights. but even with all your experiences the answer to this question is still diffused. because some people could argue “ok let’s drop projucer and focus on juce’ features, cause without projucer there’s more time for that”, and that would be a straight-forward way of thinking, but my approach would be more like “ok, i want juce to have way more features. so i want them to have to work less on lots of stuff and outsource that to the community. a shared effort can move forward faster than a small team of programmers. so support the projucer until it’s so powerful that it enables the community to do all that”
the only problem with my concept is that it’s not very close to reality yet so i can’t proof that it would work out as nicely as i imagine it. but i still wanted to discuss it with everyone here just to get the idea out into the world already
I don’t really see how these two things are related. A lot of the issues that most need the JUCE team’s attention are core updates to the JUCE code itself, which can’t really be done by the community since JUCE rarely accepts PRs. And community development can happen with any build system, not just the Projucer.
i want more things to change than that. way more. i have torned that subtly before already when i teased juce for having made a framework that caused lots of plugins to have the same reverbs. by trying to provide all these tools all by themselves juce has gave itself a lot of responsibilities to maintain and improve these things as well, but some of these things are so specific that it would be cool if there were more alternatives. so if juce just had absolutely no responsibilities about the content of a plugin, but just gave the perfect environment to put contents together, to adjust them to taste a bit, and to have people work with each other in a persuit to make good stuff, then i personally believe it would result in a more productive workflow for everyone and better resulting products as well, than if they spend the rest of their lives bugfixing edge case features
I agree that JUCE shouldn’t focus too much on providing a lot of DSP/GUI widgets. I usually value these more as example code than actual classes to use in production.
But again, I don’t really see how this is related to the Projucer. If anything, it’s easier to use third party dependencies in CMake than in the Projucer.
my point was just that project management could be thought much further, even to ridiculous lengths with all the features discussed in this post. and that this effort could be the key to a future juce that feels even better to use. the projucer could be much more than an entry-level helper app one day, but it doesn’t look like that today so it’s important to talk about it
Sure. The Projucer can most definitely be improved.
But all of the improvements we’ve suggested in this thread are features that already exist in CMake. I believe it would not be a good use of the JUCE team’s time to rewrite CMake with a GUI – if you want those features, just use the tool that already exists. I would much rather the JUCE team focus on improving the graphics backend, proper Unicode support, and the dozens of other FRs that are in their backlog.
It really seems that investing some time learning cmake is worth the effort.
I think it’s interesting, though, that nobody has mentioned the discontinued live build tool of the projucer. That was perhaps the one thing you could do with the projucer and not cmake and it was specially attactive for those getting started.
I never used it, but perhaps those who have could comment. Would you want it back? Or something similar? Could such a tool be of use even if you normally use cmake?
no there are not. can cmake connect you to a library of audio dev related content with nicely categorised 3rd party prefabs and then let you drag n drop those into your project and immediatly have the code generated to get it to work in the context of your audio software? that’s a trick question, because cmake has no ui/ux features. it’s a scripting language. it’s powerful, but hard to learn. in theory it gives you endless freedom. but it also limits you to how much you know about how to use it
I think instead of planning for juce the team’s time, we can save our own time…
The JUCE team knows what to do with their time.
- Projucer is fine and is needed for many legacy reasons. It is also simple and totally sufficient for self contained project as well for some minor dependencies.
- It is safe to assume there won’t be any bigger features added to Projucer, the maintainance effort is just bugfixes and writing new exporters when new IDEs pop up. I think that effort is worthwhile.
- Cmake is most likely the future and worth learning as soon as you have to.
The Projucer can’t do this either.
i wasn’t around yet when this was a thing, but i heard of it and i think that it should be addressed again if the juce team decided to make the ultimate audio project management tool
I think Daniel is right that the Projucer is mostly being kept for legacy reasons. It seems unlikely to me that we’ll see any major new features any time soon.
but it could do it. and cmake will never do it
then why does juce likely have the biggest audio dev community? i’d say the projucer is the major reason why this community grew so well. enabling more people to make software is key for a diverse field of plugin releases and that’s what juce does pretty well already. the changes i suggested would only amplify this effect
It would be really hard to measure either way, but I think the reason is that JUCE provides wrappers for every plugin format. No other framework that I know of does this. I don’t think the Projucer is the reason JUCE became popular because it’s not a unique tool – Qt has qmake, and there are other GUI-based project generator tools out there.
i don’t think plugin formats make a big difference. especially not the ones from logic and protools, because they are exclusive to their own eco-systems and don’t unite musicians like vst and clap do. if you wanna make vst plugins you make vst plugins (and maybe clap) but aax support, or whatever that was called? maybe if the framework gives it to you for free and you don’t have to put work into it, but it’s not like anyone would go for it on purpose, except if it’s their personal favourite daw
They absolutely would. For many professional audio plugin companies, ProTools and AAX plugins are the majority of their sales.