Ignore:
Timestamp:
21/06/08 11:50:37 (4 years ago)
Author:
Freddie Akeroyd
Message:

Add new python bindings to configure. Refs #101.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bindings/swig/Makefile.am

    r984 r1000  
    3030AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/src 
    3131lib_LTLIBRARIES=$(LIBNXTCL) $(LIBNXSCHEME) $(LIBNXGUILE) # $(LIBNXPERL) 
    32 python_LTLIBRARIES=$(LIBNXPYTHON) 
    3332bin_PROGRAMS=$(NXINTER) $(NXGUILE) 
    3433 
    35 # python wrapper 
    36 if HAVE_SWIG 
    37 if HAVE_PYTHON 
    38 NXPYTHONWRAP=nxpython.py 
    39 nodist_python_PYTHON=$(NXPYTHONWRAP) 
    40 LIBNXPYTHON=libnxpython.la 
    41 libnxpython_la_SOURCES=$(COMMON_SRC) 
    42 nodist_libnxpython_la_SOURCES=$(PYTHONWRAP) 
    43 libnxpython_la_CFLAGS=-I$(PYTHONROOT)/include/python$(PYTHON_VERSION) -I$(PYTHONROOT)/include $(CFLAGS) 
    44 libnxpython_la_LDFLAGS=-L$(PYTHONROOT)/lib/python$(PYTHON_VERSION)/config -lpython$(PYTHON_VERSION) $(top_builddir)/src/libNeXus.la @SHARED_LDFLAGS@ $(LDFLAGS) 
    45 PYTHONWRAP=nxpython_wrap.c 
    46 endif 
    47 nxpython_wrap.c: nxinter.i nxdataset.i 
    48         $(SWIG) -I$(srcdir) -o $@ -python -module nxpython -interface libnxpython nxinter.i  
    49 endif 
     34# old python wrapper 
     35#python_LTLIBRARIES=$(LIBNXPYTHON) 
     36#if HAVE_SWIG 
     37#if HAVE_PYTHON 
     38#NXPYTHONWRAP=nxpython.py 
     39#nodist_python_PYTHON=$(NXPYTHONWRAP) 
     40#LIBNXPYTHON=libnxpython.la 
     41#libnxpython_la_SOURCES=$(COMMON_SRC) 
     42#nodist_libnxpython_la_SOURCES=$(PYTHONWRAP) 
     43#libnxpython_la_CFLAGS=-I$(PYTHONROOT)/include/python$(PYTHON_VERSION) -I$(PYTHONROOT)/include $(CFLAGS) 
     44#libnxpython_la_LDFLAGS=-L$(PYTHONROOT)/lib/python$(PYTHON_VERSION)/config -lpython$(PYTHON_VERSION) $(top_builddir)/src/libNeXus.la @SHARED_LDFLAGS@ $(LDFLAGS) 
     45#PYTHONWRAP=nxpython_wrap.c 
     46#endif 
     47#nxpython_wrap.c: nxinter.i nxdataset.i 
     48#       $(SWIG) -I$(srcdir) -o $@ -python -module nxpython -interface libnxpython nxinter.i  
     49#endif 
    5050 
    5151# perl wrapper (not working yet) 
     
    133133swigdoc_DATA    = $(DOC_OUTPUT) 
    134134 
    135 EXAMPLE_FILES = nxdstest.tcl nxexam.tcl nxpython_test.py nxintertest.tcl 
     135EXAMPLE_FILES = nxdstest.tcl nxexam.tcl nxintertest.tcl 
    136136swigexampledir  = $(NXEXAMPLEDIR)/swig 
    137137swigexample_DATA = $(EXAMPLE_FILES) 
Note: See TracChangeset for help on using the changeset viewer.