Last change
on this file since 1161 was
1135,
checked in by mar637, 18 years ago
|
more work on a modular scons set up
|
File size:
546 bytes
|
Rev | Line | |
---|
[1135] | 1 | import glob |
---|
| 2 | import os |
---|
| 3 | |
---|
| 4 | def generate(env): |
---|
| 5 | def SGlob(pattern): |
---|
| 6 | path = env.GetBuildPath('SConscript').replace('SConscript', '') |
---|
| 7 | return [ i.replace(path, '') for i in glob.glob(path + pattern) ] |
---|
| 8 | env.SGlob = SGlob |
---|
| 9 | |
---|
| 10 | def AddCustomPath(path=""): |
---|
| 11 | if not len(path) or not os.path.exists(path): |
---|
| 12 | return |
---|
| 13 | env.PrependUnique(CPPPATH = [os.path.join(path, "include")]) |
---|
| 14 | env.PrependUnique(LIBPATH = [os.path.join(path, "lib")]) |
---|
| 15 | env.AddCustomPath = AddCustomPath |
---|
| 16 | |
---|
| 17 | def exists(env): |
---|
| 18 | return true |
---|
Note: See
TracBrowser
for help on using the repository browser.