diff options
author | David Tardon <dtardon@redhat.com> | 2013-04-27 14:27:51 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-04-28 16:34:24 +0200 |
commit | 6ae02e9c617f969262e28bc705bf3cb269d665d7 (patch) | |
tree | 2b5f6d32fbd7c070dd20892bdab98b499e41485a | |
parent | gbuild: copy image zips to instdir (diff) | |
download | core-6ae02e9c617f969262e28bc705bf3cb269d665d7.tar.gz core-6ae02e9c617f969262e28bc705bf3cb269d665d7.zip |
gbuild: generate ooenv for instdir
Change-Id: I1d2ab70a1557376f056b236c4785e013275bbb92
-rw-r--r-- | instsetoo_native/CustomTarget_setup.mk | 32 | ||||
-rw-r--r-- | instsetoo_native/Module_instsetoo_native.mk | 7 | ||||
-rw-r--r-- | instsetoo_native/Package_setup.mk | 16 |
3 files changed, 55 insertions, 0 deletions
diff --git a/instsetoo_native/CustomTarget_setup.mk b/instsetoo_native/CustomTarget_setup.mk new file mode 100644 index 000000000000..51647eb85a9c --- /dev/null +++ b/instsetoo_native/CustomTarget_setup.mk @@ -0,0 +1,32 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_CustomTarget_CustomTarget,instsetoo_native/setup)) + +$(eval $(call gb_CustomTarget_register_targets,instsetoo_native/setup,\ + ooenv \ +)) + +$(call gb_CustomTarget_get_workdir,instsetoo_native/setup)/ooenv : + $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1) + ( \ + echo 'java_path=`$(INSTDIR)/ure/bin/javaldx 2>/dev/null`' && \ + echo 'export LD_LIBRARY_PATH="$(INSTDIR)/program:$$java_path$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}"' && \ + echo 'ulimit -c unlimited' && \ + echo 'export PATH="$(INSTDIR)/program:$(INSTDIR)/ure/bin:$$PATH"' && \ + echo 'export GNOME_DISABLE_CRASH_DIALOG=1' && \ + echo '# debugging assistance' && \ + echo 'export SAL_DISABLE_FLOATGRAB=1' && \ + echo 'export G_SLICE=always-malloc' && \ + echo 'export MALLOC_CHECK_=2' && \ + echo 'export MALLOC_PERTURB_=153' && \ + echo 'export OOO_DISABLE_RECOVERY=1' \ + ) > $@ + +# vim: set noet sw=4 ts=4: diff --git a/instsetoo_native/Module_instsetoo_native.mk b/instsetoo_native/Module_instsetoo_native.mk index 454a77cef921..2ee18e586a77 100644 --- a/instsetoo_native/Module_instsetoo_native.mk +++ b/instsetoo_native/Module_instsetoo_native.mk @@ -17,4 +17,11 @@ $(eval $(call gb_Module_add_targets,instsetoo_native,\ endif +ifneq ($(gb_RUNNABLE_INSTDIR),) +$(eval $(call gb_Module_add_targets,instsetoo_native,\ + CustomTarget_setup \ + Package_setup \ +)) +endif + # vim: set noet sw=4 ts=4: diff --git a/instsetoo_native/Package_setup.mk b/instsetoo_native/Package_setup.mk new file mode 100644 index 000000000000..cf73f4fae8c3 --- /dev/null +++ b/instsetoo_native/Package_setup.mk @@ -0,0 +1,16 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_Package_Package,instsetoo_native_setup,$(call gb_CustomTarget_get_workdir,instsetoo_native/setup))) + +$(eval $(call gb_Package_set_outdir,instsetoo_native_setup,$(INSTDIR))) + +$(eval $(call gb_Package_add_file,instsetoo_native_setup,program/ooenv,ooenv)) + +# vim: set noet sw=4 ts=4: |