Makefile.fetch | 2 +- Makefile.in | 12 ++++++------ Makefile.top | 10 +++++----- compilerplugins/Makefile-clang.mk | 4 ++-- configure.ac | 12 ++++++------ g | 8 ++++---- scp2/CustomTarget_langmacros.mk | 4 ++-- solenv/gbuild/platform/com_GCC_defs.mk | 6 +++--- solenv/gbuild/platform/com_MSC_class.mk | 2 +- 9 files changed, 30 insertions(+), 30 deletions(-)
New commits: commit 2ac26dc83f2ce9c2b41f9d9b33dd4c0cdd8d1272 Author: LuboÅ¡ LuÅák <l.lu...@suse.cz> Date: Tue Dec 11 15:45:16 2012 +0100 adjust clang plugins for srcdir != builddir Change-Id: Ie4c934b52c4b010703e91f84b83e1fe590b5d187 diff --git a/compilerplugins/Makefile-clang.mk b/compilerplugins/Makefile-clang.mk index 4d405e9..c87338c 100644 --- a/compilerplugins/Makefile-clang.mk +++ b/compilerplugins/Makefile-clang.mk @@ -37,7 +37,7 @@ CLANGINCLUDES=-I$(CLANGDIR)/include -I$(CLANGDIR)/tools/clang/include -I$(CLANGB CLANGINDIR=$(SRCDIR)/compilerplugins/clang # Cannot use $(WORKDIR), the plugin should survive even 'make clean', otherwise the rebuilt # plugin will cause cache misses with ccache. -CLANGOUTDIR=$(SRCDIR)/compilerplugins/obj +CLANGOUTDIR=$(BUILDDIR)/compilerplugins/obj compilerplugins: $(CLANGOUTDIR) $(CLANGOUTDIR)/plugin.so @@ -63,7 +63,7 @@ endef $(foreach src, $(CLANGSRC), $(eval $(call clangbuildsrc,$(src),$(CLANGINDIR)/$(src),$(CLANGOUTDIR)/$(src:.cxx=.o)))) $(CLANGOUTDIR)/plugin.so: $(CLANGOBJS) - @echo [build LNK] $(subst $(SRCDIR)/,,$@) + @echo [build LNK] $(subst $(BUILDDIR)/,,$@) $(CXX) -shared $(CLANGOBJS) -o $@ # Clang most probably doesn't maintain binary compatibility, so rebuild when clang changes. diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index cc2a606..3eca80e 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -161,9 +161,9 @@ gb_LinkTarget_INCLUDE :=\ ifeq ($(COM_GCC_IS_CLANG),TRUE) ifeq ($(COMPILER_PLUGIN_TOOL),) -gb_COMPILER_PLUGINS := -Xclang -load -Xclang $(SRCDIR)/compilerplugins/obj/plugin.so -Xclang -add-plugin -Xclang loplugin +gb_COMPILER_PLUGINS := -Xclang -load -Xclang $(BUILDDIR)/compilerplugins/obj/plugin.so -Xclang -add-plugin -Xclang loplugin else -gb_COMPILER_PLUGINS := -Xclang -load -Xclang $(SRCDIR)/compilerplugins/obj/plugin.so -Xclang -plugin -Xclang loplugin -Xclang -plugin-arg-loplugin -Xclang $(COMPILER_PLUGIN_TOOL) +gb_COMPILER_PLUGINS := -Xclang -load -Xclang $(BUILDDIR)/compilerplugins/obj/plugin.so -Xclang -plugin -Xclang loplugin -Xclang -plugin-arg-loplugin -Xclang $(COMPILER_PLUGIN_TOOL) endif # extra EF variable to make the command line shorter (just like is done with $(SRCDIR) etc.) gb_COMPILER_PLUGINS_SETUP := EF=$(SRCDIR)/sal/inc/sal/log-areas.dox && ICECC_EXTRAFILES=$$EF CCACHE_EXTRAFILES=$$EF commit c8c056fd203bc60bedb55d45bd8ca81b168391d8 Author: LuboÅ¡ LuÅák <l.lu...@suse.cz> Date: Tue Dec 11 15:39:49 2012 +0100 BUILD_DIR -> BUILDDIR, to be consistent with the other *DIR Change-Id: Ia80a1246a7e3c8862a50a3daf79aba5609b7df3a diff --git a/Makefile.fetch b/Makefile.fetch index 4b37897..c722f68 100644 --- a/Makefile.fetch +++ b/Makefile.fetch @@ -70,7 +70,7 @@ endef download: $(WORKDIR)/download -$(WORKDIR)/download: $(BUILD_DIR)/config_host.mk $(SRCDIR)/download.lst $(SRCDIR)/Makefile.fetch +$(WORKDIR)/download: $(BUILDDIR)/config_host.mk $(SRCDIR)/download.lst $(SRCDIR)/Makefile.fetch @mkdir -p $(TARFILE_LOCATION)/tmp @date >> $(fetch_LOGFILE) $(foreach item, \ diff --git a/Makefile.in b/Makefile.in index bd06c20..b001642 100644 --- a/Makefile.in +++ b/Makefile.in @@ -14,24 +14,24 @@ endif SHELL=/usr/bin/env bash export SRCDIR:=@SRC_ROOT@ -export BUILD_DIR:=$(patsubst %/,%,$(dir $(realpath $(firstword $(MAKEFILE_LIST))))) +export BUILDDIR:=$(patsubst %/,%,$(dir $(realpath $(firstword $(MAKEFILE_LIST))))) -.PHONY : $(filter-out $(BUILD_DIR)/config_host.mk,$(MAKECMDGOALS)) +.PHONY : $(filter-out $(BUILDDIR)/config_host.mk,$(MAKECMDGOALS)) # recursively invoke Makefile.top, which includes config_host.mk -$(filter-out help,$(firstword $(MAKECMDGOALS))) : $(BUILD_DIR)/config_host.mk +$(filter-out help,$(firstword $(MAKECMDGOALS))) : $(BUILDDIR)/config_host.mk $(MAKE) -r -f $(SRCDIR)/Makefile.top $(MAKECMDGOALS) # run configure in an environment not polluted by config_host.mk -$(BUILD_DIR)/config_host.mk : \ +$(BUILDDIR)/config_host.mk : \ $(SRCDIR)/config_host.mk.in \ $(SRCDIR)/Makefile.in \ $(SRCDIR)/configure.ac \ - $(BUILD_DIR)/autogen.lastrun + $(BUILDDIR)/autogen.lastrun $(SRCDIR)/autogen.sh # dummy rule in case autogen.lastrun does not exist -$(BUILD_DIR)/autogen.lastrun: +$(BUILDDIR)/autogen.lastrun: @true help: diff --git a/Makefile.top b/Makefile.top index 46534e0..f37c0e7 100644 --- a/Makefile.top +++ b/Makefile.top @@ -14,7 +14,7 @@ ifeq ($(gb_Side),) gb_Side:=host endif -include $(BUILD_DIR)/config_$(gb_Side).mk +include $(BUILDDIR)/config_$(gb_Side).mk SRCDIR:=$(SRC_ROOT) ifeq ($(GMAKE_OPTIONS),) @@ -27,7 +27,7 @@ endif # This list tells which modules are gbuild ones. It does *not* tell which modules to build. That is directed # by the module being mentioned in packimages/prj/build.lst, etc, recursively. -$(WORKDIR)/modules.mk: $(wildcard */Module_*.mk) $(wildcard */prj/dmake) $(BUILD_DIR)/config_host.mk +$(WORKDIR)/modules.mk: $(wildcard */Module_*.mk) $(wildcard */prj/dmake) $(BUILDDIR)/config_host.mk mkdir -p $(dir $@) echo -n "gbuild_modules:= tail_build \\" > $@ for m in */Module_*.mk; do echo $$m | sed -e 's/\/.*$$/ \\/'; done >> $@ @@ -143,9 +143,9 @@ ifeq ($(BUILD_DMAKE),YES) (if [ -f dmake/Makefile ] ; then $(GNUMAKE) -j $(PARALLELISM) -C dmake distclean; fi) && \ rm -f solenv/*/bin/dmake* endif - rm -fr $(BUILD_DIR)/config_host.mk $(BUILD_DIR)/config_build.mk $(BUILD_DIR)/aclocal.m4 $(BUILD_DIR)/autom4te.cache \ - $(BUILD_DIR)/config.log $(BUILD_DIR)/config.status $(BUILD_DIR)/configure \ - $(BUILD_DIR)/config_host.mk.last $(BUILD_DIR)/config_host.mk.stamp $(BUILD_DIR)/warn $(BUILD_DIR)/config/*.h + rm -fr $(BUILDDIR)/config_host.mk $(BUILDDIR)/config_build.mk $(BUILDDIR)/aclocal.m4 $(BUILDDIR)/autom4te.cache \ + $(BUILDDIR)/config.log $(BUILDDIR)/config.status $(BUILDDIR)/configure \ + $(BUILDDIR)/config_host.mk.last $(BUILDDIR)/config_host.mk.stamp $(BUILDDIR)/warn $(BUILDDIR)/config/*.h find $(SOLARENV)/gdb -name "*.pyc" -exec rm {} \; # diff --git a/configure.ac b/configure.ac index f7b5281..2b8c4e2 100644 --- a/configure.ac +++ b/configure.ac @@ -86,10 +86,10 @@ AC_PROG_EGREP # AC_PROG_EGREP doesn't set GREP on all systems as well AC_PATH_PROG(GREP, grep) -BUILD_DIR=`pwd` +BUILDDIR=`pwd` cd $srcdir SRC_ROOT=`pwd` -cd $BUILD_DIR +cd $BUILDDIR EXEEXT_FOR_BUILD= x_Cygwin=[\#] @@ -97,8 +97,8 @@ if test "$build_os" = "cygwin"; then EXEEXT_FOR_BUILD=.exe PathFormat "$SRC_ROOT" SRC_ROOT="$formatted_path" - PathFormat "$BUILD_DIR" - BUILD_DIR="$formatted_path" + PathFormat "$BUILDDIR" + BUILDDIR="$formatted_path" x_Cygwin= fi @@ -2409,7 +2409,7 @@ if test -n "${with_solver_and_workdir_root}"; then SOLARVER=${formatted_path}/solver fi else - SOLARVER=${BUILD_DIR}/solver + SOLARVER=${BUILDDIR}/solver fi dnl =================================================================== @@ -4034,7 +4034,7 @@ if test -n "${with_solver_and_workdir_root}"; then WORKDIR=${formatted_path}/workdir/${INPATH} fi else - WORKDIR=${BUILD_DIR}/workdir/${INPATH} + WORKDIR=${BUILDDIR}/workdir/${INPATH} fi OUTDIR="${SOLARVER}/${INPATH}" SOLARINC="-I. -I${SOLARVER}/$INPATH/inc/external -I${SOLARVER}/$INPATH/inc -I$SRC_ROOT/solenv/inc $SOLARINC" diff --git a/g b/g index 711318b..e28509d 100755 --- a/g +++ b/g @@ -11,8 +11,8 @@ SUBMODULES_ALL="dictionaries helpcontent2 translations" pushd $(dirname $0) > /dev/null if [ -f config_host.mk ] ; then - # we are in the BUILD_DIR - SRC_ROOT=$(cat ${BUILD_DIR}/config_host.mk | grep SRC_ROOT | sed -e "s/.*=//") + # we are in the BUILDDIR + SRC_ROOT=$(cat ${BUILDDIR}/config_host.mk | grep SRC_ROOT | sed -e "s/.*=//") else SRC_ROOT=$(pwd) fi @@ -121,8 +121,8 @@ local repo get_configured_submodules() { SUBMODULES_CONFIGURED="" - if [ -f "${BUILD_DIR}/config_host.mk" ] ; then - SUBMODULES_CONFIGURED=$(cat ${BUILD_DIR}/config_host.mk | grep GIT_NEEDED_SUBMODULES | sed -e "s/.*=//") + if [ -f "${BUILDDIR}/config_host.mk" ] ; then + SUBMODULES_CONFIGURED=$(cat ${BUILDDIR}/config_host.mk | grep GIT_NEEDED_SUBMODULES | sed -e "s/.*=//") else # if we need the configured submoduel before the configuration is done. we assumed you want them all SUBMODULES_CONFIGURED=${SUBMODULES_ALL?} diff --git a/scp2/CustomTarget_langmacros.mk b/scp2/CustomTarget_langmacros.mk index 1d3509c..cedd613 100644 --- a/scp2/CustomTarget_langmacros.mk +++ b/scp2/CustomTarget_langmacros.mk @@ -31,10 +31,10 @@ $(call gb_CustomTarget_get_target,scp2/macros) : $(call gb_CustomTarget_get_work $(call gb_CustomTarget_get_workdir,scp2/macros)/langmacros.inc :| $(call gb_CustomTarget_get_workdir,scp2/macros)/.dir -$(call gb_CustomTarget_get_workdir,scp2/macros)/langmacros.inc : $(SRCDIR)/scp2/macros/macro.pl $(BUILD_DIR)/config_host.mk.stamp +$(call gb_CustomTarget_get_workdir,scp2/macros)/langmacros.inc : $(SRCDIR)/scp2/macros/macro.pl $(BUILDDIR)/config_host.mk.stamp $(call gb_Helper_abbreviate_dirs,\ export COMPLETELANGISO_VAR='$(gb_ScpTemplateTarget_LANGS)' && \ - $(PERL) $< -verbose -o $@ -c $(BUILD_DIR)/config_host.mk.stamp \ + $(PERL) $< -verbose -o $@ -c $(BUILDDIR)/config_host.mk.stamp \ ) # vim: set shiftwidth=4 tabstop=4 noexpandtab: diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index f6a6f8f..cc2a606 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -157,7 +157,7 @@ gb_DEBUG_CXXFLAGS := $(FNO_DEFAULT_INLINE) gb_LinkTarget_INCLUDE :=\ $(subst -I. , ,$(SOLARINC)) \ - -I$(BUILD_DIR)/config \ + -I$(BUILDDIR)/config \ ifeq ($(COM_GCC_IS_CLANG),TRUE) ifeq ($(COMPILER_PLUGIN_TOOL),) diff --git a/solenv/gbuild/platform/com_MSC_class.mk b/solenv/gbuild/platform/com_MSC_class.mk index da85a31..fcdea68 100644 --- a/solenv/gbuild/platform/com_MSC_class.mk +++ b/solenv/gbuild/platform/com_MSC_class.mk @@ -162,7 +162,7 @@ gb_LinkTarget_CXXFLAGS := $(gb_CXXFLAGS) gb_LinkTarget_INCLUDE :=\ $(subst -I. , ,$(SOLARINC)) \ $(foreach inc,$(subst ;, ,$(JDKINC)),-I$(inc)) \ - -I$(BUILD_DIR)/config \ + -I$(BUILDDIR)/config \ gb_LinkTarget_get_pdbfile = $(call gb_LinkTarget_get_target,)pdb/$(1).pdb
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits