| author | Radek Brich <radek.brich@devl.cz> | 
| Wed, 19 Aug 2009 09:18:29 +0200 | |
| branch | pyrit | 
| changeset 101 | 50a994a57849 | 
| parent 100 | c005054bf4c1 | 
| child 104 | 2274a07510c1 | 
| permissions | -rw-r--r-- | 
| 101 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 1 | Import('pymodule cc')
 | 
| 60 | 2 | |
| 3 | env = Environment() | |
| 4 | env.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: 
60diff
changeset | 5 | files = [ | 
| 
07c2f8084719
more SConscript tweaking, make model preparation work again
 Radek Brich <radek.brich@devl.cz> parents: 
60diff
changeset | 6 | 'boxes.py', 'buddha.py', 'bunny.py', 'car.py', 'dragon.py', | 
| 
07c2f8084719
more SConscript tweaking, make model preparation work again
 Radek Brich <radek.brich@devl.cz> parents: 
60diff
changeset | 7 | 'spheres_ao.py', 'spheres_glass.py', 'spheres_shadow.py', | 
| 
07c2f8084719
more SConscript tweaking, make model preparation work again
 Radek Brich <radek.brich@devl.cz> parents: 
60diff
changeset | 8 | 'triangles_monkey.py', 'triangles_sphere.py', | 
| 72 
7c3f38dff082
kd-tree building - check all axes for best split, add additional shape-bbox check
 Radek Brich <radek.brich@devl.cz> parents: 
65diff
changeset | 9 | 'objreader.py', 'plyreader.py', 'lworeader.py', | 
| 97 
2a853d284a6a
added bench.py demo which prints tree build and render times
 Radek Brich <radek.brich@devl.cz> parents: 
96diff
changeset | 10 | 'vector.py', 'render_nff.py', 'demo_PIL.py', | 
| 
2a853d284a6a
added bench.py demo which prints tree build and render times
 Radek Brich <radek.brich@devl.cz> parents: 
96diff
changeset | 11 | 'texture.py', 'bench.py'] | 
| 60 | 12 | |
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 13 | l = [] | 
| 62 
07c2f8084719
more SConscript tweaking, make model preparation work again
 Radek Brich <radek.brich@devl.cz> parents: 
60diff
changeset | 14 | for file in files: | 
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 15 | 	l.append( env.Copy('#build/demos/'+file, file) )
 | 
| 60 | 16 | |
| 65 
242839c6d27d
basic detection of compiler (GCC or ICC) and CPU capabilities
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 17 | import os | 
| 
242839c6d27d
basic detection of compiler (GCC or ICC) and CPU capabilities
 Radek Brich <radek.brich@devl.cz> parents: 
63diff
changeset | 18 | l.append( env.Copy('#build/demos/'+str(pymodule[0]).split(os.sep)[-1], str(pymodule[0])) )
 | 
| 63 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 19 | |
| 
440e1ae80459
add many SCons targets (see DEVNOTES)
 Radek Brich <radek.brich@devl.cz> parents: 
62diff
changeset | 20 | env.Alias('python-demos', l)
 | 
| 100 
c005054bf4c1
new build target 'vcproj' - generate Visual C++ Studio project files; fix GCC warnings in intersect_packet()
 Radek Brich <radek.brich@devl.cz> parents: 
97diff
changeset | 21 | |
| 101 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 22 | if cc == 'msvc': | 
| 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 23 | # MS Visual Studio Project | 
| 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 24 | vcprojmisc = [] | 
| 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 25 | for file in files: | 
| 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 26 | vcprojmisc += ['demos/' + file] | 
| 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 27 | vcproj = env.MSVSProject( | 
| 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 28 | auto_build_solution=0, | 
| 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 29 | target = '#pyrit_demos' + env['MSVSPROJECTSUFFIX'], | 
| 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 30 | misc = vcprojmisc, | 
| 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 31 | buildtarget = 'python-demos', | 
| 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 32 | variant = 'Release') | 
| 100 
c005054bf4c1
new build target 'vcproj' - generate Visual C++ Studio project files; fix GCC warnings in intersect_packet()
 Radek Brich <radek.brich@devl.cz> parents: 
97diff
changeset | 33 | |
| 101 
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
 Radek Brich <radek.brich@devl.cz> parents: 
100diff
changeset | 34 | 	Return('vcproj')
 |