source: trunk/avango-display/SConscript @ 512

Revision 512, 3.8 KB checked in by ddangelo, 21 months ago (diff)

Added 3 default parameters to the Monitor constructor.
1)A bool indicating if a window should be generated by default. This may not be useful in subclass. Default is set to: True
2)The initial window transformation. Is only used if a default window is created. Default is: (0, 1.7, -0.6)
3)The initial user transformation. Is always used. Default is: (0, 1.7, 0)

Line 
1# -*- Mode:Python -*-
2
3##########################################################################
4#                                                                        #
5# This file is part of AVANGO.                                           #
6#                                                                        #
7# Copyright 1997 - 2010 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##########################################################################
23
24import avango.build
25
26avango_env = avango.build.PythonEnvironment()
27
28Alias('all', Alias('display'))
29Alias('install', Alias('install-display'))
30
31av_display_python_files = Split("""
32    python/avango/display/__init__.py
33    python/avango/display/_device.py
34    python/avango/display/_display.py
35    python/avango/display/_view.py
36    python/avango/display/_screen_descriptor.py
37    """)
38av_display_setups_files = Split("""
39    python/avango/display/setups/__init__.py
40    python/avango/display/setups/AutoStereoDisplay.py
41    python/avango/display/setups/FakeTwoView.py
42    python/avango/display/setups/iCone.py
43    python/avango/display/setups/Monitor.py
44    python/avango/display/setups/TwoView.py
45    python/avango/display/setups/Wall.py
46    """)
47av_display = avango_env.Install(avango.build.get_python_path('avango/display'), av_display_python_files)
48av_display_setups = avango_env.Install(avango.build.get_python_path('avango/display/setups'), av_display_setups_files)
49av_display_daemon = avango_env.Install(avango.build.get_binary_path(), 'python/avango-display-daemon.py')
50
51
52Alias('display', [av_display, av_display_setups])
53Alias('install-display', [av_display, av_display_setups, av_display_daemon])
54
55
56
57
58#avango display multitouch TUIO support
59avango.build.Environment.prepend_include_path(Dir('include').abspath)
60avango.build.Environment.prepend_library_path(Dir('.').abspath)
61display_mt_env = avango.build.Environment()
62avango.build.add_library(display_mt_env, 'avango-core')
63
64# Substitutions
65display_mt_env['SUBST'] = {
66    'PREFIX': avango.build.get_prefix().abspath,
67    'AVANGO_DISPLAY_MT_DEBUG': int(display_mt_env['DEBUG']),
68    'PKG_CONFIG_REQUIRES': 'avango-core',
69    'AVANGO_DISPLAY_MT_VERSION': '0.1.0',
70    'AVANGO_DISPLAY_MT_VERSION_MAJOR': '0',
71    'AVANGO_DISPLAY_MT_VERSION_MINOR': '1',
72    'AVANGO_DISPLAY_MT_VERSION_MAINT': '0',
73    }
74
75
76display_mt_env.Append(CPPDEFINES='AV_DISPLAY_MT_LIBRARY')
77
78avango_display_mt_pc = display_mt_env.Subst('dist/pkg-config/avango-devices.pc.in')
79Alias('display', avango_display_mt_pc)
80Alias('install-display', display_mt_env.Install(avango.build.get_pkgconfig_path(), avango_display_mt_pc))
81
82Export('display_mt_env')
83
84SConscript ([
85    'include/avango/display/SConscript',
86    'include/avango/display/mt/SConscript',
87    'src/avango/display/mt/SConscript',
88    'wrapper/avango/display/mt/SConscript'
89])
Note: See TracBrowser for help on using the repository browser.