[Libreoffice-commits] core.git: 4 commits - config_host.mk.in configure.ac libcdr/ExternalProject_libcdr.mk libmspub/ExternalProject_libmspub.mk RepositoryExternal.mk solenv/gbuild

Michael Stahl mstahl at redhat.com
Mon Apr 1 04:04:44 PDT 2013


 RepositoryExternal.mk                |   88 +++++++++++++++++------------------
 config_host.mk.in                    |    1 
 configure.ac                         |    3 -
 libcdr/ExternalProject_libcdr.mk     |    4 -
 libmspub/ExternalProject_libmspub.mk |    5 +
 solenv/gbuild/ExternalPackage.mk     |   29 +++++++++++
 solenv/gbuild/InstallModuleTarget.mk |    8 ++-
 7 files changed, 86 insertions(+), 52 deletions(-)

New commits:
commit 829851c290047a08e419add91bca00234c3b9ef0
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Apr 1 12:54:07 2013 +0200

    libcdr, libmspub: revert more ISYSTEM
    
    Change-Id: I6acc0d6424cb3ed0ca2fcba12bb7c63dee13cb0d

diff --git a/libcdr/ExternalProject_libcdr.mk b/libcdr/ExternalProject_libcdr.mk
index 1ca3d04..e3470f4 100644
--- a/libcdr/ExternalProject_libcdr.mk
+++ b/libcdr/ExternalProject_libcdr.mk
@@ -30,8 +30,8 @@ $(call gb_ExternalProject_get_state_target,libcdr,build) :
 		export PKG_CONFIG="" \
 		&& export ICU_LIBS=" " \
 		&& export ICU_CFLAGS="$(if $(filter NO,$(SYSTEM_ICU)),\
-		$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,icu)/source/i18n \
-		$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,icu)/source/common, )" \
+			-I$(call gb_UnpackedTarball_get_dir,icu)/source/i18n \
+			-I$(call gb_UnpackedTarball_get_dir,icu)/source/common, )" \
 		&& ./configure \
 			--with-pic \
 			--enable-static \
diff --git a/libmspub/ExternalProject_libmspub.mk b/libmspub/ExternalProject_libmspub.mk
index b9f4df1..5534c76 100644
--- a/libmspub/ExternalProject_libmspub.mk
+++ b/libmspub/ExternalProject_libmspub.mk
@@ -28,8 +28,9 @@ $(call gb_ExternalProject_get_state_target,libmspub,build) :
 	$(call gb_ExternalProject_run,build,\
 		export PKG_CONFIG="" \
 		&& export ICU_LIBS=" " \
-		&& export ICU_CFLAGS="$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,icu)/source/i18n \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,icu)/source/common" \
+		&& export ICU_CFLAGS="$(if $(filter NO,$(SYSTEM_ICU)),\
+			-I$(call gb_UnpackedTarball_get_dir,icu)/source/i18n \
+			-I$(call gb_UnpackedTarball_get_dir,icu)/source/common, )" \
 		&& export LIBMSPUB_CFLAGS="$(WPG_CFLAGS) $(WPD_CFLAGS)" \
 		&& export LIBMSPUB_LIBS="$(WPG_LIBS) $(WPD_LIBS)" \
 		&& ./configure \
commit 70fcfeedca045a5027999735269e07f9cd2f96f7
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Apr 1 12:47:16 2013 +0200

    Revert "use -isystem instead of -I for 3rd party headers"
    
    This reverts commit 151abb8b2b9d3a22229b98cec12e29484d12109b.
    
    Unfortunately has the side effect that it will prevent GCC from
    generating makefile dependencies for headers from bundled external
    libraries, which breaks incremental builds horribly.
    (Retain the uses in configure for real system headers).
    
    Conflicts:
    	RepositoryExternal.mk
    	configure.ac
    
    Change-Id: I149db1d402fa18bdc470f90dee846cfb5158237e

diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 025fa4e..64c2b4da 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -99,7 +99,7 @@ else #!SYSTEM_NPAPI_HEADERS
 define gb_LinkTarget__use_npapi_headers
 $(call gb_LinkTarget_use_package,$(1),npapi)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(OUTDIR)/inc/external/npsdk \
+	-I$(OUTDIR)/inc/external/npsdk \
 	$$(INCLUDE) \
 )
 
