Last change
on this file since 2090 was 1751, checked in by Malte Marquarding, 15 years ago |
dist is root dir relative
|
File size:
546 bytes
|
Rev | Line | |
---|
[1407] | 1 | import os,glob,shutil
|
---|
| 2 |
|
---|
| 3 | # import root environment
|
---|
| 4 | Import( "env")
|
---|
[1442] | 5 | myenv = env.Clone()
|
---|
[1407] | 6 |
|
---|
| 7 | # gather cpp files
|
---|
| 8 | cpps = env.SGlob("*.cpp")
|
---|
| 9 |
|
---|
[1665] | 10 | # location of libasap.a
|
---|
[1407] | 11 | myenv.Prepend( LIBPATH = ['#/build'] )
|
---|
| 12 | myenv.Prepend( CPPPATH = ['#/build'] )
|
---|
| 13 | myenv.Append(CCFLAGS = ["-DWCSLIB_GETWCSTAB"])
|
---|
[1748] | 14 | myenv.Prepend(LIBS = ['asap'])
|
---|
[1407] | 15 |
|
---|
[1748] | 16 | installs = []
|
---|
[1407] | 17 | for cpp in cpps:
|
---|
[1748] | 18 | prog = myenv.Program(cpp)
|
---|
| 19 | installs.append(myenv.Install("$prefix/bin", prog))
|
---|
[1750] | 20 | if len(myenv["makedist"]):
|
---|
[1751] | 21 | myenv.QInstall("#/$stagedir/bin", prog)
|
---|
[1750] | 22 |
|
---|
[1748] | 23 | myenv.Alias('install', installs)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.