mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
inserted the python wrappers build, I hope this won't be too unportable
* python/Makefile.am python/libxml.c configure.in Makefile.am: inserted the python wrappers build, I hope this won't be too unportable Daniel
This commit is contained in:
31
python/Makefile.am
Normal file
31
python/Makefile.am
Normal file
@ -0,0 +1,31 @@
|
||||
LIBS=-L../.libs -L..
|
||||
INCLUDES=-I$(PYTHON_INCLUDES) -I$(top_srcdir)/include
|
||||
SHCFLAGS=$(INCLUDES) -Wall -fPIC
|
||||
LINK_FLAGS= $(LIBS) -shared -lxml2
|
||||
if WITH_PYTHON
|
||||
all: _libxml.so
|
||||
|
||||
_libxml.so: libxml.o libxml2-py.o
|
||||
$(CC) $(LINK_FLAGS) libxml2-py.o libxml.o -o _libxml.so
|
||||
else
|
||||
all:
|
||||
endif
|
||||
|
||||
libxml.o: libxml.c libxml2-export.c libxml_wrap.h
|
||||
$(CC) $(SHCFLAGS) -c -o libxml.o $(srcdir)/libxml.c
|
||||
|
||||
libxml2-py.o: libxml2-py.c libxml2-py.h libxml_wrap.h
|
||||
$(CC) $(SHCFLAGS) -c -o libxml2-py.o $(srcdir)/libxml2-py.c
|
||||
|
||||
GENERATE = generator.py
|
||||
API_DESC = $(top_srcdir)/doc/libxml2-api.xml
|
||||
GENERATED= $(srcdir)/libxml2class.py \
|
||||
$(srcdir)/libxml2-export.c \
|
||||
$(srcdir)/libxml2-py.c \
|
||||
$(srcdir)/libxml2-py.h
|
||||
|
||||
$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
|
||||
cd $(srcdir) && $(PYTHON) $(GENERATE)
|
||||
|
||||
clean:
|
||||
rm -f $(GENERATED) *.o _libxml.so
|
@ -1,5 +1,7 @@
|
||||
#include <Python.h>
|
||||
|
||||
#include <libxml/xmlversion.h>
|
||||
#include <libxml/xmlmemory.h>
|
||||
#include <libxml/parser.h>
|
||||
#include <libxml/tree.h>
|
||||
#include "libxml_wrap.h"
|
||||
|
Reference in New Issue
Block a user