@@ -134,7 +134,7 @@ else
 define gb_LinkTarget__use_vigra_headers
 $(call gb_LinkTarget_use_unpacked,$(1),vigra)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,vigra/include) \
+	-I$(call gb_UnpackedTarball_get_dir,vigra/include) \
 	$$(INCLUDE) \
 )
 
@@ -151,7 +151,7 @@ else
 define gb_LinkTarget__use_mdds_headers
 $(call gb_LinkTarget_use_unpacked,$(1),mdds)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,mdds/include) \
+	-I$(call gb_UnpackedTarball_get_dir,mdds/include) \
 	$$(INCLUDE) \
 )
 
@@ -203,7 +203,7 @@ $(call gb_LinkTarget_use_libraries,$(1),\
     cppunit \
 )
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,cppunit/include)\
+	-I$(call gb_UnpackedTarball_get_dir,cppunit/include)\
 	$$(INCLUDE) \
 )
 
@@ -274,8 +274,8 @@ $(call gb_LinkTarget_add_defs,$(1),\
 )
 
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,mysqlcppconn) \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,mysqlcppconn)/cppconn \
+	-I$(call gb_UnpackedTarball_get_dir,mysqlcppconn) \
+	-I$(call gb_UnpackedTarball_get_dir,mysqlcppconn)/cppconn \
 	$$(INCLUDE) \
 )
 
@@ -315,7 +315,7 @@ $(call gb_LinkTarget_use_packages,$(1),\
 )
 
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(OUTDIR)/inc/external/zlib \
+	-I$(OUTDIR)/inc/external/zlib \
 	$$(INCLUDE) \
 )
 
@@ -363,7 +363,7 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
 define gb_LinkTarget__use_jpeg
 $(call gb_LinkTarget_set_include,$(1),\
 	$$(INCLUDE) \
-	$(ISYSTEM)$(OUTDIR)/inc/external/jpeg \
+	-I$(OUTDIR)/inc/external/jpeg \
 )
 
 $(call gb_LinkTarget_use_static_libraries,$(1),\
@@ -430,7 +430,7 @@ define gb_LinkTarget__use_expat
 $(if $(2),,$(error gb_LinkTarget__use_expat needs additional parameter))
 
 $(call gb_LinkTarget_set_include,$(1),\
-    $(ISYSTEM)$(OUTDIR)/inc/external/expat \
+    -I$(OUTDIR)/inc/external/expat \
     $$(INCLUDE) \
 )
 
@@ -481,7 +481,7 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
 define gb_LinkTarget__use_hyphen
 $(call gb_LinkTarget_use_unpacked,$(1),hyphen)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,hyphen)\
+	-I$(call gb_UnpackedTarball_get_dir,hyphen)\
 	$$(INCLUDE) \
 )
 $(call gb_LinkTarget_use_static_libraries,$(1),\
@@ -515,7 +515,7 @@ $(call gb_LinkTarget_add_defs,$(1),\
 )
 $(call gb_LinkTarget_use_unpacked,$(1),hunspell)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,hunspell/src/hunspell)\
+	-I$(call gb_UnpackedTarball_get_dir,hunspell/src/hunspell)\
 	$$(INCLUDE) \
 )
 $(call gb_LinkTarget_use_static_libraries,$(1),\
@@ -592,7 +592,7 @@ endef
 define gb_LinkTarget__use_boost_headers
 $(call gb_LinkTarget_use_unpacked,$(1),boost)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,boost) \
+	-I$(call gb_UnpackedTarball_get_dir,boost) \
 	$$(INCLUDE) \
 )
 
@@ -673,7 +673,7 @@ $(call gb_LinkTarget_use_static_libraries,$(1),\
 )
 
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,exttextcat/src) \
+	-I$(call gb_UnpackedTarball_get_dir,exttextcat/src) \
 	$$(INCLUDE) \
 )
 
@@ -710,7 +710,7 @@ $(call gb_LinkTarget_use_libraries,$(1),\
 )
 $(call gb_LinkTarget_set_include,$(1),\
 	$$(INCLUDE) \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,xml2)/include \
