summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-01 12:19:09 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-02 22:07:53 +0100
commitbc5069ac40a19fc0f421403c9f8ae7e645b34cbb (patch)
tree630f91fad103ece03f8d9e15f6e074dbe8c70a09
parent64a882888665dcbe15acc5793e7c9cf5f1bdc575 (diff)
remove SOLARENV variable
It is constant and can just be replaced by $(SRCDIR)/solenv. Use BUILD_TYPE where it was used to check if config_*.mk is sourced. Change-Id: Ib9d480c57194b6340093aa47776f8768df69b7d1
-rw-r--r--Makefile.gbuild2
-rw-r--r--Makefile.in6
-rw-r--r--compilerplugins/Makefile2
-rw-r--r--config_host.mk.in1
-rw-r--r--configure.ac9
-rw-r--r--external/firebird/ExternalProject_firebird.mk2
-rw-r--r--external/icu/ExternalProject_icu.mk2
-rw-r--r--instsetoo_native/CustomTarget_install.mk2
-rw-r--r--nss/ExternalProject_nss.mk2
-rw-r--r--postprocess/CustomTarget_images.mk7
-rw-r--r--postprocess/CustomTarget_registry.mk4
-rw-r--r--redland/ExternalProject_rasqal.mk2
-rw-r--r--redland/ExternalProject_redland.mk2
-rw-r--r--solenv/bin/callcatcher.Makefile2
-rwxr-xr-xsolenv/bin/install-gdb-printers2
-rw-r--r--solenv/bin/make_installer.pl2
-rw-r--r--solenv/bin/modules/installer/parameter.pm2
-rwxr-xr-xsolenv/bin/ooinstall4
-rw-r--r--solenv/bin/par2script.pl2
-rw-r--r--solenv/bin/pre2par.pl2
-rw-r--r--solenv/gbuild/CliAssembly.mk2
-rw-r--r--solenv/gbuild/ComponentTarget.mk2
-rw-r--r--solenv/gbuild/CppunitTest.mk2
-rw-r--r--solenv/gbuild/Gallery.mk2
-rw-r--r--solenv/gbuild/InstallModuleTarget.mk2
-rw-r--r--solenv/gbuild/InstallScript.mk2
-rw-r--r--solenv/gbuild/Rdb.mk3
-rw-r--r--solenv/gbuild/extensions/pre_SharedLangList.mk2
-rw-r--r--solenv/gbuild/partial_build.mk4
-rw-r--r--solenv/gbuild/platform/macosx.mk4
-rw-r--r--sysui/CustomTarget_share.mk2
31 files changed, 44 insertions, 42 deletions
diff --git a/Makefile.gbuild b/Makefile.gbuild
index 65ff9f25fea3..8c41a2898618 100644
--- a/Makefile.gbuild
+++ b/Makefile.gbuild
@@ -16,7 +16,7 @@ endif
include $(BUILDDIR)/config_$(gb_Side).mk
-include $(SOLARENV)/gbuild/gbuild.mk
+include $(SRCDIR)/solenv/gbuild/gbuild.mk
$(eval $(call gb_Module_make_global_targets,$(SRCDIR)/RepositoryModule_$(gb_Side).mk))
diff --git a/Makefile.in b/Makefile.in
index bc8ed7640fea..0c384044c953 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -180,7 +180,7 @@ distclean : clean compilerplugins-clean
$(BUILDDIR)/ios/lo.xcconfig \
$(BUILDDIR)/lo.xcent \
$(BUILDDIR)/sysui/desktop/macosx/Info.plist
- find $(SOLARENV)/gdb -name "*.pyc" -exec rm {} \;
+ find $(SRCDIR)/solenv/gdb -name "*.pyc" -exec rm {} \;
#
# custom command
@@ -331,7 +331,7 @@ tags:
@create-tags
docs:
- @mkdocs.sh $(SRCDIR)/docs $(SOLARENV)/inc/doxygen.cfg
+ @mkdocs.sh $(SRCDIR)/docs $(SRCDIR)/solenv/inc/doxygen.cfg
findunusedcode:
@which callcatcher > /dev/null 2>&1 || \
@@ -345,7 +345,7 @@ findunusedcode:
@echo unexport ARCH_FLAGS >> $(SRCDIR)/callcatcher/config_host.mk
@echo unexport CFLAGS >> $(SRCDIR)/callcatcher/config_host.mk
@echo unexport CXXFLAGS >> $(SRCDIR)/callcatcher/config_host.mk
- $(GNUMAKE) -f $(SOLARENV)/bin/callcatcher.Makefile findunusedcode
+ $(GNUMAKE) -f $(SRCDIR)/solenv/bin/callcatcher.Makefile findunusedcode
@grep ::.*\( unusedcode.all \
| grep -v ^Atom \
| grep -v ^atom:: \
diff --git a/compilerplugins/Makefile b/compilerplugins/Makefile
index 4281c12da996..b458116a2cda 100644
--- a/compilerplugins/Makefile
+++ b/compilerplugins/Makefile
@@ -7,7 +7,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-ifeq ($(SOLARENV),)
+ifeq ($(BUILD_TYPE),)
ifeq ($(gb_Side),)
gb_Side:=host
endif
diff --git a/config_host.mk.in b/config_host.mk.in
index ddb234a17f80..57e05744992e 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -469,7 +469,6 @@ export SCPDEFS=@SCPDEFS@
export SDKDIRNAME=@SDKDIRNAME@
export SDKDIRNAME_FOR_BUILD=@SDKDIRNAME_FOR_BUILD@
export SHOWINCLUDES_PREFIX=@SHOWINCLUDES_PREFIX@
-export SOLARENV=@SRC_ROOT@/solenv
export SOLARINC=@SOLARINC@
export SOLARLIB=@SOLARLIB@
export SPLIT_APP_MODULES=@SPLIT_APP_MODULES@
diff --git a/configure.ac b/configure.ac
index 6c1dd73e0b72..7f992a547e12 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,6 +12,11 @@ dnl in order to create a configure script.
AC_INIT([LibreOffice],[4.2.0.0.alpha0+],[],[],[http://documentfoundation.org/])
AC_PREREQ([2.59])
+
+if test -n "$BUILD_TYPE"; then
+ AC_MSG_ERROR([You have sourced config_host.mk in this shell. This may lead to trouble, please run in a fresh (login) shell.])
+fi
+
save_CC=$CC
save_CXX=$CXX
@@ -73,10 +78,6 @@ add_warning()
echo "$COLORWARN $@" >> warn
}
-if test -n "$SOLARENV"; then
- AC_MSG_ERROR([You have sourced config_host.mk in this shell. This may lead to trouble, please run in a fresh (login) shell.])
-fi
-
echo "********************************************************************"
echo "*"
echo "* Running ${PACKAGE_NAME} build configuration."
diff --git a/external/firebird/ExternalProject_firebird.mk b/external/firebird/ExternalProject_firebird.mk
index 8bc87e5ce256..b87b4d3e0e43 100644
--- a/external/firebird/ExternalProject_firebird.mk
+++ b/external/firebird/ExternalProject_firebird.mk
@@ -51,7 +51,7 @@ $(call gb_ExternalProject_get_state_target,firebird,build):
$(gb_Helper_set_ld_path)) \
$(MAKE) firebird_embedded \
$(if $(filter MACOSX,$(OS)),&& $(PERL) \
- $(SOLARENV)/bin/macosx-change-install-names.pl shl OOO \
+ $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
$(gb_Package_SOURCEDIR_firebird)/gen/firebird/lib/libfbembed.dylib.2.5.2) \
)
# vim: set noet sw=4 ts=4:
diff --git a/external/icu/ExternalProject_icu.mk b/external/icu/ExternalProject_icu.mk
index f34871857810..2d6501543906 100644
--- a/external/icu/ExternalProject_icu.mk
+++ b/external/icu/ExternalProject_icu.mk
@@ -87,7 +87,7 @@ $(call gb_ExternalProject_get_state_target,icu,build) :
--with-cross-build=$(subst $(INPATH),$(INPATH_FOR_BUILD),$(call gb_UnpackedTarball_get_dir,icu))/source)\
&& $(MAKE) \
$(if $(filter MACOSX,$(OS)),&& $(PERL) \
- $(SOLARENV)/bin/macosx-change-install-names.pl shl OOO \
+ $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
$(gb_Package_SOURCEDIR_icu)/source/lib/libicudata$(gb_Library_DLLEXT).$(icu_VERSION) \
$(gb_Package_SOURCEDIR_icu)/source/lib/libicuuc$(gb_Library_DLLEXT).$(icu_VERSION) \
$(gb_Package_SOURCEDIR_icu)/source/lib/libicui18n$(gb_Library_DLLEXT).$(icu_VERSION)) \
diff --git a/instsetoo_native/CustomTarget_install.mk b/instsetoo_native/CustomTarget_install.mk
index 9082cc561b62..2af27acf35f5 100644
--- a/instsetoo_native/CustomTarget_install.mk
+++ b/instsetoo_native/CustomTarget_install.mk
@@ -27,7 +27,7 @@ $(eval $(call gb_CustomTarget_register_targets,instsetoo_native/install,\
))
$(call gb_CustomTarget_get_workdir,instsetoo_native/install)/install.phony: \
- $(SOLARENV)/bin/make_installer.pl \
+ $(SRCDIR)/solenv/bin/make_installer.pl \
$(foreach ulf,$(instsetoo_ULFLIST),$(call gb_CustomTarget_get_workdir,instsetoo_native/install)/win_ulffiles/$(ulf).ulf) \
$(if $(filter-out WNT,$(OS)),\
$(addprefix $(call gb_CustomTarget_get_workdir,instsetoo_native/install)/,\
diff --git a/nss/ExternalProject_nss.mk b/nss/ExternalProject_nss.mk
index 13a10476d26f..475a7d8368b8 100644
--- a/nss/ExternalProject_nss.mk
+++ b/nss/ExternalProject_nss.mk
@@ -68,7 +68,7 @@ $(call gb_ExternalProject_get_state_target,nss,build): $(call gb_ExternalProject
$(MAKE) -j1 AR=$(AR) RANLIB=$(RANLIB) NMEDIT=$(NM)edit nss_build_all \
&& rm -f $(call gb_UnpackedTarball_get_dir,nss)/mozilla/dist/out/lib/*.a \
$(if $(filter MACOSX,$(OS)),&& $(PERL) \
- $(SOLARENV)/bin/macosx-change-install-names.pl shl OOO \
+ $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
$(gb_Package_SOURCEDIR_nss)/mozilla/dist/out/lib/libfreebl3.dylib \
$(gb_Package_SOURCEDIR_nss)/mozilla/dist/out/lib/libnspr4.dylib \
$(gb_Package_SOURCEDIR_nss)/mozilla/dist/out/lib/libnss3.dylib \
diff --git a/postprocess/CustomTarget_images.mk b/postprocess/CustomTarget_images.mk
index d44a41ebe390..37b81df86811 100644
--- a/postprocess/CustomTarget_images.mk
+++ b/postprocess/CustomTarget_images.mk
@@ -36,7 +36,7 @@ $(packimages_DIR)/%.zip : \
$(call gb_Postprocess_get_target,AllUIConfigs)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,2)
$(call gb_Helper_abbreviate_dirs, \
- $(PERL) $(SOLARENV)/bin/packimages.pl \
+ $(PERL) $(SRCDIR)/solenv/bin/packimages.pl \
-g $(SRCDIR)/icon-themes/galaxy \
-m $(SRCDIR)/icon-themes/galaxy \
$(if $(DEFAULT_THEME),\
@@ -62,7 +62,7 @@ $(packimages_DIR)/commandimagelist.ilst :
find $(SRCDIR)/icon-themes/galaxy/cmd -name "*.png" -o -name "*.svg" | \
sed "s#$(SRCDIR)/icon-themes/galaxy#%MODULE%#" | \
LC_ALL=C sort > $@.$(INPATH) && \
- $(PERL) $(SOLARENV)/bin/diffmv.pl $@.$(INPATH) $@ \
+ $(PERL) $(SRCDIR)/solenv/bin/diffmv.pl $@.$(INPATH) $@ \
$(if $(findstring s,$(MAKEFLAGS)),2> /dev/null))
$(packimages_DIR)/sorted.lst : \
@@ -70,6 +70,7 @@ $(packimages_DIR)/sorted.lst : \
$(call gb_Postprocess_get_target,AllUIConfigs)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),PRL,1)
$(call gb_Helper_abbreviate_dirs, \
- $(PERL) $(SOLARENV)/bin/image-sort.pl $< $(INSTROOT)/$(gb_UIConfig_INSTDIR) $@)
+ $(PERL) $(SRCDIR)/solenv/bin/image-sort.pl \
+ $< $(INSTROOT)/$(gb_UIConfig_INSTDIR) $@)
# vim: set noet sw=4 ts=4:
diff --git a/postprocess/CustomTarget_registry.mk b/postprocess/CustomTarget_registry.mk
index b78ff02696cc..7f240b6aa3fb 100644
--- a/postprocess/CustomTarget_registry.mk
+++ b/postprocess/CustomTarget_registry.mk
@@ -569,7 +569,7 @@ $(call gb_XcdTarget_get_target,main.xcd) : \
$(call gb_Helper_abbreviate_dirs, \
mkdir -p $(dir $@) && \
$(call gb_ExternalExecutable_get_command,xsltproc) --nonet \
- $(SOLARENV)/bin/packregistry.xslt $< \
+ $(SRCDIR)/solenv/bin/packregistry.xslt $< \
| sed $(postprocess_main_SED) > $@ \
)
@@ -579,7 +579,7 @@ $(call gb_XcdTarget_get_target,%.xcd) : \
$(call gb_Helper_abbreviate_dirs, \
mkdir -p $(dir $@) && \
$(call gb_ExternalExecutable_get_command,xsltproc) --nonet \
- -o $@ $(SOLARENV)/bin/packregistry.xslt $< \
+ -o $@ $(SRCDIR)/solenv/bin/packregistry.xslt $< \
)
$(call gb_CustomTarget_get_workdir,postprocess/registry)/Langpack-%.list :
diff --git a/redland/ExternalProject_rasqal.mk b/redland/ExternalProject_rasqal.mk
index 00c6ad4a9344..6b695de2ead3 100644
--- a/redland/ExternalProject_rasqal.mk
+++ b/redland/ExternalProject_rasqal.mk
@@ -60,7 +60,7 @@ $(call gb_ExternalProject_get_state_target,rasqal,build):
$(if $(filter NO,$(SYSTEM_LIBXML)),--with-xml2-config=$(call gb_UnpackedTarball_get_dir,xml2)/xml2-config) \
&& $(MAKE) \
$(if $(filter MACOSX,$(OS)),&& $(PERL) \
- $(SOLARENV)/bin/macosx-change-install-names.pl shl OOO \
+ $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
$(gb_Package_SOURCEDIR_rasqal)/src/.libs/librasqal-lo.$(RASQAL_MAJOR).dylib) \
)
endif
diff --git a/redland/ExternalProject_redland.mk b/redland/ExternalProject_redland.mk
index 2e3e9dd8d080..9b96c9cfbfa6 100644
--- a/redland/ExternalProject_redland.mk
+++ b/redland/ExternalProject_redland.mk
@@ -65,7 +65,7 @@ $(call gb_ExternalProject_get_state_target,redland,build):
$(if $(filter IOS ANDROID,$(OS)),--disable-shared,--disable-static) \
&& $(MAKE) \
$(if $(filter MACOSX,$(OS)),&& $(PERL) \
- $(SOLARENV)/bin/macosx-change-install-names.pl shl OOO \
+ $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
$(gb_Package_SOURCEDIR_redland)/src/.libs/librdf-lo.$(REDLAND_MAJOR).dylib) \
)
endif
diff --git a/solenv/bin/callcatcher.Makefile b/solenv/bin/callcatcher.Makefile
index fc11e54c998b..58bfe6fb3b83 100644
--- a/solenv/bin/callcatcher.Makefile
+++ b/solenv/bin/callcatcher.Makefile
@@ -20,7 +20,7 @@ export AR:=callarchive $(AR)
endif
export dbglevel:=2
-include $(SOLARENV)/gbuild/gbuild.mk
+include $(SRCDIR)/solenv/gbuild/gbuild.mk
findunusedcode:
$(GNUMAKE) BUILDDIR=callcatcher -j $(PARALLELISM) $(GMAKE_OPTIONS) -f Makefile.gbuild
diff --git a/solenv/bin/install-gdb-printers b/solenv/bin/install-gdb-printers
index 73688563c462..3787bec50d79 100755
--- a/solenv/bin/install-gdb-printers
+++ b/solenv/bin/install-gdb-printers
@@ -7,7 +7,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
-GDBDIR="${SOLARENV}/gdb"
+GDBDIR="${SRCDIR}/solenv/gdb"
INSTALLDIR="${TESTINSTALLDIR}"
DYLIB=so
if [ "$(uname)" = Darwin ]; then
diff --git a/solenv/bin/make_installer.pl b/solenv/bin/make_installer.pl
index 81e52f9f89ae..48aaadac2ba5 100644
--- a/solenv/bin/make_installer.pl
+++ b/solenv/bin/make_installer.pl
@@ -19,7 +19,7 @@
use strict;
use warnings;
-use lib ("$ENV{SOLARENV}/bin/modules");
+use lib ("$ENV{SRCDIR}/solenv/bin/modules");
use installer qw(main);
diff --git a/solenv/bin/modules/installer/parameter.pm b/solenv/bin/modules/installer/parameter.pm
index 9d1c200e89b1..ef7f2f6777e9 100644
--- a/solenv/bin/modules/installer/parameter.pm
+++ b/solenv/bin/modules/installer/parameter.pm
@@ -159,7 +159,7 @@ sub getparameter
}
# Usage of simple installer (not for Windows):
- # $PERL -w $SOLARENV/bin/make_installer.pl \
+ # $PERL -w $SRCDIR/solenv/bin/make_installer.pl \
# -f openoffice.lst -l en-US -p OpenOffice \
# -buildid $BUILD -rpm \
# -destdir /tmp/nurk -simple $INSTALL_PATH
diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall
index 138195c42be1..c14b771f2a9f 100755
--- a/solenv/bin/ooinstall
+++ b/solenv/bin/ooinstall
@@ -97,7 +97,7 @@ print "Running LibreOffice installer\n";
system ("cd $ENV{SRC_ROOT}/instsetoo_native/util ; " .
"perl " .
(scalar keys(%DB::sub) ? "-d " : "") .
- "-w $ENV{SOLARENV}/bin/make_installer.pl " .
+ "-w $ENV{SRCDIR}/solenv/bin/make_installer.pl " .
"-f $ENV{BUILDDIR}/instsetoo_native/util/openoffice.lst -l $langs -p LibreOffice " .
"-u $tmp_dir " .
"-buildid $BUILD $destdir $strip $msi " .
@@ -106,7 +106,7 @@ system ("cd $ENV{SRC_ROOT}/instsetoo_native/util ; " .
if ($ENV{BUILD_TYPE} =~ m/ODK/) {
print "Running SDK installer\n";
system ("cd $ENV{SRC_ROOT}/instsetoo_native/util ; " .
- "perl -w $ENV{SOLARENV}/bin/make_installer.pl " .
+ "perl -w $ENV{SRCDIR}/solenv/bin/make_installer.pl " .
"-f $ENV{BUILDDIR}/instsetoo_native/util/openoffice.lst -l en-US -p LibreOffice_SDK " .
"-u $tmp_dir " .
"-buildid $BUILD $destdir $strip $msi " .
diff --git a/solenv/bin/par2script.pl b/solenv/bin/par2script.pl
index aac638d524be..000da995b4a8 100644
--- a/solenv/bin/par2script.pl
+++ b/solenv/bin/par2script.pl
@@ -16,7 +16,7 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-use lib ("$ENV{SOLARENV}/bin/modules");
+use lib ("$ENV{SRCDIR}/solenv/bin/modules");
use Cwd;
use par2script::check;
diff --git a/solenv/bin/pre2par.pl b/solenv/bin/pre2par.pl
index 8c7a32ea7043..42c319dd2c08 100644
--- a/solenv/bin/pre2par.pl
+++ b/solenv/bin/pre2par.pl
@@ -16,7 +16,7 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-use lib ("$ENV{SOLARENV}/bin/modules");
+use lib ("$ENV{SRCDIR}/solenv/bin/modules");
use Cwd;
use pre2par::directory;
diff --git a/solenv/gbuild/CliAssembly.mk b/solenv/gbuild/CliAssembly.mk
index 7c6e3b7b2c45..5683ae7b2c2d 100644
--- a/solenv/gbuild/CliAssembly.mk
+++ b/solenv/gbuild/CliAssembly.mk
@@ -9,7 +9,7 @@
# CliConfigTarget class
-gb_CliConfigTarget_TARGET := $(SOLARENV)/bin/clipatchconfig.pl
+gb_CliConfigTarget_TARGET := $(SRCDIR)/solenv/bin/clipatchconfig.pl
gb_CliConfigTarget_COMMAND := $(PERL) -w $(gb_CliConfigTarget_TARGET)
gb_CliConfigTarget_VERSIONFILE_DEFAULT := $(SRCDIR)/cli_ure/version/version.txt
diff --git a/solenv/gbuild/ComponentTarget.mk b/solenv/gbuild/ComponentTarget.mk
index 0957f9f5527d..56fa9e627993 100644
--- a/solenv/gbuild/ComponentTarget.mk
+++ b/solenv/gbuild/ComponentTarget.mk
@@ -17,7 +17,7 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-gb_ComponentTarget_XSLTCOMMANDFILE := $(SOLARENV)/bin/createcomponent.xslt
+gb_ComponentTarget_XSLTCOMMANDFILE := $(SRCDIR)/solenv/bin/createcomponent.xslt
gb_ComponentTarget_get_source = $(SRCDIR)/$(1).component
# In the DISABLE_DYNLOADING case we don't need any COMPONENTPREFIX, we
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index 21b828f95f0e..f05bae726da2 100644
--- a/solenv/gbuild/CppunitTest.mk
+++ b/solenv/gbuild/CppunitTest.mk
@@ -27,7 +27,7 @@ printf '\nError: a unit test failed, please do one of:\n\nexport DEBUGCPPUNIT=TR
endef
ifeq ($(strip $(DEBUGCPPUNIT)),TRUE)
-gb_CppunitTest_GDBTRACE := gdb -nx -ex "add-auto-load-safe-path $(INSTDIR)" --command=$(SOLARENV)/bin/gdbtrycatchtrace-stdout -return-child-result --args
+gb_CppunitTest_GDBTRACE := gdb -nx -ex "add-auto-load-safe-path $(INSTDIR)" --command=$(SRCDIR)/solenv/bin/gdbtrycatchtrace-stdout -return-child-result --args
else ifneq ($(strip $(CPPUNITTRACE)),)
gb_CppunitTest_GDBTRACE := $(CPPUNITTRACE)
gb_CppunitTest__interactive := $(true)
diff --git a/solenv/gbuild/Gallery.mk b/solenv/gbuild/Gallery.mk
index b61bb02297e9..63090fa9c8a6 100644
--- a/solenv/gbuild/Gallery.mk
+++ b/solenv/gbuild/Gallery.mk
@@ -11,7 +11,7 @@
# Handles creation of image galleries.
-gb_Gallery_TRANSLATE := $(SOLARENV)/bin/desktop-translate.pl
+gb_Gallery_TRANSLATE := $(SRCDIR)/solenv/bin/desktop-translate.pl
gb_Gallery_INSTDIR := $(LIBO_SHARE_FOLDER)/gallery
# BRAND_BASE_DIR is for resource files
diff --git a/solenv/gbuild/InstallModuleTarget.mk b/solenv/gbuild/InstallModuleTarget.mk
index 9cfc0c4ae438..54848b0bf0d8 100644
--- a/solenv/gbuild/InstallModuleTarget.mk
+++ b/solenv/gbuild/InstallModuleTarget.mk
@@ -129,7 +129,7 @@ endef
# ScpTarget class
-gb_ScpTarget_TARGET := $(SOLARENV)/bin/pre2par.pl
+gb_ScpTarget_TARGET := $(SRCDIR)/solenv/bin/pre2par.pl
gb_ScpTarget_COMMAND := $(PERL) $(gb_ScpTarget_TARGET)
define gb_ScpTarget__command
diff --git a/solenv/gbuild/InstallScript.mk b/solenv/gbuild/InstallScript.mk
index 41e94f5c7615..593bd3e0861b 100644
--- a/solenv/gbuild/InstallScript.mk
+++ b/solenv/gbuild/InstallScript.mk
@@ -9,7 +9,7 @@
# InstallScript class
-gb_InstallScript_TARGET := $(SOLARENV)/bin/par2script.pl
+gb_InstallScript_TARGET := $(SRCDIR)/solenv/bin/par2script.pl
gb_InstallScript_COMMAND := $(PERL) $(gb_InstallScript_TARGET)
gb_InstallScript__make_arglist = $(subst $(WHITESPACE),$(COMMA),$(strip $(1)))
diff --git a/solenv/gbuild/Rdb.mk b/solenv/gbuild/Rdb.mk
index 9ec2d0f92c3c..d65aec6b76f1 100644
--- a/solenv/gbuild/Rdb.mk
+++ b/solenv/gbuild/Rdb.mk
@@ -17,7 +17,8 @@ $(call gb_Helper_abbreviate_dirs,\
$(foreach component,$(COMPONENTS),echo "<filename>$(call gb_ComponentTarget_get_target,$(component))</filename>" &&) \
echo '</list>' \
) > $(1).input && \
- $(call gb_ExternalExecutable_get_command,xsltproc) --nonet -o $(1) $(SOLARENV)/bin/packcomponents.xslt $(1).input && \
+ $(call gb_ExternalExecutable_get_command,xsltproc) --nonet -o $(1) \
+ $(SRCDIR)/solenv/bin/packcomponents.xslt $(1).input && \
rm $(1).input)
endef
diff --git a/solenv/gbuild/extensions/pre_SharedLangList.mk b/solenv/gbuild/extensions/pre_SharedLangList.mk
index e42c697df784..16ab3fc1c600 100644
--- a/solenv/gbuild/extensions/pre_SharedLangList.mk
+++ b/solenv/gbuild/extensions/pre_SharedLangList.mk
@@ -17,7 +17,7 @@
#
# share language list with dmake build system
-include $(SOLARENV)/inc/langlist.mk
+include $(SRCDIR)/solenv/inc/langlist.mk
ifneq ($(WITH_LANG),ALL)
gb_WITH_LANG=$(WITH_LANG)
diff --git a/solenv/gbuild/partial_build.mk b/solenv/gbuild/partial_build.mk
index 87e37ccd9ef2..68e807b97615 100644
--- a/solenv/gbuild/partial_build.mk
+++ b/solenv/gbuild/partial_build.mk
@@ -25,12 +25,12 @@ ifeq (,$(BUILDDIR))
BUILDDIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))../..
endif
-ifeq ($(SOLARENV),)
+ifeq ($(BUILD_TYPE),)
include $(BUILDDIR)/config_$(gb_Side).mk
endif
gb_PARTIAL_BUILD := T
-include $(SOLARENV)/gbuild/gbuild.mk
+include $(SRCDIR)/solenv/gbuild/gbuild.mk
$(eval $(call gb_Module_make_global_targets,$(wildcard $(module_directory)/Module*.mk)))
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk
index a57530b53c7a..c46cba10511f 100644
--- a/solenv/gbuild/platform/macosx.mk
+++ b/solenv/gbuild/platform/macosx.mk
@@ -151,9 +151,9 @@ $(call gb_Helper_abbreviate_dirs,\
-o $(1) && \
$(if $(SOVERSIONSCRIPT),ln -sf $(1) $(ILIBTARGET),:) && \
$(if $(filter Executable,$(TARGETTYPE)), \
- $(PERL) $(SOLARENV)/bin/macosx-change-install-names.pl app $(LAYER) $(1) &&) \
+ $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl app $(LAYER) $(1) &&) \
$(if $(filter Library Bundle CppunitTest,$(TARGETTYPE)),\
- $(PERL) $(SOLARENV)/bin/macosx-change-install-names.pl shl $(LAYER) $(1) &&) \
+ $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl $(LAYER) $(1) &&) \
$(if $(MACOSX_CODESIGNING_IDENTITY), \
$(if $(filter Executable,$(TARGETTYPE)), \
(codesign --identifier=$(MACOSX_BUNDLE_IDENTIFIER).$(notdir $(1)) --sign $(MACOSX_CODESIGNING_IDENTITY) --force $(1) || true) &&)) \
diff --git a/sysui/CustomTarget_share.mk b/sysui/CustomTarget_share.mk
index 6f7147fd3038..79eea3a3a67c 100644
--- a/sysui/CustomTarget_share.mk
+++ b/sysui/CustomTarget_share.mk
@@ -27,7 +27,7 @@ endif
share_WORKDIR := $(call gb_CustomTarget_get_workdir,sysui/share)
share_SRCDIR := $(SRCDIR)/sysui/desktop
-share_TRANSLATE := $(SOLARENV)/bin/desktop-translate.pl
+share_TRANSLATE := $(SRCDIR)/solenv/bin/desktop-translate.pl
LAUNCHERLIST_APPS := writer calc draw impress math base startcenter
LAUNCHERLIST := $(LAUNCHERLIST_APPS) qstart xsltfilter