Hi,
I have more and more applications using Juce running at the same time, each one using its own static blob of binary juce classpath.
As I can’t get Juce to build as a shared lib under linux (is it even possible, and if yes, how ?), I was wondering if a behaviour à la Busybox would be easy to implement.
Basically, BusyBox compiles all functions (“ls”, “cp”, “more”, etc…) in a single binary which is symbolic linked and use the argv[0] to call the appropriate “main”.
For example, a “ls /usr/bin” in a busybox system gives:
ls => /usr/bin/busybox
cp => /usr/bin/busybox
etc…
Then, in the busybox binary, you’ll have a code like this:
int ls_main(int argc, char ** argv) { ...}
int cp_main(int argc, char ** argv) { ...}
int main(...)
{
if argv[0] == "cp" return cp_main(argc, argv);
if argv[0] == "ls" return ls_main(...etc...
I was wondering what Juce does of its argv[0], is it possible to get it in the JUCEApplication ?