source: branches/vrgeo-2009-june-meeting/SConstruct @ 213

Revision 213, 5.4 KB checked in by rkuck, 3 years ago (diff)

Created avangoScript library

Some need to link directly to some symbols, so some code was moved into this library. Use 'avano-python' with avango.build to use this library.

  • 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    BoolOption('DISPLAY_SUPPORT',
48               'Enable building display setup module (EXPERIMENTAL)',
49               False),
50    BoolOption('CONNECT_SUPPORT',
51               'Enable building module to connect mobile devices to avango',
52               False),
53    BoolOption('CONNECT_CSHARP_SUPPORT',
54               'Enable C# support for the connect module',
55               False),
56    BoolOption('VRPN_SUPPORT',
57               'Enable VRPN support for the AvangoDaemon module',
58               False),
59    )
60
61avango.build.setup()
62
63avango.build.set_config('avango-unittest', avango.build.PlainConfig(libraries = ['avangoUnitTest++']))
64avango.build.set_config('avango-core', avango.build.PlainConfig(libraries = ['avango'], dependencies = ["boost_signals", "boost_thread"]))
65
66avango.build.set_config('avango-python', avango.build.PlainConfig(libraries = ['avangoScript']))
67
68# avango.build.set_config('avango-osg', avango.build.PlainConfig(libraries = ['avangoOsg', 'avangoOsgParticle']))
69avango.build.set_config('avango-osg', avango.build.PlainConfig(libraries = ['avangoOsg']))
70avango.build.set_config('avango-osgparticle', avango.build.PlainConfig(libraries = ['avangoOsgParticle']))
71
72avango.build.set_config('avango-osgviewer', avango.build.PlainConfig(libraries = ['avangoOsgViewer']))
73avango.build.set_config('avango-daemon', avango.build.PlainConfig(libraries = ['avangoDaemon']))
74
75env = avango.build.Environment()
76
77if env['DISTRIBUTION_SUPPORT']:
78    avango.build.Environment.add_search_path('avango-ensemble')
79if env['OPENSCENEGRAPH_DEBUG']:
80    avango.build.set_config_flag("OPENSCENEGRAPH_DEBUG", True)
81
82used_libs = Split("""
83    dl
84    boost_thread
85    boost_signals
86    boost_python
87    osg
88    osgDB
89    osgViewer
90    osgParticle
91    osgText
92    """)
93for lib in used_libs:
94    avango.build.Environment.add_search_path(lib)
95
96
97avango.build.SConscript('avango-unittest/SConscript')
98avango.build.TestEnvironment.add_library('avango-unittest')
99
100avango.build.SConscript('avango-build/SConscript')
101avango.build.SConscript('avango-core/SConscript')
102avango.build.SConscript('avango-python/SConscript')
103if env['OPENSCENEGRAPH_SUPPORT']:
104    avango.build.SConscript('avango-osg/SConscript')
105    avango.build.SConscript('avango-moving/SConscript')
106    avango.build.SConscript('avango-menu/SConscript')
107    if not avango.build.oshelper.os_is_windows() and \
108         not avango.build.oshelper.os_is_mac(): #FIXME get module running under Windows/MAC
109        avango.build.SConscript('avango-daemon/SConscript')
110       
111if not avango.build.oshelper.os_is_windows() and \
112         not avango.build.oshelper.os_is_mac(): #FIXME get module running under Windows/MAC
113    avango.build.SConscript('avango-sound/SConscript')
114if env['OPENAL_SUPPORT']:
115    avango.build.SConscript('avango-openal/SConscript')
116avango.build.SConscript('avango-tools/SConscript')   
117if env['DISPLAY_SUPPORT']:
118    avango.build.SConscript('avango-display/SConscript')
119if env['CONNECT_SUPPORT']:
120    avango.build.SConscript('avango-connect/SConscript')
121avango.build.SConscript('avango-inspector/SConscript')
122avango.build.SConscript('avango-doc/SConscript')
123avango.build.SConscript('examples/SConscript')
Note: See TracBrowser for help on using the repository browser.