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 $(call gb_Helper_get_rcfile
,louno
) \
16 $(if
$(filter DESKTOP
,$(BUILD_TYPE
)),$(if
$(filter-out MACOSX
,$(OS
)), \
17 $(call gb_Helper_get_rcfile
,redirect
))) \
18 $(call gb_Helper_get_rcfile
,setup
) \
19 $(call gb_Helper_get_rcfile
,soffice
) \
20 $(call gb_Helper_get_rcfile
,uno
) \
21 $(call gb_Helper_get_rcfile
,version
) \
24 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,bootstrap
) \
25 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,fundamental
) \
26 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,louno
) \
27 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,redirect
) \
28 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,setup
) \
29 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,soffice
) \
30 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,uno
) \
31 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,version
) \
32 : $(SRCDIR
)/instsetoo_native
/CustomTarget_setup.mk
34 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,bootstrap
) :
35 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
37 echo
'[ErrorReport]' \
38 && echo
'ErrorReportPort=80' \
39 && echo
'ErrorReportServer=report.libreoffice.org' \
40 && echo
'[Bootstrap]' \
41 && echo
'InstallMode=<installmode>' \
42 && echo
'ProductKey=$(PRODUCTNAME) $(PRODUCTVERSION)' \
43 $(if
$(ENABLE_RELEASE_BUILD
),\
44 && echo
'UserInstallation=$$SYSUSERCONFIG/$(if $(filter-out MACOSX WNT,$(OS)),$(shell echo $(PRODUCTNAME) | tr "[:upper:]" "[:lower:]"),$(PRODUCTNAME))/4', \
45 && echo
'UserInstallation=$$ORIGIN/..') \
48 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,fundamental
) :
49 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
52 && echo
'BRAND_BASE_DIR=$${ORIGIN}/..' \
53 && echo
'BRAND_INI_DIR=$${ORIGIN}' \
54 && echo
'BRAND_SHARE_SUBDIR=$(LIBO_SHARE_FOLDER)' \
55 && echo
'CONFIGURATION_LAYERS=xcsxcu:$${BRAND_BASE_DIR}/$(LIBO_SHARE_FOLDER)/registry res:$${BRAND_BASE_DIR}/$(LIBO_SHARE_FOLDER)/registry $(if $(ENABLE_DCONF),dconf:* )$(if $(filter WNT,$(OS)),winreg:LOCAL_MACHINE )bundledext:$${$${BRAND_BASE_DIR}/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,louno):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,louno):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,louno):UNO_USER_PACKAGES_CACHE}/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/configmgr.ini $(if $(filter WNT,$(OS)),winreg:CURRENT_USER )user:!$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/registrymodifications.xcu' \
56 && echo
'LO_JAVA_DIR=$${BRAND_BASE_DIR}/$(LIBO_SHARE_JAVA_FOLDER)' \
57 && echo
'LO_LIB_DIR=$${BRAND_BASE_DIR}/$(LIBO_LIB_FOLDER)' \
58 && echo
'BAK_EXTENSIONS=$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):TMP_EXTENSIONS}' \
59 && echo
'BUNDLED_EXTENSIONS=$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):BUNDLED_EXTENSIONS}' \
60 && echo
'BUNDLED_EXTENSIONS_USER=$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):BUNDLED_EXTENSIONS_USER}' \
61 && echo
'SHARED_EXTENSIONS_USER=$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):SHARED_EXTENSIONS_USER}' \
62 && echo
'UNO_SHARED_PACKAGES_CACHE=$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):UNO_SHARED_PACKAGES_CACHE}' \
63 && echo
'TMP_EXTENSIONS=$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):TMP_EXTENSIONS}' \
64 && echo
'UNO_USER_PACKAGES_CACHE=$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):UNO_USER_PACKAGES_CACHE}' \
65 && echo
'URE_BIN_DIR=$${BRAND_BASE_DIR}/$(LIBO_URE_BIN_FOLDER)' \
66 && echo
'URE_MORE_JAVA_CLASSPATH_URLS=$(if $(SYSTEM_HSQLDB),$(HSQLDB_JAR))' \
67 && echo
'URE_OVERRIDE_JAVA_JFW_SHARED_DATA=$${BRAND_BASE_DIR}/$(LIBO_SHARE_FOLDER)/config/javasettings_$${_OS}_$${_ARCH}.xml' \
68 && 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' \
69 && echo
'URE_MORE_JAVA_TYPES=$${BRAND_BASE_DIR}/$(LIBO_SHARE_JAVA_FOLDER)/unoil.jar $${BRAND_BASE_DIR}/$(LIBO_SHARE_JAVA_FOLDER)/ScriptFramework.jar $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_UserUnoFile}:UNO_JAVA_CLASSPATH} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_SharedUnoFile}:UNO_JAVA_CLASSPATH} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_BundledUnoFile}:UNO_JAVA_CLASSPATH}' \
70 && echo
'URE_MORE_SERVICES=$${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_UserUnoFile}:UNO_SERVICES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_SharedUnoFile}:UNO_SERVICES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_BundledUnoFile}:UNO_SERVICES} <$$ORIGIN/services>*' \
71 && echo
'URE_MORE_TYPES=<$$ORIGIN/types>* $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_UserUnoFile}:UNO_TYPES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_SharedUnoFile}:UNO_TYPES} $${$${$$ORIGIN/$(call gb_Helper_get_rcfile,louno):PKG_BundledUnoFile}:UNO_TYPES}' \
74 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,louno
) :
75 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
78 && echo
'PKG_BundledUnoFile=$$BUNDLED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/$(call gb_Helper_get_rcfile,uno)' \
79 && echo
'PKG_SharedUnoFile=$$SHARED_EXTENSIONS_USER/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/$(call gb_Helper_get_rcfile,uno)' \
80 && echo
'PKG_UserUnoFile=$$UNO_USER_PACKAGES_CACHE/registry/com.sun.star.comp.deployment.component.PackageRegistryBackend/$(call gb_Helper_get_rcfile,uno)' \
81 && echo
'BAK_EXTENSIONS=$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/extensions/bak' \
82 && echo
'BUNDLED_EXTENSIONS=$$BRAND_BASE_DIR/$(LIBO_SHARE_FOLDER)/extensions' \
83 && echo
'BUNDLED_EXTENSIONS_USER=$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/extensions/bundled' \
84 && echo
'TMP_EXTENSIONS=$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/extensions/tmp' \
85 && echo
'SHARED_EXTENSIONS_USER=$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/extensions/shared' \
86 && echo
'UNO_SHARED_PACKAGES=$$BRAND_BASE_DIR/$(LIBO_SHARE_FOLDER)/uno_packages' \
87 && echo
'UNO_SHARED_PACKAGES_CACHE=$$UNO_SHARED_PACKAGES/cache' \
88 && echo
'UNO_USER_PACKAGES=$${$$BRAND_BASE_DIR/$(LIBO_ETC_FOLDER)/$(call gb_Helper_get_rcfile,bootstrap):UserInstallation}/user/uno_packages' \
89 && echo
'UNO_USER_PACKAGES_CACHE=$$UNO_USER_PACKAGES/cache' \
92 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,redirect
) :
93 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
96 && echo
'URE_BOOTSTRAP=$${ORIGIN}/$(call gb_Helper_get_rcfile,fundamental)' \
99 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,setup
) :
100 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
103 && echo
'buildid=$(shell cd $(SRCDIR) && git log -1 --format=%H)' \
106 # for release-builds (building installers) adjust values in openoffice.lst.in
107 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,soffice
) :
108 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
111 && echo
'HideEula=1' \
113 && echo
'NativeProgress=false' \
114 && echo
'ProgressBarColor=0,0,0' \
115 && echo
'ProgressFrameColor=102,102,102' \
116 && echo
'ProgressPosition=35,153' \
117 && echo
'ProgressSize=444,8' \
118 && echo
'ProgressTextBaseline=145' \
119 && echo
'ProgressTextColor=255,255,255' \
120 && echo
'URE_BOOTSTRAP=$${ORIGIN}/$(call gb_Helper_get_rcfile,fundamental)' \
123 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,uno
) :
124 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
127 && echo
'URE_INTERNAL_LIB_DIR=$${ORIGIN}$(if $(filter MACOSX,$(OS)),/../../../Frameworks)' \
128 && echo
'URE_INTERNAL_JAVA_DIR=$(if $(filter MACOSX,$(OS)),$${ORIGIN}/../../java,$${ORIGIN}/classes)' \
129 && echo
'URE_INTERNAL_JAVA_CLASSPATH=$${URE_MORE_JAVA_TYPES}' \
130 && echo
'UNO_TYPES=$(if $(filter MACOSX,$(OS)),$${ORIGIN}/../share/misc/,$${ORIGIN}/)types.rdb $${URE_MORE_TYPES}' \
131 && echo
'UNO_SERVICES=$(if $(filter MACOSX,$(OS)),$${ORIGIN}/../share/misc/,$${ORIGIN}/)services.rdb $${URE_MORE_SERVICES}' \
134 .PHONY
: $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,version
)
135 $(call gb_CustomTarget_get_workdir
,instsetoo_native
/setup
)/$(call gb_Helper_get_rcfile
,version
) :
136 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
139 && echo
'AllLanguages=$(if $(gb_WITH_LANG),$(gb_WITH_LANG),en-US)' \
140 && echo
'BuildVersion=$(BUILD_VER_STRING)' \
141 && echo
'buildid=$(shell cd $(SRCDIR) && git log -1 --format=%H)' \
142 && echo
'ExtensionUpdateURL=http://updateexte.libreoffice.org/ExtensionUpdateService/check.Update' \
143 && echo
'ReferenceOOoMajorMinor=4.1' \
144 && echo
'UpdateID=$(PRODUCTNAME)_$(LIBO_VERSION_MAJOR)_en-US' \
145 && echo
'UpdateURL=$(if $(ENABLE_ONLINE_UPDATE),http://update.libreoffice.org/check.php$(if $(filter-out WNT,$(OS)),?pkgfmt=$(PKGFORMAT)))' \
146 && echo
'UpdateUserAgent=<PRODUCT> ($${buildid}; $${_OS}; $${_ARCH}; <OPTIONAL_OS_HW_DATA>)' \
147 && echo
'Vendor=$(OOO_VENDOR)' \
150 # vim: set noet sw=4 ts=4: