mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-03 08:21:58 +03:00
Thu Nov 29 17:40:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
* configure.in: Added CYGWIN_EXTRA_LDFLAGS, CYGWIN_EXTRA_LIBADD, CYGWIN_EXTRA_PYTHON_LIBADD, CYGWIN automake conditional. * src/Makefile.am: Extra flags required to build DLL of libvirt for Cygwin. * python/Makefile.am: Extra flags and rule required to build Python module for Cygwin.
This commit is contained in:
15
Makefile.am
15
Makefile.am
@ -23,8 +23,6 @@ EXTRA_DIST = \
|
||||
libvirt-python-api.xml \
|
||||
$(DOCS)
|
||||
|
||||
libvirtmod_la_LDFLAGS = -module -avoid-version -L$(top_builddir)/src/.libs
|
||||
|
||||
if WITH_PYTHON
|
||||
mylibs = $(top_builddir)/src/libvirt.la
|
||||
|
||||
@ -33,10 +31,14 @@ all-local: libvirt.py
|
||||
python_LTLIBRARIES = libvirtmod.la
|
||||
|
||||
libvirtmod_la_SOURCES = libvir.c types.c libvirt-py.c libvirt-py.h
|
||||
libvirtmod_la_LIBADD = $(mylibs)
|
||||
# Python header files contain a redundant decl, hence:
|
||||
libvirtmod_la_CFLAGS = -Wno-redundant-decls
|
||||
|
||||
libvirtmod_la_LDFLAGS = -module -avoid-version -L$(top_builddir)/src/.libs \
|
||||
@CYGWIN_EXTRA_LDFLAGS@
|
||||
libvirtmod_la_LIBADD = $(mylibs) \
|
||||
@CYGWIN_EXTRA_LIBADD@ @CYGWIN_EXTRA_PYTHON_LIBADD@
|
||||
|
||||
GENERATE = generator.py
|
||||
API_DESC = $(top_srcdir)/docs/libvirt-api.xml $(srcdir)/libvirt-python-api.xml
|
||||
GENERATED= libvirt-export.c \
|
||||
@ -61,6 +63,13 @@ install-data-local:
|
||||
@(for doc in $(DOCS) ; \
|
||||
do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done)
|
||||
|
||||
if CYGWIN
|
||||
install-data-hook:
|
||||
cd $(DESTDIR)$(pythondir) && \
|
||||
rm -f libvirtmod.dll && \
|
||||
ln -s cygvirtmod.dll libvirtmod.dll
|
||||
endif
|
||||
|
||||
uninstall-local:
|
||||
rm -f $(DESTDIR)$(pythondir)/libvirt.py
|
||||
|
||||
|
Reference in New Issue
Block a user