1 Nov 2000 03:10
Cross Including Jamfiles - Bad Idea?
Alfred Landrum <alandrum <at> s8.com>
2000-11-01 02:10:38 GMT
2000-11-01 02:10:38 GMT
Howdy, [see dir structure below] If I cd into /top, everythings works as planned. But if I cd into /top/exec, it can't find targets libfoo or libbar. I want to be able to run jam from /top/exec, and have it find (and potentially update) libfoo and libbar. I see two solutions. One, make libfoo and libbar globally defined. Or, I could try to include libfoo's and libbar's Jamfile from exec's Jamfile. This will take some work, because I think we'll need to put "header guards" in the library's Jamfiles. I don't want to globally define them; it won't scale. Any suggestions? # Example directory structure /top/exec /top/libfoo /top/libbar # Jamfile in /top/exec SubDir TOP exec ; Main exec : main.c ; LinkLibraries exec : libfoo libbar ; # Jamfile in /top SubDir TOP ; SubInclude TOP exec ;(Continue reading)
RSS Feed