Last change
on this file since 104932 was 104106, checked in by vboxsync, 9 months ago |
libxml2-2.9.14: Applied and adjusted our libxml2 changes to 2.9.14. bugref:10640
|
-
Property svn:eol-style
set to
native
|
File size:
1.3 KB
|
Line | |
---|
1 | # Makefile for libxml2 python library
|
---|
2 |
|
---|
3 | # We use a rule with multiple output files which creates problems with
|
---|
4 | # parallel builds.
|
---|
5 | .NOTPARALLEL:
|
---|
6 |
|
---|
7 | SUBDIRS = . tests
|
---|
8 |
|
---|
9 | EXTRA_DIST = \
|
---|
10 | generator.py \
|
---|
11 | libxml.py \
|
---|
12 | libxml2-python-api.xml \
|
---|
13 | pyproject.toml
|
---|
14 |
|
---|
15 | if WITH_PYTHON
|
---|
16 | AM_CPPFLAGS = \
|
---|
17 | -I$(top_builddir)/include \
|
---|
18 | -I$(top_srcdir)/include \
|
---|
19 | $(PYTHON_CFLAGS)
|
---|
20 |
|
---|
21 | pyexec_LTLIBRARIES = libxml2mod.la
|
---|
22 |
|
---|
23 | libxml2mod_la_SOURCES = libxml.c libxml_wrap.h types.c
|
---|
24 | nodist_libxml2mod_la_SOURCES = libxml2-py.h libxml2-py.c
|
---|
25 | libxml2mod_la_LDFLAGS = $(AM_LDFLAGS) $(PYTHON_LDFLAGS) -module -avoid-version
|
---|
26 | libxml2mod_la_LIBADD = $(top_builddir)/libxml2.la $(PYTHON_LIBS)
|
---|
27 |
|
---|
28 | BUILT_SOURCES = libxml2-export.c libxml2-py.h libxml2-py.c
|
---|
29 |
|
---|
30 | python_PYTHON = drv_libxml2.py
|
---|
31 | nodist_python_PYTHON = libxml2.py
|
---|
32 |
|
---|
33 | API_DESC = $(top_srcdir)/doc/libxml2-api.xml $(srcdir)/libxml2-python-api.xml
|
---|
34 | GENERATED = libxml2class.py libxml2class.txt $(BUILT_SOURCES)
|
---|
35 | CLEANFILES = libxml2.py $(GENERATED)
|
---|
36 |
|
---|
37 | all-local: libxml2.py
|
---|
38 |
|
---|
39 | $(GENERATED): $(srcdir)/generator.py $(API_DESC)
|
---|
40 | $(PYTHON) $(srcdir)/generator.py $(srcdir)
|
---|
41 |
|
---|
42 | # libxml.c #includes libxml2-export.c
|
---|
43 | libxml.$(OBJEXT): libxml2-export.c
|
---|
44 |
|
---|
45 | libxml2.py: $(srcdir)/libxml.py libxml2class.py
|
---|
46 | cat $(srcdir)/libxml.py `test -f libxml2class.py || echo $(srcdir)/`libxml2class.py > $@
|
---|
47 |
|
---|
48 | clean-local:
|
---|
49 | rm -rf __pycache__ *.pyc
|
---|
50 |
|
---|
51 | endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.