summaryrefslogtreecommitdiff
path: root/cairo
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-02-21 08:15:39 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-02-22 08:25:56 +0000
commited26c01be15ebc9031ee5ef709d88d524f0fc16d (patch)
tree1629e51b40fe52a3cc85795dd34c5f08b9483458 /cairo
parentc04c95958030bd4872fbbc0b3d4bc996fb041488 (diff)
quiet external module build log unless failure
ExternalProject usually involve a configure and a make step that produce a bunch of output usually irrelevant including a large number of warning and other mess. now that everything is pretty much in tail_build these output get interleaved with useful output from the build of the product and actually drown them in a logorrhea of messy noise. This store the output of external modules in a log file and only print them as a whole if the module failed do build. on a non-verbose build. Change-Id: I3abfcccd6d16821a9e061a71e031b427cc283647 Reviewed-on: https://gerrit.libreoffice.org/2304 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'cairo')
-rw-r--r--cairo/ExternalProject_cairo.mk13
-rw-r--r--cairo/ExternalProject_pixman.mk16
2 files changed, 15 insertions, 14 deletions
diff --git a/cairo/ExternalProject_cairo.mk b/cairo/ExternalProject_cairo.mk
index 54a220b459e1..8d2118989fcf 100644
--- a/cairo/ExternalProject_cairo.mk
+++ b/cairo/ExternalProject_cairo.mk
@@ -20,9 +20,10 @@ $(eval $(call gb_ExternalProject_register_targets,cairo,\
ifeq ($(OS)$(COM),WNTMSC)
$(call gb_ExternalProject_get_state_target,cairo,build) :
- cd $(EXTERNAL_WORKDIR) \
- && $(MAKE) -f Makefile.win32 CFG=release ZLIB3RDLIB=zlib.lib \
- && touch $@
+ $(call gb_ExternalProject_run,build,\
+ $(MAKE) -f Makefile.win32 CFG=release ZLIB3RDLIB=zlib.lib \
+ )
+
else
@@ -30,8 +31,8 @@ else
# from cairo.h in non-overridable way
$(call gb_ExternalProject_get_state_target,cairo,build) :
- cd $(EXTERNAL_WORKDIR) \
- && ./configure \
+ $(call gb_ExternalProject_run,build,\
+ ./configure \
$(if $(debug),STRIP=" ") \
CFLAGS="$(if $(debug),-g) $(SOLARINC)" \
LDFLAGS='-L$(OUTDIR)/lib' \
@@ -51,7 +52,7 @@ $(call gb_ExternalProject_get_state_target,cairo,build) :
$(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
&& cp cairo-version.h src/cairo-version.h \
&& cd src && $(MAKE) \
- && touch $@
+ )
endif
diff --git a/cairo/ExternalProject_pixman.mk b/cairo/ExternalProject_pixman.mk
index 4cc3dc9232dc..c8cad9be625e 100644
--- a/cairo/ExternalProject_pixman.mk
+++ b/cairo/ExternalProject_pixman.mk
@@ -18,27 +18,27 @@ $(eval $(call gb_ExternalProject_register_targets,pixman,\
ifeq ($(OS)$(COM),WNTMSC)
$(call gb_ExternalProject_get_state_target,pixman,build) :
- cd $(EXTERNAL_WORKDIR)/pixman \
- && $(MAKE) -f Makefile.win32 MMX=on SSE2=on CFG=release \
- && touch $@
+ $(call gb_ExternalProject_run,build,\
+ $(MAKE) -f Makefile.win32 MMX=on SSE2=on CFG=release \
+ ,pixman)
else
# ANDROID:
-# The pixman-cpu.c code wants to read /proc/<pid>/auxv, but
+# The pixman-cpu.c code wants to read /proc/<pid>/auxv, but
# the Android headers don't define Elf32_auxv_t.
#
# Maybe we should instead just patch the arm_has_* booleans in
# pixman-cpu.c to be hardcoded as TRUE and patch out the run-time
# check?
$(call gb_ExternalProject_get_state_target,pixman,build) :
- cd $(EXTERNAL_WORKDIR) \
- && ./configure \
+ $(call gb_ExternalProject_run,build,\
+ ./configure \
$(if $(filter MACOSX IOS,$(OS)),--disable-shared,--disable-static) \
$(if $(filter ANDROID,$(OS)),--disable-arm-simd --disable-arm-neon --disable-arm-iwmmxt) \
$(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
- && $(MAKE) \
- && touch $@
+ && $(MAKE) \
+ )
endif