diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-08-19 15:24:34 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-08-19 15:24:34 (GMT) |
commit | 59f59f2fde4702b7a68d210725e577c6ec838c51 (patch) | |
tree | 94bf1e0a68153821e342c7d2ce53c54a509f63f2 /src/glib.mk | |
parent | 79ff98f4908d265c4633910bf6c09204f4265d52 (diff) | |
download | mxe-59f59f2fde4702b7a68d210725e577c6ec838c51.zip mxe-59f59f2fde4702b7a68d210725e577c6ec838c51.tar.gz mxe-59f59f2fde4702b7a68d210725e577c6ec838c51.tar.bz2 |
glib: Clarify the glib-* tools building process
Diffstat (limited to 'src/glib.mk')
-rw-r--r-- | src/glib.mk | 7 |
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) \ |