300 |
300 |
301 |
301 |
302 ### build targets |
302 ### build targets |
303 |
303 |
304 Export('env pyenv sdlenv have_sdl cc') |
304 Export('env pyenv sdlenv have_sdl cc') |
305 lib = SConscript('src/SConscript', build_dir='build/lib', duplicate=0, |
305 lib = SConscript('src/SConscript', variant_dir='build/lib', duplicate=0, |
306 exports={'buildmodule':False}) |
306 exports={'buildmodule':False}) |
307 if cc == 'msvc': |
307 if cc == 'msvc': |
308 (pymodule, modvcproj) = SConscript('src/SConscript', build_dir='build/pymodule', duplicate=0, |
308 (pymodule, modvcproj) = SConscript('src/SConscript', variant_dir='build/pymodule', duplicate=0, |
309 exports={'buildmodule':True}) |
309 exports={'buildmodule':True}) |
310 ccdemvcproj = SConscript('ccdemos/SConscript', build_dir='build/ccdemos', duplicate=0, exports='lib') |
310 ccdemvcproj = SConscript('ccdemos/SConscript', variant_dir='build/ccdemos', duplicate=0, exports='lib') |
311 demosvcproj = SConscript('demos/SConscript', exports='pymodule') |
311 demosvcproj = SConscript('demos/SConscript', exports='pymodule') |
312 else: |
312 else: |
313 pymodule = SConscript('src/SConscript', build_dir='build/pymodule', duplicate=0, |
313 pymodule = SConscript('src/SConscript', variant_dir='build/pymodule', duplicate=0, |
314 exports={'buildmodule':True}) |
314 exports={'buildmodule':True}) |
315 SConscript('ccdemos/SConscript', build_dir='build/ccdemos', duplicate=0, exports='lib') |
315 SConscript('ccdemos/SConscript', variant_dir='build/ccdemos', duplicate=0, exports='lib') |
316 SConscript('demos/SConscript', exports='pymodule') |
316 SConscript('demos/SConscript', exports='pymodule') |
317 |
317 |
318 SConscript('tests/SConscript', build_dir='build/tests', duplicate=0, exports='lib') |
318 SConscript('tests/SConscript', variant_dir='build/tests', duplicate=0, exports='lib') |
319 SConscript('models/SConscript') |
319 SConscript('models/SConscript') |
320 |
320 |
321 env.Alias('demos', ['cc-demos', 'python-demos']) |
321 env.Alias('demos', ['cc-demos', 'python-demos']) |
322 env.Alias('libs', ['static-lib', 'python-module']) |
322 env.Alias('libs', ['static-lib', 'python-module']) |
323 env.Alias('docs', Command('docs/html', [], 'doxygen')) |
323 env.Alias('docs', Command('docs/html', [], 'doxygen')) |