2008-05-12 11:57:45 +02:00
|
|
|
# Let make substitute the value of PYTHON_INCLUDES rather than auto*
|
2008-10-11 23:29:16 +02:00
|
|
|
# this makes it easier to support multiple python installs
|
2008-05-12 11:57:45 +02:00
|
|
|
INCLUDES = -I${top_srcdir}/include @VIPS_CFLAGS@ @VIPS_INCLUDES@ $(PYTHON_INCLUDES)
|
2007-08-29 18:23:50 +02:00
|
|
|
|
|
|
|
# we install to a directory inside the python area, since we are a module
|
|
|
|
vipsccdir = $(pyexecdir)/vipsCC
|
|
|
|
|
|
|
|
vipscc_PYTHON = VImage.py VDisplay.py VError.py VMask.py __init__.py
|
|
|
|
|
2008-05-12 11:57:45 +02:00
|
|
|
# I tried making a suffix rule for this (and defining SUFFIXES) but I couldn't
|
2007-12-14 13:40:39 +01:00
|
|
|
# get it to work, how annoying
|
|
|
|
# FIXME at some point
|
2008-02-11 19:18:53 +01:00
|
|
|
#
|
|
|
|
# need an expanded VImage.h ... SWIG's preprocessor b0rks on includes inside
|
|
|
|
# class definitions
|
2007-08-29 18:23:50 +02:00
|
|
|
vimagemodule.cxx: VImage.i
|
2008-02-11 19:18:53 +01:00
|
|
|
cpp -DSWIG -E $(top_srcdir)/include/vips/VImage.h > VImage.h
|
2007-08-29 18:23:50 +02:00
|
|
|
swig -python -c++ -interface $(@:.cxx=) -I$(top_srcdir)/include -o $@ $<
|
2008-02-11 19:18:53 +01:00
|
|
|
|
2007-08-29 18:23:50 +02:00
|
|
|
vdisplaymodule.cxx: VDisplay.i
|
|
|
|
swig -python -c++ -interface $(@:.cxx=) -I$(top_srcdir)/include -o $@ $<
|
|
|
|
verrormodule.cxx: VError.i
|
|
|
|
swig -python -c++ -interface $(@:.cxx=) -I$(top_srcdir)/include -o $@ $<
|
|
|
|
vmaskmodule.cxx: VMask.i
|
|
|
|
swig -python -c++ -interface $(@:.cxx=) -I$(top_srcdir)/include -o $@ $<
|
|
|
|
|
|
|
|
vipscc_LTLIBRARIES = vimagemodule.la vdisplaymodule.la verrormodule.la vmaskmodule.la
|
|
|
|
|
2008-05-12 11:57:45 +02:00
|
|
|
# maybe there's a clever way to avoid repeating the link stuff 4 times
|
|
|
|
# vimagemodule uses the C API as well, so it needs libvips too
|
2007-08-29 18:23:50 +02:00
|
|
|
vimagemodule_la_LDFLAGS = -module -avoid-version
|
|
|
|
vimagemodule_la_LIBADD = ../../libsrcCC/libvipsCC.la ../../libsrc/libvips.la $(VIPS_LIBS)
|
|
|
|
nodist_vimagemodule_la_SOURCES = vimagemodule.cxx
|
|
|
|
|
|
|
|
vdisplaymodule_la_LDFLAGS = -module -avoid-version
|
|
|
|
vdisplaymodule_la_LIBADD = ../../libsrcCC/libvipsCC.la $(VIPS_LIBS)
|
|
|
|
nodist_vdisplaymodule_la_SOURCES = vdisplaymodule.cxx
|
|
|
|
|
|
|
|
verrormodule_la_LDFLAGS = -module -avoid-version
|
|
|
|
verrormodule_la_LIBADD = ../../libsrcCC/libvipsCC.la $(VIPS_LIBS)
|
|
|
|
nodist_verrormodule_la_SOURCES = verrormodule.cxx
|
|
|
|
|
|
|
|
vmaskmodule_la_LDFLAGS = -module -avoid-version
|
|
|
|
vmaskmodule_la_LIBADD = ../../libsrcCC/libvipsCC.la $(VIPS_LIBS)
|
|
|
|
nodist_vmaskmodule_la_SOURCES = vmaskmodule.cxx
|
|
|
|
|
2008-10-11 23:29:16 +02:00
|
|
|
CLEANFILES = VImage.h
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
VImage.i VDisplay.i VError.i VMask.i __init__.py \
|
|
|
|
vimagemodule.cxx \
|
2007-08-29 18:23:50 +02:00
|
|
|
verrormodule.cxx vdisplaymodule.cxx vmaskmodule.cxx \
|
|
|
|
VImage.py VDisplay.py VError.py VMask.py
|