On 25/05/2012, at 12:52 PM, Michael Maul wrote: > Added plugin compatible C_PATH to server_config.cfg. At some point I'd like > to make my config parser a little less simple.
At some point it will be eliminated :) There are two ways, as mentioned in an earlier mail, to do this: (1) Use flx_pkgconfig To do this you just change the config file to an *.fpc file and follow the conventions: server_root: /usr/local FLX_DATA: whatever ... Then you can: var flx_data = popen("flx_pkgconfig --path=/somewhere --field=FLX_DATA --rec"); The important thing about this is that its easy to have multiple configs, and, it's possible to have dependencies. For example Requires: default_c_compiler_paths delegates the problem of finding the paths for #include display of compiler specialist includes to another package. Of course flx_pkgconfig could be put in the library, or, it can be made into a plugin. (2) The other way is to use Felix script for the config (as now), but load it as a plugin. Or even eval(".... ") or similar (run "flx" inside a Felix program to generate a shared lib which you then link to "on the fly"). -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language