diff --git a/swig/Makefile b/swig/Makefile index 88e2d712dafcf48cc94ad904dd3ffe50bddca960..bafdb4b66e33caac7d036d683767a3509bda18f8 100644 --- a/swig/Makefile +++ b/swig/Makefile @@ -36,7 +36,8 @@ CBIN=libcclvalue.o \ libccltagaction.o \ libccltagrule.o \ libccltagrulesequence.o \ - libcclmatchrule.o + libcclmatchrule.o \ + libccl.o CBINOUT=_libcclvalue.so \ _libcclstrset.so \ @@ -60,6 +61,7 @@ CBINOUT=_libcclvalue.so \ _libccltagrule.so \ _libccltagrulesequence.so \ _libcclmatchrule.so \ + _libccl.so \ _boost_shared_ptr.so CWRAP=libcclvalue_wrap.cxx \ @@ -85,6 +87,7 @@ CWRAP=libcclvalue_wrap.cxx \ libccltagrule_wrap.cxx \ libccltagrulesequence_wrap.cxx \ libcclmatchrule_wrap.cxx \ + libccl_wrap.cxx \ boost_shared_ptr_wrap.cxx CWRAPBIN=libcclvalue_wrap.o \ @@ -109,6 +112,7 @@ CWRAPBIN=libcclvalue_wrap.o \ libccltagrule_wrap.o \ libccltagrulesequence_wrap.o \ libcclmatchrule_wrap.o \ + libccl_wrap.o \ boost_shared_ptr_wrap.o PYMODULES=libcclvalue.py \ @@ -133,6 +137,7 @@ PYMODULES=libcclvalue.py \ libccltagrule.py \ libccltagrulesequence.py \ libcclmatchrule.py \ + libccl.py \ boost_shared_ptr.py PYCBIN=libcclvalue.pyc \ @@ -157,6 +162,7 @@ PYCBIN=libcclvalue.pyc \ libccltagrule.pyc \ libccltagrulesequence.pyc \ libcclmatchrule.pyc \ + libccl.pyc \ boost_shared_ptr.pyc all:boost_shared_ptr.o $(CBIN) @@ -336,6 +342,14 @@ libcclmatchrule.o: $(CPP) -shared libcclmatchrule_wrap.o \ $(CCLBIN) $(ANTLRLIB) -o _libcclmatchrule.so +# ----------------------------------------------------------------------------- +# Wccl Library +libccl.o: + $(SWIG) $(SWIGOPTS_LANG) libccl.i + $(CPP) -c libccl_wrap.cxx -I$(PYTHONDIR) -I$(WCCLDIR) $(CPPFLAGS) + $(CPP) -shared libccl_wrap.o \ + $(CCLBIN) $(ANTLRLIB) -o _libccl.so + # ----------------------------------------------------------------------------- clean: rm -f $(CBIN) $(CBINOUT) $(CWRAP) $(CWRAPBIN) $(PYMODULES) $(PYCBIN) diff --git a/swig/libccl.i b/swig/libccl.i new file mode 100644 index 0000000000000000000000000000000000000000..bf8fe9af3e29076e53f0abcc39cc514d6b5e9d58 --- /dev/null +++ b/swig/libccl.i @@ -0,0 +1,32 @@ +#ifndef SWIG_LIBWCCL_I +#define SWIG_LIBWCCL_I + +%module libccl +%{ + // +%} + +%include "libcclactionexeccontext.i" +%include "libcclannotationmatch.i" +%include "libcclbool.i" +%include "libcclexpression.i" +%include "libcclfunctionaloperator.i" +%include "libcclmatchdata.i" +%include "libcclmatch.i" +%include "libcclmatchrule.i" +%include "libcclmatchvector.i" +%include "libccloperator.i" +%include "libcclparsedexpression.i" +%include "libcclparser.i" +%include "libcclposition.i" +%include "libcclsentencecontext.i" +%include "libcclstrset.i" +%include "libccltagaction.i" +// %include "libccltagrule.i" +// %include "libccltagrulesequence.i" +%include "libccltokenmatch.i" +%include "libccltset.i" +%include "libcclvalue.i" +%include "libcclvariables.i" + +#endif /* SWIG_LIBWCCL_I */