+	-I$(call gb_UnpackedTarball_get_dir,xml2)/include \
 )
 
 endef
@@ -754,7 +754,7 @@ define gb_LinkTarget__use_libxslt
 $(call gb_LinkTarget_use_package,$(1),xslt)
 $(call gb_LinkTarget_set_include,$(1),\
 	$$(INCLUDE) \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,xslt) \
+	-I$(call gb_UnpackedTarball_get_dir,xslt) \
 )
 $(call gb_LinkTarget_use_libraries,$(1),\
 	xslt \
@@ -766,7 +766,7 @@ define gb_LinkTarget__use_libexslt
 $(call gb_LinkTarget_use_package,$(1),xslt)
 $(call gb_LinkTarget_set_include,$(1),\
 	$$(INCLUDE) \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,xslt) \
+	-I$(call gb_UnpackedTarball_get_dir,xslt) \
 )
 
 $(call gb_LinkTarget_use_libraries,$(1),\
@@ -804,7 +804,7 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
 define gb_LinkTarget__use_liblangtag
 $(call gb_LinkTarget_use_unpacked,$(1),langtag)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,langtag) \
+	-I$(call gb_UnpackedTarball_get_dir,langtag) \
 	$$(INCLUDE) \
 )
 $(call gb_LinkTarget_use_static_libraries,$(1),\
@@ -842,7 +842,7 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO,\
 define gb_LinkTarget__use_neon
 $(call gb_LinkTarget_use_unpacked,$(1),neon)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,neon/src) \
+	-I$(call gb_UnpackedTarball_get_dir,neon/src) \
 	$$(INCLUDE) \
 )
 $(call gb_LinkTarget_use_libraries,$(1),\
@@ -878,7 +878,7 @@ else # !SYSTEM_REDLAND
 
 define gb_LinkTarget__use_redland_headers
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,redland)/librdf \
+	-I$(call gb_UnpackedTarball_get_dir,redland)/librdf \
 	$$(INCLUDE) \
 )
 
@@ -886,7 +886,7 @@ endef
 
 define gb_LinkTarget__use_raptor_headers
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,raptor)/src \
+	-I$(call gb_UnpackedTarball_get_dir,raptor)/src \
 	$$(INCLUDE) \
 )
 
@@ -894,7 +894,7 @@ endef
 
 define gb_LinkTarget__use_rasqal_headers
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,rasqal)/src \
+	-I$(call gb_UnpackedTarball_get_dir,rasqal)/src \
 	$$(INCLUDE) \
 )
 
@@ -968,8 +968,8 @@ define gb_LinkTarget__use_cairo
 $(call gb_LinkTarget_use_package,$(1),cairo)
 $(call gb_LinkTarget_use_package,$(1),pixman)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,cairo) \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,cairo)/src \
+	-I$(call gb_UnpackedTarball_get_dir,cairo) \
+	-I$(call gb_UnpackedTarball_get_dir,cairo)/src \
 	$(FREETYPE_CFLAGS) \
 	$$(INCLUDE) \
 )
@@ -1031,7 +1031,7 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
 define gb_LinkTarget__use_graphite
 $(call gb_LinkTarget_use_unpacked,$(1),graphite)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,graphite/include) \
+	-I$(call gb_UnpackedTarball_get_dir,graphite/include) \
 	$$(INCLUDE) \
 )
 $(call gb_LinkTarget_use_static_libraries,$(1),\
@@ -1083,9 +1083,9 @@ endif
 define gb_LinkTarget__use_icu_headers
 $(call gb_LinkTarget_use_unpacked,$(1),icu)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,icu)/source \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,icu)/source/i18n \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,icu)/source/common \
+	-I$(call gb_UnpackedTarball_get_dir,icu)/source \
+	-I$(call gb_UnpackedTarball_get_dir,icu)/source/i18n \
+	-I$(call gb_UnpackedTarball_get_dir,icu)/source/common \
 	$$(INCLUDE) \
 )
 
@@ -1205,7 +1205,7 @@ endef
 
 define gb_LinkTarget__use_openssl_headers
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,openssl)/include \
+	-I$(call gb_UnpackedTarball_get_dir,openssl)/include \
 	$$(INCLUDE) \
 )
 
