[Libreoffice-commits] core.git: desktop/Executable_soffice_safe.mk desktop/Module_desktop.mk desktop/win32 Repository.mk

Vasily Melenchuk (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 13 08:53:52 UTC 2020


 Repository.mk                                     |    1 
 desktop/Executable_soffice_safe.mk                |   30 ++++++++++++++++++++++
 desktop/Module_desktop.mk                         |    1 
 desktop/win32/source/applauncher/soffice_safe.cxx |   14 ++++++++++
 4 files changed, 46 insertions(+)

New commits:
commit d7ffeae2dd588a891d0aef5dd136f394a55200c0
Author:     Vasily Melenchuk <vasily.melenchuk at cib.de>
AuthorDate: Wed Jul 8 17:47:41 2020 +0300
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Mon Jul 13 10:53:12 2020 +0200

    desktop: separate executable shortcut for safe-mode
    
    In situations when no command line params are available (for
    example in Windows Store msix packages they are still missing)
    let's try to use another executable shortcut for soffice
    
    Change-Id: I6d083912dbed1166d2d68efa5eb0096b73cb58c0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98382
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

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: */


More information about the Libreoffice-commits mailing list