- Edited
is it possible to get the IDE to trigger a custom (user supplied) makefile, or even a user specified build script rather than compile the C++ files itself....
Ive quite a few cases now where the simplicity of 'just compile all source files' is not really working for me. or at best, I end up working around it.
typical examples for me include
a) I structure my code into a number of components/shared libraries
this means i currently end up compiling separately which is a bit of a pain
b) I tend to use cmake
Id like to have bela stuff included in this, so its easy to compile outside ide, also keep compiler options in one place
c) (latest one) I'd like to use precompiled headers to speed up compilation (significantly, as ableton link is huge!)
requires you to build pch, with diff compiler options, then compile main program with compiler option to include it.
I think what would be best, is the user being able to specify a build script which gets called....
an 'agreement' that
a) it generates an executable, same name as project
b) it has a return code == 0 , is success
then the ide is simply tasked with
displaying output in console (as it does for make)
know if build has failed/succeeded via (b)
thoughts? is this something that I could achieve, without rewriting lots of code?
(Im not familiar at all with IDE, but perhaps something i can mangle into the Makefile - thought thats quite a complex beast these days)
of a cludge for pch ?
(compiling ableton link header in my render.cpp, is taking about 5 mins each time... so has been very time consuming... to the point I even consider putting it into a shared lib.. but unfortunately that doesnt help, if I need to change that lib code at all)