@@ -1489,7 +1489,7 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
 define gb_LinkTarget__use_lcms2
 $(call gb_LinkTarget_use_package,$(1),lcms2)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,lcms2/include) \
+	-I$(call gb_UnpackedTarball_get_dir,lcms2/include) \
 	$$(INCLUDE) \
 )
 $(call gb_LinkTarget_use_static_libraries,$(1),\
@@ -1507,7 +1507,7 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
 define gb_LinkTarget__use_lcms2
 $(call gb_LinkTarget_use_package,$(1),lcms2)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,lcms2/include) \
+	-I$(call gb_UnpackedTarball_get_dir,lcms2/include) \
 	$$(INCLUDE) \
 )
 $(call gb_LinkTarget_use_libraries,$(1),\
@@ -1542,7 +1542,7 @@ $(call gb_LinkTarget_use_libraries,$(1),\
 	lpsolve55 \
 )
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,lpsolve) \
+	-I$(call gb_UnpackedTarball_get_dir,lpsolve) \
 	$$(INCLUDE) \
 )
 
@@ -1753,7 +1753,7 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
 define gb_LinkTarget__use_curl
 $(call gb_LinkTarget_use_package,$(1),curl)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,curl/include) \
+	-I$(call gb_UnpackedTarball_get_dir,curl/include) \
 	$$(INCLUDE) \
 )
 $(call gb_LinkTarget_use_libraries,$(1),\
@@ -1816,9 +1816,9 @@ define gb_LinkTarget__use_poppler
 $(call gb_LinkTarget_use_package,$(1),xpdf)
 
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,xpdf) \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,xpdf)/xpdf \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,xpdf)/goo \
+	-I$(call gb_UnpackedTarball_get_dir,xpdf) \
+	-I$(call gb_UnpackedTarball_get_dir,xpdf)/xpdf \
+	-I$(call gb_UnpackedTarball_get_dir,xpdf)/goo \
 	$$(INCLUDE) \
 )
 
@@ -1929,7 +1929,7 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS,\
 define gb_LinkTarget__use_openldap
 $(call gb_LinkTarget_use_unpacked,$(1),openldap)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,openldap/include) \
+	-I$(call gb_UnpackedTarball_get_dir,openldap/include) \
 	$$(INCLUDE) \
 )
 $(call gb_LinkTarget_use_package,$(1),openldap)
@@ -1975,7 +1975,7 @@ $(call gb_LinkTarget_use_packages,$(1),\
 )
 
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(OUTDIR)/inc/postgresql \
+	-I$(OUTDIR)/inc/postgresql \
 	$$(INCLUDE) \
 )
 
@@ -2010,7 +2010,7 @@ $(call gb_LinkTarget_add_defs,$(1),\
 
 $(call gb_LinkTarget_set_include,$(1),\
 	$$(INCLUDE) \
-	$(ISYSTEM)$(OUTDIR)/inc/mozilla \
+	-I$(OUTDIR)/inc/mozilla \
 )
 
 $(call gb_LinkTarget_use_libraries,$(1),\
@@ -2226,9 +2226,9 @@ define gb_LinkTarget__use_python_headers
 $(call gb_LinkTarget_use_package,$(1),python3)
 $(call gb_LinkTarget_use_external_project,$(1),python3)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,python3) \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,python3)/PC \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,python3)/Include \
+	-I$(call gb_UnpackedTarball_get_dir,python3) \
+	-I$(call gb_UnpackedTarball_get_dir,python3)/PC \
+	-I$(call gb_UnpackedTarball_get_dir,python3)/Include \
 	$$(INCLUDE) \
 )
 
@@ -2282,7 +2282,7 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS,\
 define gb_LinkTarget__use_orcus
 $(call gb_LinkTarget_use_unpacked,$(1),orcus)
 $(call gb_LinkTarget_set_include,$(1),\
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,orcus/include) \
+	-I$(call gb_UnpackedTarball_get_dir,orcus/include) \
 	$$(INCLUDE) \
 )
 $(call gb_LinkTarget_use_static_libraries,$(1),orcus)
