| 1 | # -*- Mode:Python -*- |
|---|
| 2 | |
|---|
| 3 | ########################################################################## |
|---|
| 4 | # # |
|---|
| 5 | # This file is part of AVANGO. # |
|---|
| 6 | # # |
|---|
| 7 | # Copyright 1997 - 2009 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.build.Environment.prepend_include_path(Dir('include').abspath) |
|---|
| 27 | moving_env = avango.build.Environment() |
|---|
| 28 | |
|---|
| 29 | # Substitutions |
|---|
| 30 | moving_env['SUBST'] = { |
|---|
| 31 | 'PREFIX': avango.build.get_prefix().abspath, |
|---|
| 32 | 'AVANGO_MOVING_DEBUG': int(moving_env['DEBUG']), |
|---|
| 33 | 'PKG_CONFIG_REQUIRES': 'avango-core, avango-osg', |
|---|
| 34 | 'AVANGO_MOVING_VERSION': '1.90.0', |
|---|
| 35 | 'AVANGO_MOVING_VERSION_MAJOR': '1', |
|---|
| 36 | 'AVANGO_MOVING_VERSION_MINOR': '90', |
|---|
| 37 | 'AVANGO_MOVING_VERSION_MAINT': '0', |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | avango_moving_pc = moving_env.Subst('dist/pkg-config/avango-moving.pc.in') |
|---|
| 41 | Alias('moving', avango_moving_pc) |
|---|
| 42 | Alias('install-moving', moving_env.Install(avango.build.get_pkgconfig_path(), avango_moving_pc)) |
|---|
| 43 | |
|---|
| 44 | config_h = moving_env.Subst('include/avango/moving/Config.h.in') |
|---|
| 45 | Alias('moving', config_h) |
|---|
| 46 | Alias('install-moving', moving_env.Install(avango.build.get_include_path('avango/moving'), config_h)) |
|---|
| 47 | |
|---|
| 48 | Alias('all', Alias('moving')) |
|---|
| 49 | Alias('install', Alias('install-moving')) |
|---|
| 50 | |
|---|
| 51 | for lib in ['avango-core', 'avango-osg', 'avango-python', 'osg']: |
|---|
| 52 | avango.build.add_library(moving_env, lib) |
|---|
| 53 | |
|---|
| 54 | # Subdirs |
|---|
| 55 | Export('moving_env') |
|---|
| 56 | |
|---|
| 57 | SConscript ([ |
|---|
| 58 | 'include/avango/moving/SConscript', |
|---|
| 59 | 'src/avango/moving/SConscript', |
|---|
| 60 | 'python/SConscript', |
|---|
| 61 | ]) |
|---|