source: branches/vrgeo-2008-june-meeting/SConstruct @ 13

Revision 13, 4.5 KB checked in by gwesche, 4 years ago (diff)

avango-tools for windows. Added checkEvents for Win32 graphics windows

  • Property svn:eol-style set to native
Line 
1# -*- Mode:Python -*-
2
3##########################################################################
4#                                                                        #
5# This file is part of Avango.                                           #
6#                                                                        #
7# Copyright 1997 - 2008 Fraunhofer-Gesellschaft zur Foerderung der       #
8# angewandten Forschung (FhG), Munich, Germany.                          #
9#                                                                        #
10# Avango is free software: you can redistribute it and/or modify         #
11# it under the terms of the GNU Lesser General Public License as         #
12# published by the Free Software Foundation, version 3.                  #
13#                                                                        #
14# Avango is distributed in the hope that it will be useful,              #
15# but WITHOUT ANY WARRANTY; without even the implied warranty of         #
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the           #
17# GNU General Public License for more details.                           #
18#                                                                        #
19# You should have received a copy of the GNU Lesser General Public       #
20# License along with Avango. If not, see <http://www.gnu.org/licenses/>. #
21#                                                                        #
22# Avango is a trademark owned by FhG.                                    #
23#                                                                        #
24##########################################################################
25
26import sys
27import os, os.path
28sys.path.insert(0, os.path.join(os.getcwd(), 'avango-build', 'src'))
29
30import avango.build
31import avango.build.oshelper
32
33opts = avango.build.options
34opts.AddOptions(
35    BoolOption('DISTRIBUTION_SUPPORT',
36               'Switch to enable distribution support (requires ensemble module)',
37               False),
38    BoolOption('OPENSCENEGRAPH_SUPPORT',
39               'Enable building OpenSceneGraph module',
40               True),
41    BoolOption('OPENSCENEGRAPH_DEBUG',
42               'Use debug version of OpenSceneGraph library',
43               False),
44    BoolOption('OPENAL_SUPPORT',
45               'Enable building OpenAL sound module',
46               False)
47    )
48
49avango.build.setup()
50
51avango.build.set_config('avango-unittest', avango.build.PlainConfig(libraries = ['avangoUnitTest++']))
52avango.build.set_config('avango-core', avango.build.PlainConfig(libraries = ['avango']))
53
54# avango.build.set_config('avango-osg', avango.build.PlainConfig(libraries = ['avangoOsg', 'avangoOsgParticle']))
55avango.build.set_config('avango-osg', avango.build.PlainConfig(libraries = ['avangoOsg']))
56avango.build.set_config('avango-osgparticle', avango.build.PlainConfig(libraries = ['avangoOsgParticle']))
57
58avango.build.set_config('avango-osgviewer', avango.build.PlainConfig(libraries = ['avangoOsgViewer']))
59avango.build.set_config('avango-daemon', avango.build.PlainConfig(libraries = ['avangoDaemon']))
60
61env = avango.build.Environment()
62
63if env['DISTRIBUTION_SUPPORT']:
64    avango.build.Environment.add_search_path('avango-ensemble')
65if env['OPENSCENEGRAPH_DEBUG']:
66    avango.build.set_config_flag("OPENSCENEGRAPH_DEBUG", True)
67
68used_libs = Split("""
69    dl
70    uuid
71    boost_thread
72    boost_signals
73    boost_python
74    osg
75    osgDB
76    osgViewer
77    osgParticle
78    osgText
79    """)
80for lib in used_libs:
81    avango.build.Environment.add_search_path(lib)
82
83
84avango.build.SConscript('avango-unittest/SConscript')
85avango.build.TestEnvironment.add_library('avango-unittest')
86
87avango.build.SConscript('avango-build/SConscript')
88avango.build.SConscript('avango-core/SConscript')
89avango.build.SConscript('avango-python/SConscript')
90if env['OPENSCENEGRAPH_SUPPORT']:
91    avango.build.SConscript('avango-osg/SConscript')
92    avango.build.SConscript('avango-moving/SConscript')
93    avango.build.SConscript('avango-menu/SConscript')
94    if not avango.build.oshelper.os_is_windows(): #FIXME get module running under Windows
95        avango.build.SConscript('avango-daemon/SConscript')
96if not avango.build.oshelper.os_is_windows(): #FIXME get module running under Windows
97    avango.build.SConscript('avango-sound/SConscript')
98if env['OPENAL_SUPPORT']:
99    avango.build.SConscript('avango-openal/SConscript')
100avango.build.SConscript('avango-tools/SConscript')   
101avango.build.SConscript('avango-inspector/SConscript')
102avango.build.SConscript('avango-doc/SConscript')
Note: See TracBrowser for help on using the repository browser.