mirror of
https://github.com/bspeice/libcvautomation
synced 2025-06-30 21:37:00 -04:00
Add the python build into Automake to make it portable
Remove the default libcvautomation.py
This commit is contained in:
@ -1,16 +1,10 @@
|
||||
EXTRA_DIST = libcvautomation.py
|
||||
pyexec_LTLIBRARIES = _libcvautomation.la
|
||||
_libcvautomation_la_SOURCES = libcvautomation-swig.c
|
||||
_libcvautomation_la_LDFLAGS = -avoid-version -module $(PYTHON_LDFLAGS)
|
||||
_libcvautomation_la_LIBADD = -lcvautomation
|
||||
_libcvautomation_la_CFLAGS = $(PYTHON_CPPFLAGS) -I$(top_srcdir)/include
|
||||
|
||||
install-data-local: setup.py
|
||||
$(Python) setup.py install --prefix=$(DESTDIR)/$(prefix) --exec-prefix=$(DESTDIR)/$(exec_prefix)
|
||||
|
||||
##Unfortunately, we can't really uninstall the python file.
|
||||
##The python dist-utils don't tell us where it got installed
|
||||
##to, so we can't uninstall it.
|
||||
##uninstall-local:
|
||||
|
||||
CLEANFILES = setup.py
|
||||
|
||||
all-local: libcvautomation.py
|
||||
clean-local:
|
||||
rm -rf setup.py
|
||||
python_PYTHON = libcvautomation.py
|
||||
|
||||
libcvautomation-swig.c: libcvautomation.swig
|
||||
$(Swig) -I$(top_srcdir)/include -python -o libcvautomation-swig.c -outdir . libcvautomation.swig
|
||||
|
@ -1,2 +0,0 @@
|
||||
class libcvautomation:
|
||||
pass
|
12
python/libcvautomation.swig
Normal file
12
python/libcvautomation.swig
Normal file
@ -0,0 +1,12 @@
|
||||
%module libcvautomation
|
||||
%{
|
||||
#include <libcvautomation/libcvautomation.h>
|
||||
#include <libcvautomation/libcvautomation-opencv.h>
|
||||
#include <libcvautomation/libcvautomation-xlib.h>
|
||||
#include <libcvautomation/libcvautomation-xtest.h>
|
||||
%}
|
||||
|
||||
%include <libcvautomation/libcvautomation.h>
|
||||
%include <libcvautomation/libcvautomation-opencv.h>
|
||||
%include <libcvautomation/libcvautomation-xlib.h>
|
||||
%include <libcvautomation/libcvautomation-xtest.h>
|
Reference in New Issue
Block a user