| author | Radek Brich <radek.brich@devl.cz> | 
| Mon, 08 Sep 2014 20:14:24 +0200 | |
| branch | pyrit | 
| changeset 102 | de3e9ea18f56 | 
| parent 99 | f3abdaa2e8fb | 
| permissions | -rw-r--r-- | 
| 92 
9af5c039b678
add MSVC compiler support, make it default for Windows
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 1 | Import('env')
 | 
| 
9af5c039b678
add MSVC compiler support, make it default for Windows
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 2 | |
| 
9af5c039b678
add MSVC compiler support, make it default for Windows
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 3 | myenv = Environment() | 
| 
9af5c039b678
add MSVC compiler support, make it default for Windows
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 4 | myenv.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)})
 | 
| 62 
07c2f8084719
more SConscript tweaking, make model preparation work again
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 5 | files = ['lwo/Nissan300ZX.lwo', 'obj/cube.obj', 'obj/sphere.obj', 'obj/monkey.obj'] | 
| 
07c2f8084719
more SConscript tweaking, make model preparation work again
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 6 | |
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 7 | l = [] | 
| 62 
07c2f8084719
more SConscript tweaking, make model preparation work again
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 8 | for file in files: | 
| 92 
9af5c039b678
add MSVC compiler support, make it default for Windows
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 9 | 	l.append( myenv.Copy('#build/models/'+file, file) )
 | 
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 10 | |
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 11 | env.Alias('local-models', l)
 | 
| 62 
07c2f8084719
more SConscript tweaking, make model preparation work again
 Radek Brich <radek.brich@devl.cz> parents: diff
changeset | 12 | |
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 13 | plydir = Dir('#build/models/ply/')
 | 
| 99 
f3abdaa2e8fb
build script: updated for latest SCons, moved config.h to build/, help and clean targets does not run configure any more, fixed GCC check, added check for zlib
 Radek Brich <radek.brich@devl.cz> parents: 
92diff
changeset | 14 | |
| 92 
9af5c039b678
add MSVC compiler support, make it default for Windows
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 15 | import os | 
| 99 
f3abdaa2e8fb
build script: updated for latest SCons, moved config.h to build/, help and clean targets does not run configure any more, fixed GCC check, added check for zlib
 Radek Brich <radek.brich@devl.cz> parents: 
92diff
changeset | 16 | env.Command(plydir, [], | 
| 
f3abdaa2e8fb
build script: updated for latest SCons, moved config.h to build/, help and clean targets does not run configure any more, fixed GCC check, added check for zlib
 Radek Brich <radek.brich@devl.cz> parents: 
92diff
changeset | 17 |   '"'+Dir('#models/').abspath+os.sep+'download-stanford" $TARGET',
 | 
| 
f3abdaa2e8fb
build script: updated for latest SCons, moved config.h to build/, help and clean targets does not run configure any more, fixed GCC check, added check for zlib
 Radek Brich <radek.brich@devl.cz> parents: 
92diff
changeset | 18 |   ENV = {'PATH':os.environ['PATH']})
 | 
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 19 | Clean(plydir, plydir) | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 20 | |
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 21 | env.Alias('download-models', plydir)
 | 
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 22 | |
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 23 | env.Alias('models', ['local-models', 'download-models'])
 |