spice-gtk/Makefile.am
Daniel P. Berrange a75f4eb21b Adapt build system to allow building with GTK3
The new configure flag '--with-gtk' can be used to choose
which GTK version to build against, defaulting to GTK2.
To enable GTK3 use

   ./configure --with-gtk=3.0

The libspice-client-glib-2.0.la library is unchanged, building
against glib-2.0 at all times.

The GTK3 build will produce a libspice-client-gtk-3.0.la
The include files will also live in $prefix/spice-client-gtk-3.0
and the pkgconfig is called spice-client-gtk-3.0 too.

This allows for full parallel install of GTK2 and GTK3 builds
2011-01-14 21:13:28 +01:00

76 lines
2.3 KiB
Makefile

ACLOCAL_AMFLAGS = -I m4
NULL =
SUBDIRS = common gtk po python_modules doc data
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = spice-client-glib-2.0.pc spice-client-gtk-$(SPICE_GTK_API_VERSION).pc
INTLTOOL_FILES = intltool-extract.in \
intltool-merge.in \
intltool-update.in \
$(NULL)
DISTCLEANFILES = $(pkgconfig_DATA) \
intltool-extract \
intltool-merge \
intltool-update \
gnome-doc-utils.make \
gtk-doc.make \
po/.intltool-merge-cache \
$(NULL)
EXTRA_DIST = spice.proto \
spice1.proto \
spice_codegen.py \
build-aux/git-version-gen \
gtk-doc.make \
.version \
$(INTLTOOL_FILES) \
$(NULL)
MAINTAINERCLEANFILES = \
ABOUT-NLS \
aclocal.m4 \
config.h.in \
m4/*.m4 \
build-aux/compile \
build-aux/config.guess \
build-aux/config.rpath \
build-aux/config.sub \
build-aux/depcomp \
build-aux/install-sh \
build-aux/ltmain.sh \
build-aux/missing \
build-aux/mkinstalldirs \
po/Makefile.in.in \
$(NULL)
# see git-version-gen
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version
BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
DISTCHECK_CONFIGURE_FLAGS = --enable-introspection --enable-werror --enable-gtk-doc
spicy-for-windows.exe:
PATH=$$PATH:/usr/i686-pc-mingw32/sys-root/mingw/bin/:/usr/i686-pc-mingw32/sys-root/mingw/lib \
nsiswrapper --run --name "spicy" --outfile "spicy-for-windows.exe" --with-gtk \
/usr/i686-pc-mingw32/sys-root/mingw/bin/spicy.exe /usr/i686-pc-mingw32/sys-root/mingw/bin/snappy.exe \
/usr/i686-pc-mingw32/sys-root/mingw/bin/libpangoft2-1.0-0.dll \
/usr/i686-pc-mingw32/sys-root/mingw/bin/libgdk_pixbuf-2.0-0.dll \
/usr/i686-pc-mingw32/sys-root/mingw/bin/libgdk-win32-2.0-0.dll \
/usr/i686-pc-mingw32/sys-root/mingw/bin/gst-*.exe \
/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstaudio*.dll \
/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstdirectsoundsink.dll \
/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstdirectsoundsrc.dll \
/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstapp.dll \
/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstautodetect.dll \
/usr/i686-pc-mingw32/sys-root/mingw/lib/gstreamer-0.10/libgstcoreelements.dll
-include $(top_srcdir)/git.mk