source: trunk/avango-core/SConscript @ 558

Revision 558, 2.8 KB checked in by acbernst, 14 months ago (diff)

added variable to configure an alternative backend for distribution support

  • 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 - 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
24import avango.build
25
26avango.build.Environment.prepend_include_path(Dir('include').abspath)
27local_env = avango.build.Environment()
28
29# Substitutions
30local_env['SUBST'] = {
31    'PREFIX': avango.build.get_prefix().abspath,
32    'AVANGO_DEBUG': int(local_env['DEBUG']),
33    'AVANGO_LOG_LEVEL': local_env['LOG_LEVEL'],
34    'AVANGO_DISTRIBUTION_SUPPORT': int(local_env['DISTRIBUTION_SUPPORT']),
35    'AVANGO_ZMQ_DISTRIBUTION_SUPPORT': int(local_env['ZMQ_DISTRIBUTION_SUPPORT']),
36    'PKG_CONFIG_REQUIRES': '',
37    'AVANGO_VERSION': '1.90.0',
38    'AVANGO_VERSION_MAJOR': '1',
39    'AVANGO_VERSION_MINOR': '90',
40    'AVANGO_VERSION_MAINT': '0',
41    }
42if local_env['DISTRIBUTION_SUPPORT']:
43    local_env['SUBST']['PKG_CONFIG_REQUIRES'] = 'avango-ensemble'
44
45avango_osg_pc = local_env.Subst('dist/pkg-config/avango-core.pc.in')
46Alias('core', avango_osg_pc)
47local_env.Alias('install-core', local_env.Install(avango.build.get_pkgconfig_path(), avango_osg_pc))
48
49config_h = local_env.Subst('include/avango/Config.h.in')
50Alias('core', config_h)
51local_env.Alias('install-core', local_env.Install(avango.build.get_include_path('avango'), config_h))
52
53Alias('all', Alias('core'))
54Alias('check', Alias('check-core'))
55Alias('install', Alias('install-core'))
56
57# Subdirs
58
59SConscript ([
60    'include/avango/SConscript',
61    'src/avango/SConscript',
62])
63
64avango.build.make_vcproject(local_env, 'avango-core', 'core')
Note: See TracBrowser for help on using the repository browser.