#!/usr/bin/env python

"""
setup.py file for SWIG example
"""

from distutils.core import setup, Extension
import numpy.distutils.misc_util
import os

os.environ['CC'] = 'g++'
#os.environ['CXX'] = 'g++'
#os.environ['CPP'] = 'g++'
#os.environ['LDSHARED'] = 'g++'


mmcorepy_module = Extension('_MMCorePy',
                           sources=['MMCorePy_wrap.cxx',
			'../MMDevice/DeviceUtils.cpp',
			'../MMDevice/ImgBuffer.cpp', 
			'../MMDevice/Property.cpp', 
			'../MMCore/CircularBuffer.cpp',
			'../MMCore/Configuration.cpp',
			'../MMCore/CoreCallback.cpp',
			'../MMCore/CoreProperty.cpp',
			'../MMCore/FastLogger.cpp',
			'../MMCore/MMCore.cpp',
			'../MMCore/PluginManager.cpp'],
			language = "c++",
			extra_objects = [],
                            include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs(),
                           )

setup (name = 'MMCorePy',
       version = '0.1',
       author      = "Micro-Manager",
       description = "Micro-Manager Core Python wrapper",
       ext_modules = [mmcorepy_module],
       py_modules = ["MMCorePy"],
       )


#!/usr/bin/env python

"""
This setup.py is intended for use from the Autoconf/Automake build system.
It makes a number of assumtions, including that the SWIG sources have already
been generated.
"""

from distutils.core import setup, Extension
import numpy.distutils.misc_util
import os

os.environ['CC'] = 'g++'
#os.environ['CXX'] = 'g++'
#os.environ['CPP'] = 'g++'
#os.environ['LDSHARED'] = 'g++'


mmcorepy_module = Extension('_MMCorePy',
                            sources=['MMCorePy_wrap.cxx',
                                     '../MMCore/CircularBuffer.cpp',
                                     '../MMCore/Configuration.cpp',
                                     '../MMCore/CoreCallback.cpp',
                                     '../MMCore/CoreProperty.cpp',
                                     '../MMCore/FastLogger.cpp',
                                     '../MMCore/Host.cpp',
                                     '../MMCore/MMCore.cpp',
                                     '../MMCore/PluginManager.cpp',
                                     '../MMDevice/DeviceUtils.cpp',
                                     '../MMDevice/ImgBuffer.cpp',
                                    ],
                            language="c++",
                            include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs(),
                           )

setup(name='MMCorePy',
      version='0.1',
      author="Micro-Manager",
      description="Micro-Manager Core Python wrapper",
      ext_modules=[mmcorepy_module],
      py_modules=["MMCorePy"],
     )

Add MMCore/Host.cpp to Unix build.
MMCorePy: Add MMCore/Host.cpp to Unix build.

Was missing. Note that build is still broken (even though it does not
explicitly fail), at least on Mac OS X, because of missing libraries
(IOKit, CoreFoundation, and boost.system, I think).

Also removed MMDevice/Property.cpp, which is not needed here.

git-svn-id: 03a8048b5ee8463be5048a3801110fb50f378627@11992 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd
