00001
00002
00003
00004
00005
00006 __copyright__ = """
00007 Copyright (C) 2008 Gilles Hennenfent, Sean Ross-Ross
00008 """
00009
00010 __license__ = """
00011 This program is free software: you can redistribute it and/or modify
00012 it under the terms of the GNU General Public License as published by
00013 the Free Software Foundation, either version 3 of the License, or
00014 (at your option) any later version.
00015
00016 This program is distributed in the hope that it will be useful,
00017 but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00019 GNU General Public License for more details.
00020
00021 You should have received a copy of the GNU General Public License
00022 along with this program. If not, see <http://www.gnu.org/licenses/>.
00023 """
00024
00025 import SCons.Defaults as _scons_defaults
00026 from SCons.Script import AddOption,Tool as _scons_tool
00027 from os.path import dirname as _dname,join as _join
00028
00029
00030 this_path = _dname(__file__)
00031 repro_toolpath = _join( this_path, 'tools')
00032
00033
00034
00035
00036
00037
00038 def add_to_default_toolpath( toolpath ):
00039 if 'toolpath' in _scons_defaults.ConstructionEnvironment:
00040 _scons_defaults.ConstructionEnvironment[ 'toolpath' ].append(toolpath)
00041 else:
00042 _scons_defaults.ConstructionEnvironment[ 'toolpath' ] = [ toolpath ]
00043
00044
00045
00046
00047
00048
00049 def add_to_default_tools( atool ):
00050 if 'TOOLS' in _scons_defaults.ConstructionEnvironment:
00051 _scons_defaults.ConstructionEnvironment[ 'TOOLS' ].append( atool )
00052 else:
00053 _scons_defaults.ConstructionEnvironment[ 'TOOLS' ] = [ 'default', atool ]
00054
00055
00056 add_to_default_toolpath( repro_toolpath )
00057 add_to_default_tools( 'rush' )
00058 add_to_default_tools( 'view' )
00059 add_to_default_tools( 'paper' )
00060 add_to_default_tools( 'fetch' )
00061 add_to_default_tools( 'matlab' )
00062 add_to_default_tools( 'html' )
00063 add_to_default_tools( 'figures' )
00064
00065
00066 from DefaultEnvCalls import *
00067
00068