#!/usr/bin/env python
import os

Import('envlibrary')
enviscelib = envlibrary.Clone()
package = enviscelib['PACKAGE'] # 'library'
project = 'isceLib'
enviscelib['PROJECT'] = project
enviscelib['ISCELIB_OBJ_LIST'] = []
Export('enviscelib')

SConscript('include/SConscript') # Add .h includes to install/library/isceLib/include
SConscript('src/SConscript') # Build shared objects to install/library/isceLib/src and static library to build/libs
if enviscelib['CYTHON3']:
    SConscript('pyx/SConscript') # Cythonize isceLib.pyx and build Python module ot install/library/isceLib

install_main = os.path.join(enviscelib['PRJ_SCONS_INSTALL'], package, project)
enviscelib.Install(install_main,'__init__.py') # Add __init__ that will allow for remote importing from isceLib Python module
