summaryrefslogtreecommitdiffstats
path: root/desktop/source/app/cmdlineargs.cxx
diff options
context:
space:
mode:
authorArmin Le Grand (Allotropia) <Armin.Le.Grand@me.com>2021-04-30 17:26:41 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2021-05-27 09:55:01 +0200
commit3526905a6245dfc6d2d5103eded6e20d1ed3e2a6 (patch)
tree912d3e5b8f1ea72eeac8037a4ad4acec73332e52 /desktop/source/app/cmdlineargs.cxx
parentwasm sript: drop none-Writer modules (diff)
downloadcore-3526905a6245dfc6d2d5103eded6e20d1ed3e2a6.tar.gz
core-3526905a6245dfc6d2d5103eded6e20d1ed3e2a6.zip
wasm strip: squashed patches from Armin + fixes
In addition to the squashed patches, this patch * drops the global compiler defines in favour of a config header file, for better ccache usage * revers almost all header changes in favour for empty function calls (just keeĆ¼s the premultiply table drop) * some additional changes for unused function calls * adapts more component files, so building the services.db and the component_mao.cxx from the build still works Currently crashs with anything different then soffice --writer. Closing the document also crashes. fac2aeca4010 Wasm optional premultiply table replace ec9e2c81b4ec Wasm remove hunspell/hyphen optionally 302a6f6f777a Wasm LanguageGuess optional removal 55404a55984c Wasm oprtional autorecovery remove additions 640d53e1e7c1 Wasm optional EPUB removal 4a09f57c132c Wasm strip: remove UcpHelp eeebc1383df7 Wasm optional accessibility removal b95eaa630273 Additions/corrections to dbaccess wasm removal d8c11d72aa5a Wasm: Removed dbaccess optional f7d462b61c08 WASM Removal of clucene a1c508fc1c41 Stripped canvas/cppcanvas and related ebfb45f46319 Use more expressive ENABLE_WASM_STRIP markers a3519b1a41c8 Disable wpftcalc for wasm reduction fa86c5bc36f7 Chart wasm optional removal 90d9a8dee35a BackingWindow (RecentDocsView) optional removal 68e5f972b1a6 Deeper TipOfTheDay optional removal 4ed18d09ce07 Optional removal of more startup-modules ab8d809b6ab7 Remove RecoveryCore f82517838840 Remove RecoveryUI, correct spl stuff f38dca150d58 SplashScreen and Startup Not included: 10963e79ac7d Wasm optional reduce created locales Change-Id: Ib9c0f9452815910c0a2aceaf142ba1ad4a9cb0d7
Diffstat (limited to 'desktop/source/app/cmdlineargs.cxx')
-rw-r--r--desktop/source/app/cmdlineargs.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
index 4d5a3bb78396..6c64502e9d38 100644
--- a/desktop/source/app/cmdlineargs.cxx
+++ b/desktop/source/app/cmdlineargs.cxx
@@ -275,6 +275,26 @@ CommandLineArgs::CommandLineArgs( Supplier& supplier )
void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
{
+#ifdef ENABLE_WASM_STRIP
+ // use hard-coded init-params for wasm '-nolockcheck -norestore -nologo -writer'
+ // no restore tries
+ m_norestore = true;
+ // no logo needed
+ m_nologo = true;
+#if HAVE_FEATURE_MULTIUSER_ENVIRONMENT
+ // no lock-checks needed
+ m_nolockcheck = true;
+#endif
+ // start with writer only
+ m_writer = true;
+ m_bDocumentArgs = true;
+
+ m_bEmpty = false;
+
+ // return to avoid #elif
+ return;
+#endif
+
m_cwdUrl = supplier.getCwdUrl();
CommandLineEvent eCurrentEvent = CommandLineEvent::Open;