IntroJucer: doesn't add the JUCE directory to include paths

Discussion and support for general JUCE issues

IntroJucer: doesn't add the JUCE directory to include paths

Postby TheVinn » Fri Apr 27, 2012 6:38 pm

An annoyance, which also leads to another problem (in a separate post)

1) When I already have the JUCE source tree somewhere and disable copying, IntroJucer creates a folder called "JuceLibraryCode" which doesn't have any actual library code, just a tree of directory stubs leading to header files consisting of one-liner #include with relative paths:

ijstub.png
ijstub.png (10.98 KiB) Viewed 170 times


why is this necessary? I already have a nice well formed JUCE tree with full sources parallel to my application directory:

fullsource.png
fullsource.png (28.5 KiB) Viewed 170 times


IntroJucer already knows how to set up include paths. It would be a simple matter to just add the JUCE tree location to the include paths, instead of JuceLibraryCode:

settings.png
settings.png (11.42 KiB) Viewed 170 times


Why didn't IntroJucer just set "..\..\..\JUCE" instead of "..\..\JuceLibraryCode"? It has all the information it needs. Then I don't have a bunch of useless header files pretending to be the JUCE headers but really just one liners.
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2975
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: IntroJucer: doesn't add the JUCE directory to include pa

Postby jules » Sat Apr 28, 2012 10:46 am

The reason it's not done like that is because it's exporting projects that will be used on different machines, on which the juce folder may be in completely different locations. The JuceLibraryCode folder is more consistent though.

But this is all stuff that I'm going to review as I continue to work on it, so I might figure out a better scheme. I need to refactor it to support 3rd-party modules anyway, so it could all change.
User avatar
jules
Fearless Leader
 
Posts: 17193
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: IntroJucer: doesn't add the JUCE directory to include pa

Postby TheVinn » Sat Apr 28, 2012 2:36 pm

jules wrote:The reason it's not done like that is because it's exporting projects that will be used on different machines, on which the juce folder may be in completely different locations. The JuceLibraryCode folder is more consistent though. But this is all stuff that I'm going to review as I continue to work on it, so I might figure out a better scheme. I need to refactor it to support 3rd-party modules anyway, so it could all change.


That is good to hear...my use-case is that my repo has full JUCE sources along with all of the demo apps. Turns out IntroJucer is certainly the right tool for the job, but I would like to have the .jucer point at the JUCE tree in the repo (and the VFLib tree if it ever supports outside modules):

fullsources.png
fullsources.png (16.13 KiB) Viewed 150 times


The entire JUCE tree is in there
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2975
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California

Re: IntroJucer: doesn't add the JUCE directory to include pa

Postby TheVinn » Sat Apr 28, 2012 2:37 pm

Richard Stallman would object to labeling the directory "Linux" instead of "GNU/Linux"

And Apple will be calling it "OSX" soon (if not already).
Open Source: LayerEffects, VFLib, SimpleDJ, DSP Filters, LuaBridge, JUCE, FreeType, TagLib
"This isn't a big project, it shouldn't take long." - Jules
User avatar
TheVinn
JUCE UberWeenie
 
Posts: 2975
Joined: Sat Aug 29, 2009 11:31 am
Location: Marina del Rey, California


Return to General JUCE discussion

Who is online

Users browsing this forum: frankfilipanits, Google [Bot] and 2 guests