summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-08-19 15:24:34 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-08-19 15:24:34 (GMT)
commit59f59f2fde4702b7a68d210725e577c6ec838c51 (patch)
tree94bf1e0a68153821e342c7d2ce53c54a509f63f2 /src
parent79ff98f4908d265c4633910bf6c09204f4265d52 (diff)
downloadmxe-59f59f2fde4702b7a68d210725e577c6ec838c51.zip
mxe-59f59f2fde4702b7a68d210725e577c6ec838c51.tar.gz
mxe-59f59f2fde4702b7a68d210725e577c6ec838c51.tar.bz2
glib: Clarify the glib-* tools building process
Diffstat (limited to 'src')
-rw-r--r--src/glib.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glib.mk b/src/glib.mk
index 0e178b9..bc9bedd 100644
--- a/src/glib.mk
+++ b/src/glib.mk
@@ -64,12 +64,19 @@ endef
define $(PKG)_BUILD
cd '$(1)' && NOCONFIGURE=true ./autogen.sh
rm -f '$(PREFIX)/$(TARGET)/bin/glib-*'
+
+ # Detecting if these GLib tools are already available on host machine,
+ # either because of a host package installation or from an earlier MXE
+ # installation of GLib.
+ # If it is installed, we symlink it into the MXE bin/.
+ # If not, we build it.
$(if $(findstring y,\
$(shell [ -x "`which glib-genmarshal`" ] && \
[ -x "`which glib-compile-schemas`" ] && \
[ -x "`which glib-compile-resources`" ] && echo y)), \
$($(PKG)_SYMLINK), \
$($(PKG)_NATIVE_BUILD))
+
# cross build
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \