| 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 | |
|---|
| 24 | import avango.build |
|---|
| 25 | |
|---|
| 26 | avango_env = avango.build.PythonEnvironment() |
|---|
| 27 | |
|---|
| 28 | Alias('all', Alias('display')) |
|---|
| 29 | Alias('install', Alias('install-display')) |
|---|
| 30 | |
|---|
| 31 | av_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 | """) |
|---|
| 38 | av_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 | """) |
|---|
| 47 | av_display = avango_env.Install(avango.build.get_python_path('avango/display'), av_display_python_files) |
|---|
| 48 | av_display_setups = avango_env.Install(avango.build.get_python_path('avango/display/setups'), av_display_setups_files) |
|---|
| 49 | av_display_daemon = avango_env.Install(avango.build.get_binary_path(), 'python/avango-display-daemon.py') |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | Alias('display', [av_display, av_display_setups]) |
|---|
| 53 | Alias('install-display', [av_display, av_display_setups, av_display_daemon]) |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | |
|---|
| 58 | #avango display multitouch TUIO support |
|---|
| 59 | avango.build.Environment.prepend_include_path(Dir('include').abspath) |
|---|
| 60 | avango.build.Environment.prepend_library_path(Dir('.').abspath) |
|---|
| 61 | display_mt_env = avango.build.Environment() |
|---|
| 62 | avango.build.add_library(display_mt_env, 'avango-core') |
|---|
| 63 | |
|---|
| 64 | # Substitutions |
|---|
| 65 | display_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 | |
|---|
| 76 | display_mt_env.Append(CPPDEFINES='AV_DISPLAY_MT_LIBRARY') |
|---|
| 77 | |
|---|
| 78 | avango_display_mt_pc = display_mt_env.Subst('dist/pkg-config/avango-devices.pc.in') |
|---|
| 79 | Alias('display', avango_display_mt_pc) |
|---|
| 80 | Alias('install-display', display_mt_env.Install(avango.build.get_pkgconfig_path(), avango_display_mt_pc)) |
|---|
| 81 | |
|---|
| 82 | Export('display_mt_env') |
|---|
| 83 | |
|---|
| 84 | SConscript ([ |
|---|
| 85 | 'include/avango/display/SConscript', |
|---|
| 86 | 'include/avango/display/mt/SConscript', |
|---|
| 87 | 'src/avango/display/mt/SConscript', |
|---|
| 88 | 'wrapper/avango/display/mt/SConscript' |
|---|
| 89 | ]) |
|---|