So the next patch, the config will return two independent directories:
FLX_INSTALL_DIR
FLX_TARGET_DIR
The first is mainly to get
FLX_INSTALL_DIR/share
and the next change will be to eliminate the FLX_INSTALL_DIR variable.
You can still set the FLX_INSTALL_DIR, but it will set
FLX_SHARE_DIR = FLX_INSTALL_DIR/share
FLX_TARGET_DIR=FLX_INSTALL_DIR/FLX_TARGET_SUBDIR
so it is basically just a macro. In turn, these new symbols will be
eliminated, that is, setting them just sets subsidiary variables
that are *actually* required to run flx, such as search paths for the RTL
and Felix, the grammar location, etc etc.
However the next change after that will be to allow *multiple* share dirs.
That's so we can then do this:
felix/felix-latest/share/lib/ // standard library
felix/packages/share/addon // an addon library
or something similar. This way you can just set the paths, the standard
layout will just be a convention, not something enforced.
Of course there are more variables to consider, eg cache location,
C++ search paths, static linker search paths, load time linkage
and run time linkage, location of fonts, etc etc..
So in the transition process if you use a non-standard layout some
thing may break. Or worse .. they may work, but not as you expected.
[I.e. silently use the wrong version of something]
bear with me: a full recompile on my Mac takes about 6 hours.
--
john skaller
[email protected]
http://felix-lang.org
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language