diff options
-rw-r--r-- | Repository.mk | 1 | ||||
-rw-r--r-- | desktop/Executable_soffice_safe.mk | 30 | ||||
-rw-r--r-- | desktop/Module_desktop.mk | 1 | ||||
-rw-r--r-- | desktop/win32/source/applauncher/soffice_safe.cxx | 14 |
4 files changed, 46 insertions, 0 deletions
diff --git a/Repository.mk b/Repository.mk index 17c585303187..e19cc40c9062 100644 --- a/Repository.mk +++ b/Repository.mk @@ -147,6 +147,7 @@ $(eval $(call gb_Helper_register_executables_for_install,OOO,brand, \ $(if $(filter WNT,$(OS)), \ soffice_exe \ soffice_com \ + soffice_safe \ unoinfo \ unopkg \ unopkg_com \ diff --git a/desktop/Executable_soffice_safe.mk b/desktop/Executable_soffice_safe.mk new file mode 100644 index 000000000000..aa1f6bc820b2 --- /dev/null +++ b/desktop/Executable_soffice_safe.mk @@ -0,0 +1,30 @@ +# -*- 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_Executable_Executable,soffice_safe)) + +$(eval $(call gb_Executable_set_targettype_gui,soffice_safe,YES)) + +$(eval $(call gb_Executable_add_ldflags,soffice_safe,\ + /ENTRY:wWinMainCRTStartup \ +)) + +$(eval $(call gb_Executable_use_static_libraries,soffice_safe,\ + winlauncher \ +)) + +$(eval $(call gb_Executable_add_exception_objects,soffice_safe,\ + desktop/win32/source/applauncher/soffice_safe \ +)) + +$(eval $(call gb_Executable_add_nativeres,soffice_safe,soffice/launcher)) + +$(eval $(call gb_Executable_add_default_nativeres,soffice_safe,$(PRODUCTNAME))) + +# vim: set ts=4 sw=4 et: diff --git a/desktop/Module_desktop.mk b/desktop/Module_desktop.mk index 34612712e6a0..1c8bdb5691b3 100644 --- a/desktop/Module_desktop.mk +++ b/desktop/Module_desktop.mk @@ -80,6 +80,7 @@ $(eval $(call gb_Module_add_targets,desktop,\ Executable_smath \ Executable_soffice_exe \ Executable_soffice_com \ + Executable_soffice_safe \ Executable_sweb \ Executable_swriter \ Executable_unoinfo \ diff --git a/desktop/win32/source/applauncher/soffice_safe.cxx b/desktop/win32/source/applauncher/soffice_safe.cxx new file mode 100644 index 000000000000..241a03b76496 --- /dev/null +++ b/desktop/win32/source/applauncher/soffice_safe.cxx @@ -0,0 +1,14 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * 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/. + */ + +#include "launcher.hxx" + +WCHAR APPLICATION_SWITCH[] = L"--safe-mode"; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |