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
,\
13 $(call gb_Helper_get_rcfile
,bootstrap
) \
14 $(call gb_Helper_get_rcfile
,fundamental
) \
15 $(if
$(ENABLE_OOENV
),ooenv
) \
16 $(if
$(filter TRUE
,$(DISABLE_PYTHON
)),,$(call gb_Helper_get_rcfile
,pythonloader.uno
)) \
17 $(if
$(filter DESKTOP
,$(BUILD_TYPE
)),$(if
$(filter-out MACOSX
,$(OS
)), \
18 $(call gb_Helper_get_rcfile
,redirect
))) \
19 $(call gb_Helper_get_rcfile
,setup
) \
20 $(call gb_Helper_get_rcfile
,soffice
) \
21 $(call gb_Helper_get_rcfile
,uno
) \
22 $(call gb_Helper_get_rcfile
,version
) \
25 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,bootstrap
) \
26 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,fundamental
) \
27 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/ooenv \
28 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,pythonloader.uno
) \
29 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,uno
) \
30 : $(SRCDIR
)/instsetoo_native
/CustomTarget_setup.mk
32 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,bootstrap
) :
33 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
35 echo
'[ErrorReport]' \
36 && echo
'ErrorReportPort=80' \
37 && echo
'ErrorReportServer=report.libreoffice.org' \
38 && echo
'[Bootstrap]' \
39 && echo
'InstallMode=<installmode>' \
40 && echo
'ProductKey=$(PRODUCTNAME) $(PRODUCTVERSION)' \
41 $(if
$(ENABLE_RELEASE_BUILD
),\
42 && echo
'UserInstallation=$$SYSUSERCONFIG/$(if $(filter-out MACOSX WNT,$(OS)),$(shell echo $(PRODUCTNAME) | tr "[:upper:]" "[:lower:]"),$(PRODUCTNAME))/$(LIBO_VERSION_MAJOR)', \
43 && echo
'UserInstallation=$$ORIGIN/..') \
46 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,fundamental
) :
47 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
50 && echo
'BRAND_BASE_DIR=$${ORIGIN}/..' \
51 && echo
'BRAND_BIN_SUBDIR=$(LIBO_BIN_FOLDER)' \
52 && echo
'BRAND_SHARE_SUBDIR=$(LIBO_SHARE_FOLDER)' \
53 && echo
'CONFIGURATION_LAYERS=xcsxcu:$${BRAND_BASE_DIR}/$(LIBO_SHARE_FOLDER)/registry res:$${BRAND_BASE_DIR}/$(LIBO_SHARE_FOLDER)/registry bundledext:$${$${BRAND_BASE_DIR}/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,uno):BUNDLED_EXTENSIONS_USER}/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/configmgr.ini sharedext:$${$${BRAND_BASE_DIR}/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,uno):SHARED_EXTENSIONS_USER}/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/configmgr.ini userext:$${$${BRAND_BASE_DIR}/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,uno):UNO_USER_PACKAGES_CACHE}/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/configmgr.ini user:$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/registrymodifications.xcu' \
54 && echo
'LO_JAVA_DIR=$${BRAND_BASE_DIR}/$(LIBO_SHARE_JAVA_FOLDER)' \
55 && echo
'LO_LIB_DIR=$${BRAND_BASE_DIR}/$(LIBO_LIB_FOLDER)' \
56 && echo
'BAK_EXTENSIONS=$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):TMP_EXTENSIONS}' \
57 && echo
'BUNDLED_EXTENSIONS=$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):BUNDLED_EXTENSIONS}' \
58 && echo
'BUNDLED_EXTENSIONS_USER=$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):BUNDLED_EXTENSIONS_USER}' \
59 && echo
'SHARED_EXTENSIONS_USER=$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):SHARED_EXTENSIONS_USER}' \
60 && echo
'UNO_SHARED_PACKAGES_CACHE=$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):UNO_SHARED_PACKAGES_CACHE}' \
61 && echo
'TMP_EXTENSIONS=$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):TMP_EXTENSIONS}' \
62 && echo
'UNO_USER_PACKAGES_CACHE=$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):UNO_USER_PACKAGES_CACHE}' \
63 && echo
'URE_BIN_DIR=$(if $(filter WNT,$(OS)),$${.link:$${BRAND_BASE_DIR}/ure-link}/bin,$${BRAND_BASE_DIR}/ure-link/bin)' \
64 && echo
'URE_MORE_JAVA_CLASSPATH_URLS=$(if $(SYSTEM_HSQLDB),$(HSQLDB_JAR))' \
65 && echo
'URE_OVERRIDE_JAVA_JFW_SHARED_DATA=$${BRAND_BASE_DIR}/$(LIBO_SHARE_FOLDER)/config/javasettings_$${_OS}_$${_ARCH}.xml' \
66 && echo
'URE_OVERRIDE_JAVA_JFW_USER_DATA=$${$${BRAND_BASE_DIR}/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/config/javasettings_$${_OS}_$${_ARCH}.xml' \
67 && echo
'URE_LIB_DIR=$(if $(filter WNT,$(OS)),$${.link:$${BRAND_BASE_DIR}/ure-link}/bin,$${BRAND_BASE_DIR}/ure-link/lib)' \
68 && echo
'URE_MORE_JAVA_TYPES=$$ORIGIN/classes/unoil.jar $$ORIGIN/classes/ScriptFramework.jar $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):PKG_UserUnoFile}:UNO_JAVA_CLASSPATH} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):PKG_SharedUnoFile}:UNO_JAVA_CLASSPATH} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):PKG_BundledUnoFile}:UNO_JAVA_CLASSPATH}' \
69 && echo
'URE_MORE_SERVICES=$${$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):PKG_UserUnoFile}:UNO_SERVICES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):PKG_SharedUnoFile}:UNO_SERVICES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):PKG_BundledUnoFile}:UNO_SERVICES} <$$ORIGIN/services>*' \
70 && echo
'URE_MORE_TYPES=<$$ORIGIN/types>* $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):PKG_UserUnoFile}:UNO_TYPES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):PKG_SharedUnoFile}:UNO_TYPES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,uno):PKG_BundledUnoFile}:UNO_TYPES}' \
73 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/ooenv
:
74 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
76 echo
'ulimit -c unlimited' && \
77 echo
'# debugging assistance' && \
78 echo
'export SAL_DISABLE_FLOATGRAB=1' && \
79 echo
'export G_SLICE=always-malloc' && \
80 echo
'export MALLOC_CHECK_=2' && \
81 echo
'export MALLOC_PERTURB_=153' && \
82 echo
'export OOO_DISABLE_RECOVERY=1' \
85 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,pythonloader.uno
) :
86 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
88 printf
'[Bootstrap]\n' && \
89 $(if
$(filter YES
,$(SYSTEM_PYTHON
)),, \
90 printf
'PYUNO_LOADER_PYTHONHOME=%s\n' \
91 $(if
$(ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
), \
92 '$$ORIGIN/../Frameworks/LibreOfficePython.framework', \
93 $(if
$(filter MACOSX
,$(OS
)), \
94 '$$ORIGIN/LibreOfficePython.framework', \
95 '$$ORIGIN/python-core-$(PYTHON_VERSION)')) &&) \
96 printf
'PYUNO_LOADER_PYTHONPATH=%s$$ORIGIN\n' \
97 $(if
$(filter YES
,$(SYSTEM_PYTHON
)), \
99 $(if
$(ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
), \
100 '$(foreach dir,/ /lib-dynload /lib-tk /site-packages,$(patsubst %/,%,$$ORIGIN/../Frameworks/LibreOfficePython.framework/Versions/Current/lib/python$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)$(dir))) ', \
101 $(if
$(filter MACOSX
,$(OS
)), \
102 '$(foreach dir,/ /lib-dynload /lib-tk /site-packages,$(patsubst %/,%,$$ORIGIN/LibreOfficePython.framework/Versions/Current/lib/python$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)$(dir))) ', \
103 $(if
$(filter WNTMSC
,$(OS
)$(COM
)), \
104 '$(foreach dir,/ /site-packages,$(patsubst %/,%,$$ORIGIN/python-core-$(PYTHON_VERSION)/lib$(dir))) ', \
105 '$(foreach dir,/ /lib-dynload /lib-tk /site-packages,$(patsubst %/,%,$$ORIGIN/python-core-$(PYTHON_VERSION)/lib$(dir))) ')))) \
108 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,redirect
) :
109 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
112 && echo
'URE_BOOTSTRAP=$${ORIGIN}/$(call gb_Helper_get_rcfile,fundamental)' \
115 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,setup
) :
116 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
119 && echo
'buildid=$(LIBO_VERSION_MAJOR)$(LIBO_VERSION_MINOR)$(LIBO_VERSION_MICRO)(Build:$(LIBO_VERSION_PATCH))' \
122 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,soffice
) :
123 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
126 && echo
'HideEula=1' \
128 && echo
'NativeProgress=false' \
129 && echo
'ProgressBarColor=128,128,128' \
130 && echo
'ProgressFrameColor=245,245,245' \
131 && echo
'ProgressPosition=72,189' \
132 && echo
'ProgressSize=409,8' \
133 && echo
'ProgressTextBaseline=170' \
134 && echo
'ProgressTextColor=255,255,255' \
135 && echo
'URE_BOOTSTRAP=$${ORIGIN}/$(call gb_Helper_get_rcfile,fundamental)' \
138 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,uno
) :
139 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
142 && echo
'PKG_BundledUnoFile=$$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/$(call gb_Helper_get_rcfile,uno)' \
143 && echo
'PKG_SharedUnoFile=$$SHARED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/$(call gb_Helper_get_rcfile,uno)' \
144 && echo
'PKG_UserUnoFile=$$UNO_USER_PACKAGES_CACHE/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/$(call gb_Helper_get_rcfile,uno)' \
145 && echo
'BAK_EXTENSIONS=$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/extensions/bak' \
146 && echo
'BUNDLED_EXTENSIONS=$$BRAND_BASE_DIR/$(LIBO_SHARE_FOLDER)/extensions' \
147 && echo
'BUNDLED_EXTENSIONS_USER=$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/extensions/bundled' \
148 && echo
'TMP_EXTENSIONS=$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/extensions/tmp' \
149 && echo
'SHARED_EXTENSIONS_USER=$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/extensions/shared' \
150 && echo
'UNO_SHARED_PACKAGES=$$BRAND_BASE_DIR/$(LIBO_SHARE_FOLDER)/uno_packages' \
151 && echo
'UNO_SHARED_PACKAGES_CACHE=$$UNO_SHARED_PACKAGES/cache' \
152 && echo
'UNO_USER_PACKAGES=$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/uno_packages' \
153 && echo
'UNO_USER_PACKAGES_CACHE=$$UNO_USER_PACKAGES/cache' \
156 .PHONY
: $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,version
)
157 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,version
) :
158 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
161 && echo
'AllLanguages=$(if $(gb_WITH_LANG),$(gb_WITH_LANG),en-US)' \
162 && echo
'BuildVersion=$(BUILD_VER_STRING)' \
163 && echo
'buildid=$(shell cd $(SRCDIR) && git log -1 --format=%H)' \
164 && echo
'ExtensionUpdateURL=http://updateexte.libreoffice.org/ExtensionUpdateService/check.Update' \
165 && echo
'ProductMajor=$(LIBO_VERSION_MAJOR)$(LIBO_VERSION_MINOR)$(LIBO_VERSION_MICRO)' \
166 && echo
'ProductMinor=$(LIBO_VERSION_PATCH)' \
167 && echo
'ReferenceOOoMajorMinor=3.4' \
168 && echo
'UpdateID=$(PRODUCTNAME)_$(LIBO_VERSION_MAJOR)_en-US' \
169 && echo
'UpdateURL=$(if $(ENABLE_ONLINE_UPDATE),http://update.libreoffice.org/check.php$(if $(filter-out WNT,$(OS)),?pkgfmt=$(PKGFORMAT)))' \
170 && echo
'UpdateUserAgent=<PRODUCT> ($${buildid}; $${_OS}; $${_ARCH}; BundledLanguages=$${AllLanguages})' \
171 && echo
'Vendor=$(OOO_VENDOR)' \
174 # vim: set noet sw=4 ts=4: