# Path: pylon/version.py
# def version_python_pylon_string():
#     return '%d.%d.%d-%d'%(_MAJOR_VERSION,_MINOR_VERSION,
#                           _MAINTENANCE_VERSION,_BUILD_VERSION)


from pylon.version import version_python_pylon_string
from Cython.Distutils import build_ext
from distutils.core import setup
from distutils.extension import Extension
## along with python-pylon.  If not, see <http://www.gnu.org/licenses/>.
##
###############################################################################

#import pyximport; pyximport.install()



pylonExtension = Extension('pylon',['pylon/__init__.pyx',
                                    'pylon/Logger.cpp',
                                    'pylon/Factory.cpp',
                                    'pylon/DevInfo.cpp',
                                    'pylon/Camera.cpp',
                                    'pylon/TransportLayer.cpp',
                                    'pylon/GenApiWrap/INode.cpp',
                                    'pylon/GenApiWrap/ICategory.cpp',
                                    'pylon/GenApiWrap/IEnumeration.cpp',
                                    'pylon/PyCallback.cpp'],
                           language="c++",
                           extra_compile_args=[#"-static",
                                               #"-fPIC",
                                               #"-std=c++11",
                                              ]
                           )

#FIXME: check how can be know if c++11 is available to be used

setup(name = 'pylon',
      license = "LGPLv3+",
      description = "Cython module to provide access to Pylon's SDK.",

# Path: pylon/version.py
# def version_python_pylon_string():
#     return '%d.%d.%d-%d'%(_MAJOR_VERSION,_MINOR_VERSION,
#                           _MAINTENANCE_VERSION,_BUILD_VERSION)


# Path: setup.py
from pylon.version import version_python_pylon_string
from Cython.Distutils import build_ext
from distutils.core import setup
from distutils.extension import Extension

## along with python-pylon.  If not, see <http://www.gnu.org/licenses/>.
##
###############################################################################

#import pyximport; pyximport.install()



pylonExtension = Extension('pylon',['pylon/__init__.pyx',
                                    'pylon/Logger.cpp',
                                    'pylon/Factory.cpp',
                                    'pylon/DevInfo.cpp',
                                    'pylon/Camera.cpp',
                                    'pylon/TransportLayer.cpp',
                                    'pylon/GenApiWrap/INode.cpp',
                                    'pylon/GenApiWrap/ICategory.cpp',
                                    'pylon/GenApiWrap/IEnumeration.cpp',
                                    'pylon/PyCallback.cpp'],
                           language="c++",
                           extra_compile_args=[#"-static",
                                               #"-fPIC",
                                               #"-std=c++11",
                                              ]
                           )

#FIXME: check how can be know if c++11 is available to be used

setup(name = 'pylon',
      license = "LGPLv3+",
      description = "Cython module to provide access to Pylon's SDK.",

      version = version_python_pylon_string(),