@@ -2409,8 +2409,8 @@ define gb_LinkTarget__use_nss3
 $(call gb_LinkTarget_use_package,$(1),nss)
 $(call gb_LinkTarget_set_include,$(1),\
 	$$(INCLUDE) \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,nss)/mozilla/dist/public/nss \
-	$(ISYSTEM)$(call gb_UnpackedTarball_get_dir,nss)/mozilla/dist/out/include \
+	-I$(call gb_UnpackedTarball_get_dir,nss)/mozilla/dist/public/nss \
+	-I$(call gb_UnpackedTarball_get_dir,nss)/mozilla/dist/out/include \
 )
 
 $(call gb_LinkTarget_use_libraries,$(1),\
diff --git a/config_host.mk.in b/config_host.mk.in
index 771ec59..08fc52c9 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -251,7 +251,6 @@ export INPATH_FOR_BUILD=@INPATH_FOR_BUILD@
 export INSTALLDIR=@INSTALLDIR@
 export INSTALLDIRNAME=@INSTALLDIRNAME@
 export INTRO_BITMAP=@INTRO_BITMAP@
-export ISYSTEM=@ISYSTEM@
 export JAVACISGCJ=@JAVACISGCJ@
 export JAVACISKAFFE=@JAVACISKAFFE@
 export JAVACOMPILER=@JAVACOMPILER@
diff --git a/configure.ac b/configure.ac
index 77f7540..3f06fbc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2883,6 +2883,7 @@ fi
 AC_SUBST(HAVE_LD_BSYMBOLIC_FUNCTIONS)
 
 # Use -isystem (gcc) if possible, to avoid warnigs in 3rd party headers.
+# NOTE: must _not_ be used for bundled external libraries!
 ISYSTEM=
 if test "$GCC" = "yes"; then
     AC_MSG_CHECKING( for -isystem )
@@ -3973,7 +3974,7 @@ else
     WORKDIR=${BUILDDIR}/workdir/${INPATH}
 fi
 OUTDIR="${SOLARVER}/${INPATH}"
-SOLARINC="-I. ${ISYSTEM}${SOLARVER}/$INPATH/inc/external -I${SOLARVER}/$INPATH/inc -I$SRC_ROOT/solenv/inc $SOLARINC"
+SOLARINC="-I. -I${SOLARVER}/$INPATH/inc/external -I${SOLARVER}/$INPATH/inc -I$SRC_ROOT/solenv/inc $SOLARINC"
 AC_SUBST(COM)
 AC_SUBST(CPU)
 AC_SUBST(CPUNAME)
commit 823862ac02ec07fd20ee288d314e04015b0866df
Author: Michael Stahl <mstahl at redhat.com>
Date:   Sun Mar 31 19:43:03 2013 +0200

    gbuild: InstallModule: fix incremental builds:
    
    Since the scp2 files heavily depend on the variables in config_host.mk,
    let's just rebuild everything when that changes.
    
    Change-Id: Ia07d05d930ece60a8391a93605340ea21af5e6a1

diff --git a/solenv/gbuild/InstallModuleTarget.mk b/solenv/gbuild/InstallModuleTarget.mk
index 6d1c710..e4e9de6 100644
--- a/solenv/gbuild/InstallModuleTarget.mk
+++ b/solenv/gbuild/InstallModuleTarget.mk
@@ -56,7 +56,9 @@ endef
 $(dir $(call gb_ScpTemplateTarget_get_target,%))%/.dir :
 	$(if $(wildcard $(dir $@)),,mkdir -p $(dir $@))
 
-$(call gb_ScpTemplateTarget_get_target,%) : $(gb_ScpTemplateTarget_TARGET)
+# depend on configure output to rebuild everything
+$(call gb_ScpTemplateTarget_get_target,%) : \
+		$(gb_ScpTemplateTarget_TARGET) $(BUILDDIR)/config_$(gb_Side).mk
 	$(call gb_ScpTemplateTarget__command,$@,$*)
 
 .PHONY : $(call gb_ScpTemplateTarget_get_clean_target,%)
@@ -93,7 +95,9 @@ endef
 $(dir $(call gb_ScpPreprocessTarget_get_target,%))%/.dir :
 	$(if $(wildcard $(dir $@)),,mkdir -p $(dir $@))
 
-$(call gb_ScpPreprocessTarget_get_target,%) : $(gb_ScpPreprocessTarget_DEPS)
+# depend on configure output to rebuild everything
+$(call gb_ScpPreprocessTarget_get_target,%) : \
+		$(gb_ScpPreprocessTarget_DEPS) $(BUILDDIR)/config_$(gb_Side).mk
 	$(call gb_ScpPreprocessTarget__command,$@,$*)
 
 .PHONY : $(call gb_ScpPreprocessTarget_get_clean_target,%)
commit 0e22dd203696869c617a8286b65282fdb392c2cc
Author: Michael Stahl <mstahl at redhat.com>
Date:   Sun Mar 31 00:14:30 2013 +0100

    gbuild: ExternalPackage: fix incremental builds:
    
    The added files must have a rule that touches them in order to be copied
    in an incremental build.
    
    Change-Id: If53efb711b92fa1005298941f21b2dab23e44e6c

diff --git a/solenv/gbuild/ExternalPackage.mk b/solenv/gbuild/ExternalPackage.mk
index 8ebefba..c4fbc96 100644
--- a/solenv/gbuild/ExternalPackage.mk
+++ b/solenv/gbuild/ExternalPackage.mk
@@ -68,12 +68,37 @@ gb_ExternalPackage_UNPACKED_$(1) := $(2)
 
 endef
 
+# Mark a source file to be used outside of this module
+#
+# This results in the timestamp of the file being updated, so a possible
+# change is recognized properly by other files depending on it.
+#
+# gb_ExternalPackage_mark_generated_file package file
+define gb_ExternalPackage_mark_generated_file
+$(call gb_UnpackedTarball_get_dir,$(gb_ExternalPackage_UNPACKED_$(1)))/$(2) : \
+		$(call gb_ExternalProject_get_target,$(gb_ExternalPackage_PROJECT_$(1)))
+$(if $(suffix $(2)),\
+	$(call gb_UnpackedTarbal__ensure_pattern_rule,$(gb_ExternalPackage_UNPACKED_$(1)),$(suffix $(2))),\
+	$(call gb_UnpackedTarbal__make_file_rule,$(gb_ExternalPackage_UNPACKED_$(1)),$(2)) \
+)
+
+endef
+
+# Mark several source files to be used outside of this module
+#
+# gb_ExternalProject_mark_generated_files package file(s)
+define gb_ExternalPackage_mark_generated_files
+$(foreach file,$(2),$(call gb_ExternalProject_mark_generated_file,$(1),$(file)))
+
+endef
+
 # Add a file
 #
 # See gb_Package_add_file for details.
 #
 # gb_ExternalPackage_add_file package dest src
 define gb_ExternalPackage_add_file
+$(call gb_ExternalPackage_mark_generated_file,$(1),$(3))
 $(call gb_Package_add_file,$(1),$(2),$(3))
 
 endef
@@ -84,6 +109,7 @@ endef
 #
 # gb_ExternalPackage_add_files package destdir file(s)
 define gb_ExternalPackage_add_files
+$(call gb_ExternalPackage_mark_generated_files,$(1),$(3))
 $(call gb_Package_add_files,$(1),$(2),$(3))
 
 endef
@@ -94,6 +120,7 @@ endef
 #
 # gb_ExternalPackage_add_files_with_dir package destdir file(s)
 define gb_ExternalPackage_add_files_with_dir
+$(call gb_ExternalPackage_mark_generated_files,$(1),$(3))
 $(call gb_Package_add_files_with_dir,$(1),$(2),$(3))
 
 endef
@@ -146,6 +173,8 @@ endef
 # gb_ExternalPackage_use_external_project package external
 define gb_ExternalPackage_use_external_project
 $(call gb_Package_use_external_project,$(1),$(2))
+$(if $(gb_ExternalPackage_PROJECT_$(1)),$(call gb_Output_error,gb_ExternalPackage_use_external_project: only one project allowed))
+gb_ExternalPackage_PROJECT_$(1) := $(2)
 
 endef
 


More information about the Libreoffice-commits mailing list