author | Radek Brich <radek.brich@devl.cz> |
Tue, 26 Jul 2016 18:19:37 +0200 | |
branch | pyrit |
changeset 104 | 2274a07510c1 |
parent 101 | 50a994a57849 |
permissions | -rw-r--r-- |
101
50a994a57849
vcproj build target only for cc=msvc, fix sdl-config
Radek Brich <radek.brich@devl.cz>
parents:
100
diff
changeset
|
1 |
Import('env sdlenv have_sdl lib cc') |
92
9af5c039b678
add MSVC compiler support, make it default for Windows
Radek Brich <radek.brich@devl.cz>
parents:
91
diff
changeset
|
2 |
myenv = sdlenv.Clone() |
93 | 3 |
myenv.Append(LIBPATH=['#build/lib']) |
88
f7edb3b90816
merge pixmap handling from sampler, material.h and ccdemos's image module to new Pixmap class
Radek Brich <radek.brich@devl.cz>
parents:
84
diff
changeset
|
4 |
myenv.Prepend(LIBS=['pyrit']) |
60 | 5 |
|
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:
95
diff
changeset
|
6 |
demos = [ |
c005054bf4c1
new build target 'vcproj' - generate Visual C++ Studio project files; fix GCC warnings in intersect_packet()
Radek Brich <radek.brich@devl.cz>
parents:
95
diff
changeset
|
7 |
'realtime.cc', 'realtime_bunny.cc', 'realtime_dragon.cc', |
c005054bf4c1
new build target 'vcproj' - generate Visual C++ Studio project files; fix GCC warnings in intersect_packet()
Radek Brich <radek.brich@devl.cz>
parents:
95
diff
changeset
|
8 |
'spheres_shadow.cc', 'textures.cc'] |
c005054bf4c1
new build target 'vcproj' - generate Visual C++ Studio project files; fix GCC warnings in intersect_packet()
Radek Brich <radek.brich@devl.cz>
parents:
95
diff
changeset
|
9 |
|
c005054bf4c1
new build target 'vcproj' - generate Visual C++ Studio project files; fix GCC warnings in intersect_packet()
Radek Brich <radek.brich@devl.cz>
parents:
95
diff
changeset
|
10 |
includes = ['common_sdl.h', 'common_ply.h'] |
c005054bf4c1
new build target 'vcproj' - generate Visual C++ Studio project files; fix GCC warnings in intersect_packet()
Radek Brich <radek.brich@devl.cz>
parents:
95
diff
changeset
|
11 |
|
92
9af5c039b678
add MSVC compiler support, make it default for Windows
Radek Brich <radek.brich@devl.cz>
parents:
91
diff
changeset
|
12 |
l = [] |
95
ca7d4c665531
build script fixes, add ldflags build option
Radek Brich <radek.brich@devl.cz>
parents:
93
diff
changeset
|
13 |
if have_sdl: |
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:
95
diff
changeset
|
14 |
for src in demos: |
c005054bf4c1
new build target 'vcproj' - generate Visual C++ Studio project files; fix GCC warnings in intersect_packet()
Radek Brich <radek.brich@devl.cz>
parents:
95
diff
changeset
|
15 |
l.append( myenv.Program(src) ) |
60 | 16 |
|
92
9af5c039b678
add MSVC compiler support, make it default for Windows
Radek Brich <radek.brich@devl.cz>
parents:
91
diff
changeset
|
17 |
env.Alias('cc-demos', l) |