# Builds the python swig interface # Copyright 2003 Walter Landry # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA Import('arx_env','python_lib','python_py','python_include_dir', 'libboost_shared','libloki_shared','libarx_shared', 'libboost_static','libloki_static','libarx_static') swig_python_env=arx_env.Copy() swig_python_env.Append(SWIGFLAGS=Split('-c++ -python -Isrc/arx/include -Isrc/boost')) swig_python_env.Append(CPPPATH=[python_include_dir]) swig_library=swig_python_env.SharedLibrary('_arx',['arx.i', 'static_initializer.cpp'], LIBS=['boost','loki','arx'], LIBPATH=['../../boost','..', '../../loki'], SHLIBPREFIX='') swig_python_env.Depends(swig_library,[libboost_shared,libloki_shared, libarx_shared]) swig_python=swig_python_env.SideEffect('arx.py',swig_library) python_lib+=[swig_library] python_py+=[swig_python]