#    MynahSA SConstruct file
#    Copyright (C) 2006 Mynah-Software Ltd. All Rights Reserved.
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License, version 2 
#    as published by the Free Software Foundation.
#
#    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.,
#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.


# library source SConstruct file

Import('env')

headers = ['../mynahsa/archive.hpp',
           '../mynahsa/iparchive.hpp',
           '../mynahsa/oarchive.hpp',
           '../mynahsa/sslserver.hpp',
           '../mynahsa/connectionmanager.hpp',
           '../mynahsa/iparchiveregister.hpp',
           '../mynahsa/otextstream.hpp',
           '../mynahsa/iarchive.hpp',
           '../mynahsa/itextstream.hpp',
           '../mynahsa/sslinit.hpp',
           '../mynahsa/iobase.hpp',
           '../mynahsa/mkcert.hpp',
           '../mynahsa/sslrpcclient.hpp',
           '../mynahsa/osslstream.hpp',
           '../mynahsa/isslstream.hpp',
           '../mynahsa/sslarchivestream.hpp',
           '../mynahsa/sslconnectionverifier.hpp',
           '../mynahsa/sslconnectioncertverifier.hpp',
           '../mynahsa/ibinarystream.hpp',
           '../mynahsa/obinarystream.hpp',
           '../mynahsa/ostreambase.hpp',
           '../mynahsa/istreambase.hpp',
           '../mynahsa/itcpstream.hpp',
           '../mynahsa/otcpstream.hpp',
           '../mynahsa/tcparchivestream.hpp',
           '../mynahsa/tcprpcclient.hpp',
           '../mynahsa/sainit.hpp',
           '../mynahsa/oblowfishstream.hpp',
           '../mynahsa/iblowfishstream.hpp',
           '../mynahsa/exceptionbase.hpp',
           '../mynahsa/clientexception.hpp',
           '../mynahsa/serverexception.hpp',
           '../mynahsa/thread.hpp']

libsrc = ['archive.cpp',
          'iobase.cpp',
          'itextstream.cpp',
          'mkcert.cpp',
          'otextstream.cpp',
          'requestresponsehandler.cpp',
          'sslinit.cpp',
          'sslrpcclient.cpp',
          'osslstream.cpp',
          'isslstream.cpp',
          'sslarchivestream.cpp',
          'sslconnectionverifier.cpp',
          'sslconnectioncertverifier.cpp',
          'ibinarystream.cpp',
          'obinarystream.cpp',
          'ostreambase.cpp',
          'istreambase.cpp',
          'itcpstream.cpp',
          'otcpstream.cpp',
          'tcparchivestream.cpp',
          'tcprpcclient.cpp',
          'sainit.cpp',
          'oblowfishstream.cpp',
          'iblowfishstream.cpp',
          'sslserver.cpp',
          'sslconnectionmanager.cpp',
          'tcpserver.cpp',
          'tcpconnectionmanager.cpp',
          'exceptionbase.cpp',
          'clientexception.cpp',
          'serverexception.cpp',
          'thread.cpp'
          ]


lib = env.StaticLibrary('mynahsa',
                    source = libsrc)
                
install = env.Install(dir='../lib',source=lib)

Depends(install, lib)
