Support building with embedded glib

This commit is contained in:
Colin Walters committed 2012-06-14 13:45:59 -04:00
1 parent f3c15a9ba7
commit 78b0d99238
11 files changed
+115 -16

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
# Import GLib into local tree
#
# Copyright (C) 2012 Colin Walters <walters@verbum.org>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
build-glib/gio/libgio-2.0.la:
mkdir -p build-glib
(srcdir=$$(cd $(srcdir) && pwd); \
cd build-glib; \
$${srcdir}/glib/autogen.sh --prefix=/EMBEDGLIB --disable-introspection --disable-man --disable-gtk-doc && \
$(MAKE))
install-glib/EMBEDGLIB/include/glib-2.0/glib.h: build-glib/gio/libgio-2.0.la
(top_srcdir=$$(cd $(top_srcdir) && pwd); \
builddir=$$(pwd); \
cd build-glib && \
rm -rf install-glib && \
$(MAKE) install DESTDIR=$${builddir}/install-glib)
all-local: install-glib/EMBEDGLIB/include/glib-2.0/glib.h
install-exec-local:
echo `pwd`
$(MKDIR_P) $(DESTDIR)/$(pkglibdir)
install install-glib/EMBEDGLIB/lib/*.so.* $(DESTDIR)/$(pkglibdir)
+2
View File
@@ -0,0 +1,2 @@
embedded-glib-download:
test -d glib || git clone --depth=1 git://git.gnome.org/glib -b glib-2-32 glib
+19
View File
@@ -0,0 +1,19 @@
To support building on older systems, this infrastructure allows
bundling libraries. At the moment, this is just GLib.
The intent of this system is that a "ostree-embeddeps.tar.gz" is
created, which can be used as input to an RPM or Debian package, which
can then be installed on older operating systems.
To create one, use:
$ cd embedded-dependencies
$ make -f Makefile.bootstrap embedded-glib-download
$ cd ..
$ make release-tarball-embedded
To build it:
$ ./configure --enable-embedded-glib ...
as usual.