1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_CustomTarget_CustomTarget
,instsetoo_native
/setup
))
12 $(eval
$(call gb_CustomTarget_register_targets
,instsetoo_native
/setup
,\
14 $(if
$(filter TRUE
,$(DISABLE_PYTHON
)),,pythonloader.unorc
) \
19 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/ooenv
:
20 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
22 echo
'java_path=`$(INSTDIR)/ure/bin/javaldx 2>/dev/null`' && \
23 echo
'export LD_LIBRARY_PATH="$(INSTDIR)/program:$$java_path$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH}"' && \
24 echo
'ulimit -c unlimited' && \
25 echo
'export PATH="$(INSTDIR)/program:$(INSTDIR)/ure/bin:$$PATH"' && \
26 echo
'export GNOME_DISABLE_CRASH_DIALOG=1' && \
27 echo
'# debugging assistance' && \
28 echo
'export SAL_DISABLE_FLOATGRAB=1' && \
29 echo
'export G_SLICE=always-malloc' && \
30 echo
'export MALLOC_CHECK_=2' && \
31 echo
'export MALLOC_PERTURB_=153' && \
32 echo
'export OOO_DISABLE_RECOVERY=1' \
35 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/pythonloader.unorc
:
36 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
38 echo
'[Bootstrap]' && \
39 $(if
$(filter YES
,$(SYSTEM_PYTHON
)),\
40 echo PYUNO_LOADER_PYTHONPATH
='$$ORIGIN',\
41 echo PYUNO_LOADER_PYTHONHOME
='$$ORIGIN/python-core-$(PYTHON_VERSION)' && \
42 echo PYUNO_LOADER_PYTHONPATH
='$(foreach dir,lib lib/lib-dynload lib/lib-tk lib/site-packages,$$ORIGIN/python-core-$(PYTHON_VERSION)/$(dir)) $$ORIGIN' \
46 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/ure-link
:
47 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),LN
,1)
49 mkdir
-p
$(dir $@
)/ure
&& \
53 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/versionrc
:
54 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
57 echo
'AllLanguages=en-US' && \
58 echo
'buildid=$(shell git log -1 --format=%H)' && \
59 echo
'ProductMajor=$(LIBO_VERSION_MAJOR)$(LIBO_VERSION_MINOR)$(LIBO_VERSION_MICRO)' && \
60 echo
'ProductMinor=$(LIBO_VERSION_PATCH)' \
63 # vim: set noet sw=4 ts=4: