summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-05-26This needs boost headers, tooprivate/jmux/wasm-for-masterThorsten Behrens
Change-Id: Id377453f0eec23b005cddda5ede35d1c9736d60e
2021-05-26HACK remove Library_cppunitmain to get this to buildThorsten Behrens
Change-Id: If48a4ee1450f8fb99d3de58c7194f657355b3a5d
2021-05-26Make SRCDIR != WORKDIR build againThorsten Behrens
autoconf.h is not necessarily placed in SRCDIR Change-Id: I792ff168b9642cac4173c27cbaf473af6ea168a2
2021-05-26Why not hardcode platform plugin preferencesThorsten Behrens
Change-Id: Ib8fc8564fb93a5cd9675ae8106a93c18ca9cee21
2021-05-25wasm strip: squashed patches from Armin + fixesArmin Le Grand (Allotropia)
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
2021-05-25wasm sript: drop none-Writer modulesJan-Marek Glogowski
Strips GUI and components of Basic, Calc, Draw, Math an Impress. Change-Id: I4495a148ad698e8deb38d22ae6e7c58df3270d79
2021-05-25wasm strip: add flags to configure.acJan-Marek Glogowski
Doesn't include VCLplug flags and it should work with gtk3 too. But normally you want to use: --disable-gtk3 --enable-qt5 Change-Id: Ifea5e5b1e63633ff1fa709cdeb49afdb43fa0e8b
2021-05-25gbuild: link static executablesJan-Marek Glogowski
See the (large) comment in solenv/gbuild/static.mk trying to explain, why this implementation was chosen (spoiler: seems there is no other way) and what is actually implemented. Yes, I also think it's borderline maintainable (like gbuild in general; complexity clashing with make "restrictions"). I which I had put that much time into a Meson build, or just had expanded the bin/lo-all-static-libs "concept"... Change-Id: Iafc95752fae9e88095f54a21f1e30a4f080815e2
2021-05-25gbuild: introduce plugin + loader conceptsJan-Marek Glogowski
This introduces two concepts: a plugin and its loader (library) LO currrently has dependency cycles for some libraries. There is scui, which depends on sc, while sc dlopen's scui. There are the various vclplug_*, i18npool plugins, filters/gie, acc, etc. Usually these plugins link to their loader library, because they use its symbols. But as a result there is no sensible way to express the runtime dependency of loaders on the plugins. In GNU libtool plugins are called modules and they are implemented in an IMHO more sensible way by allowing missing symbols at link time. This way you can have a dependency from the loader library to its plugins, as the plugins don't depend on the loader, but you lose the link time detection of missing symbols. While this is in theory possible in LO too, LO currently has plugins, like acc (accessibility), loaded by tk (toolkit), which depends on svt (svtools), which itself depends on tk, so dropping the tk dependency for acc on its own doesn't help :-( And while the dependency of the plugins on their loader is fine for the shared / DYNLOADING build, for the "static" builds you must (somehow) link the plugins into the executables. I also codeified a few rules into the build system along with it: * just plugins are allowed to depend / link other plugins * plugins aren't allowed to be linked into the merge lib * plugin loaders are "limited" to libraries At the high level, this is implemented via new gbuild calls: * gb_Library_set_plugin_for,lib,loader: declare a library to be a plugin of a loader library and add a dependeny from the plugin library to the loader library * gb_Library_set_plugin_for_nodep,lib,loader: ^^^^ without adding the library dependeny * gb_Helper_register_plugins_for_install: "plugin" replacement for gb_Helper_register_libraries_for_install to implement some additional checks in the build system In the end this patch just adds a bit syntactic sugar and nothing changes for any build. Change-Id: I7b01d9c384cbc5838bd2cc93aff18e4868939d6e
2021-05-25gbuild: create full services.rdb from buildJan-Marek Glogowski
Currently the build handles global build dependencies redundant in a few places: * in Repository*mk + modules - the "real" build dependencies * the full services.rdb generation * the static UNO constructor map generation As a result, the component files don't reflect the build components and the RDB services generation redefines the build dependencies. So this drops the latter two by generating the list of components and it's constructors from the build itself. As one of the main consequences, component files must now be split, so they reflect the real components in the libraries. This also adds a little convenience helper to add multiple component files: gb_Library_set_componentfiles Change-Id: I1b38a6f2c1e5221f18d7e5e756c30263b555d962
2021-05-24gbuild: implement gb_Library_get_target_for_buildJan-Marek Glogowski
I was wondering why removing instdir stuff forced a rebuild of the cross toolset. Turned out some cross-toolset bits were wrongly depending on host build stuff. It even had FIXME... As a consequence, gb_CPPU_ENV was replaced by config_host.mk flags to provide an CPPU_ENV_FOR_BUILD and also uses the correct OS_FOR_BUILD. Change-Id: I50e8e8dca50ab1ad3164948a585a792a52e4a39a
2021-05-24Fix --disable-scripting for DESKTOP buildJan-Marek Glogowski
Change-Id: I89938a17307a363f5de808200914940503312829
2021-05-24Fix --disable-avmedia for DESKTOP buildJan-Marek Glogowski
Probably additional bits can be removed, but this now passes. Change-Id: I366bec43cfd6fb02e914c85c711b3b19586d534d
2021-05-24Refactor module media item handlingJan-Marek Glogowski
Change-Id: I6f5db59bdcff7cad00a64e76f6aad7b8ecb4ffa9
2021-05-24Reorganize all DBCONNECTIVITY modulesJan-Marek Glogowski
Some DB modules didn't check for DBCONNECTIVITY, so this moves all of them into a common DBCONNECTIVITY block. Change-Id: I1cce3a1017f94d88c416a8a20606d295b52c7955
2021-05-24Distinguish between --disable-gui and --without-xJan-Marek Glogowski
For the static WASM build, we need to build with GUI but without X11, as this just includes a static Qt backend. We already have USING_X11, which indicates that the platform can use X11 as a backend, so we can match --without-x to USING_X11=no, independent from the --disable-gui setting. This also moves vclmain and glxtest handling into gb_Executable_* functions, as these need common checks, which were already broken for some cases, including $(DLOPEN_LIBS) for the vcl plugins. Change-Id: Ia2ddba3400b4306b609a1f64823cca75061e0593
2021-05-24Make sure Python is in build for the cross-toolsetJan-Marek Glogowski
Change-Id: I4c25f572cb942759990eaacb7ca261c78831ed40
2021-05-24gbuild: serialize dynamic link for static buildsJan-Marek Glogowski
This uses a the lockfile tool / liblockfile 1.17. Since it polls the file, I adjusted the poll timeout to 5s max, because I found the 60s wait much too long. Maybe even 1s would be ok... Since it's just a build tool, I simply copied the source, instead of creating an external project. Since it's just used for cross builds, even an external project wouldn't be a problem. Change-Id: I16bc4579a273dcf1aac811ae4723ca325a0b9eba
2021-05-24xmlsec: handle missing EqualDistinguishedNamesJan-Marek Glogowski
I didn't try to do a GPG only build, but the standard non-NSS build fails now because of missing a EqualDistinguishedNames, which is non-trivial to implement. This is the consequence of commit 1d3da3486d827dd5e7a3bf1c7a533f5aa9860e42 "xmlsecurity: add EqualDistinguishedNames()" and commit 5af5ea893bcb8a8eb472ac11133da10e5a604e66 "xmlsecurity: improve handling of multiple certificates per X509Data". One could also use OpenSSL i2d_X509_NAME and X509_NAME_cmp to program this function, but it looks like it requires some ANS.1 input to begin with (maybe i2s_ASN1_* can be used). Change-Id: I0600f76a5cb4379db428f67cb136b8567dfcc51e
2021-05-24Fix DISABLE_DYNLOADING unused variableJan-Marek Glogowski
Change-Id: Ie8305364971f324bd834ae6bec851637ca60b9e9
2021-05-24Don't ignore GCC warnings for static buildsJan-Marek Glogowski
Instead simply (and correctly) test the function pointers in the static build case. Change-Id: I01b3397f40671464b1d2cb472447d8530b996d21
2021-05-24Install GDB pretty printers into cross-toolsetJan-Marek Glogowski
Change-Id: Id42dd694514e104d03c649a19788b5c192ec35a4
2021-05-24configure: Improve help handlingJan-Marek Glogowski
To summerize my understanding of the help build: LO can build three kinds of help: XML (local), HTML (local) and HTML-online. Both local help variants can be included in help- packs, which might be bundeled with the installer or provided as separate packages. The HTML-online help is the external help provided by help.libreoffice.org, which can provide an additional, xapian-omega based, search mechanism. The XML help is build with additional index and formating using internal tools. The xmlhelp module is used to display the XML help. Both HTML-based help is shown in a browser. What this patch includes is: * Adds --enable-xmlhelp for removing the xmlhelp support from the build. Disable for iOS, Android and Emscripten. This was partly included in HAVE_FEATURE_DESKTOP before. * Rename WITH_HELP define to WITH_HELPPACKS, which reflects the actual usage AFAIK. * Depend --with-omindex on --with-help=online and don't override the --with-help setting. Error out on conflicting options. * Depend --with-helppack-integration on a build help variants, which actually result in help packs. Kind of reverts commit 2c38ea6d16b910294220cefaf8ae6a0683e6405a ("Building without --with-help is not supposed to disable help functionality"). Change-Id: Ie4cb73905b3ed94e991d9f1bd75cfbd6de9da385
2021-05-24configure: Replace tabs with spacesJan-Marek Glogowski
Change-Id: I417c734484481223f1779e0c555b4f3e16e10b23
2021-05-24configure: Remove kde5 compatibility optionJan-Marek Glogowski
Change-Id: Idce493e5f5ac045f7e977b4073152c2fe2668b56
2021-05-24configure: Add gen to VCLplugs outputJan-Marek Glogowski
And move all the output handling into a single place. Change-Id: Ia75440fc12a435b92239d7ec144be3d58e45d7d0
2021-05-24configure: OpenLDAP depends on NSSJan-Marek Glogowski
... at least in LO's internal build variant. Change-Id: I134d1ed3a0a9654e264ccc66cdbe993a355620cb
2021-05-24postgres: fix internal linking with WITH_GSSAPIJan-Marek Glogowski
Change-Id: If5a741cfe5863d0cad09463ba7e958ac0f3bb24d
2021-05-24gbuild: make pre_BuildTools.mk better readableJan-Marek Glogowski
Change-Id: I6c4e35fcfaf853c83f91b505e9b6308b844c37ca
2021-05-24adapt oglcanvas::SpriteDeviceHelper::getDeviceHandleCaolán McNamara
to match the other implementations that return the OutputDevice* I tried enabling SpriteCanvas.OGL in officecfg/registry/data/org/openoffice/Office/Canvas.xcu with <node oor:name="com.sun.star.rendering.SpriteCanvas" oor:op="replace"> <prop oor:name="PreferredImplementations" oor:type="oor:string-list"> <value oor:separator=",">com.sun.star.comp.rendering.SpriteCanvas.DX9, - com.sun.star.comp.rendering.SpriteCanvas.Cairo, + com.sun.star.comp.rendering.SpriteCanvas.OGL, com.sun.star.comp.rendering.SpriteCanvas.VCL but it crashes before it gets very far and before it gets to this method. I tried in 7.1 and 7.0 but the same result so I can't tell if this fix is needed, but they surely should be the same as the others. Change-Id: I4f3715568eb0ec3a3bc57f6e6bdf158ff530ca5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116061 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24Fix documentation of SfxItemPool ctrJulien Nabet
Change-Id: Ieead093b16c073e8b4b10d785c880287fa1994d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116056 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
2021-05-24gtk4: make opengl slide transitions work againCaolán McNamara
Change-Id: Id64d8759d1c98a973445f52ccfc5df9f0e084743 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116060 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: restore GtkFixed container for SalObjectsCaolán McNamara
put the DrawingArea into an Overlay so the overlay will take the size of the DrawingArea. Put a GtkFixed into that overlay which will then also mirror the size of the DrawingArea. Keep that GtkFixed because the SalObject stuff is set up to use a GtkFixed and its just easier to do it this way than use the overlay directly. Change-Id: I937b3740fd809660ee0edef56d5cf036f2503892 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116059 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk[3|4] separate the idea of a drawing widget and a container widgetCaolán McNamara
which were the same thing in gtk3, lets try an overlay for now as the gtk4 container Change-Id: Id368ddf5ef80a17453ea7fb5662b23897975d21e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116058 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk[3|4] add a queue_draw to avoid GtkFixed castCaolán McNamara
Change-Id: I093b62f9530b28ae932338163606e78fca5752d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116057 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24crash on launching opengl slide transitions under gtk3Caolán McNamara
since... commit 9090dc1f3b27195f5defd35586ac79357992be21 Date: Mon Jan 18 18:27:19 2021 +0200 split OutputDevice from Window note SpriteDeviceHelper::getDeviceHandle seems to return a vcl::Window and not an OutputDevice like the other ::getDeviceHandle so that probably needs changing too, or the others need to return the owner window. Change-Id: I84da379e680d3da5775855a16dc716decef22bbf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116052 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Jenkins
2021-05-24tdf#136794: sc_mathematical_functions: Add unittestXisco Fauli
Change-Id: I2254007a2746acc41fd7e51a9a2630f7009a85e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116043 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-05-24Update git submodulesRafael Lima
* Update helpcontent2 from branch 'master' to 67083387c1b82f17f7027ad53c9438766c0c41f3 - Python support in SF_Calc help page Change-Id: I0b7a83fdd49dd4cf5fb1682b193a61ceef5bbe55 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/115956 Tested-by: Jenkins Tested-by: Jean-Pierre Ledure <jp@ledure.be> Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-05-24Update git submodulesRafael Lima
* Update helpcontent2 from branch 'master' to ad23b45f6804a44ff768cb971ce34915de3df1da - Fix broken link in SF_String The IsIBAN link was incorrectly pointing to IsIPV4 Change-Id: Icd2cb3a5e0ca884afd3edbd3d2a721817d0817f9 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/115963 Tested-by: Jenkins Tested-by: Jean-Pierre Ledure <jp@ledure.be> Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-05-24ScriptForge - (scriptforge.py.SF_Basic): methods in alphabatical orderJean-Pierre Ledure
GetSystemTicks() and GetPathSeparator() are inverted Change-Id: I7e5c14041d6c70fe0a47519c93a24360ccc2d162 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116048 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-05-24tdf#137063: sc_ucalc: Add unittestXisco Fauli
Change-Id: Ib9025784aac5742976a0e23c5cd7d64154925ed4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116049 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-05-24fix leak in SfxTabDialogControllerNoel Grandin
Change-Id: I98a459d0b6173d367bbe596bcbf25501612ff032 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116051 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-05-24fix leak in dbaccessNoel Grandin
when loading form controls Change-Id: Ifa731ca1c7bc16579ce03d256691a50ccfbeb82b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116050 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-05-24gtk[3|4] wrap gtk_im_context_set_client_[widget|window] variantsCaolán McNamara
Change-Id: I939786e45929ca81dcda479d0fc897f449f890ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116046 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk[3|4] wrap surface_create_similar_surface variantsCaolán McNamara
Change-Id: Iaa101b1d691fa84693b350460a4c69a1f5aad245 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116045 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk[3|4] wrap gtk_widget_get_window/gtk_native_get_surfaceCaolán McNamara
Change-Id: I21c1cf9ab65e056242f09c8c2bbd84afa9ac42e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116044 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: get DrawingArea working enough for tip of the day dialogCaolán McNamara
Change-Id: Ifd2f4029b521d8f513f4fa738e4ce1e59c0ade0a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116042 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24gtk4: background colors have to be solid for themeingCaolán McNamara
Change-Id: I3a644c5674897ef6994d15ec0de614993d65d9d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116041 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-24tdf#142390: fix fatcross cursor on WindowsMike Kaganski
Make it 1-bit cursor resource instead of 32-bit icon; and add it to the appropriate makefile. Change-Id: Icd140f7065f6ec94683e94201d96187f38ab683b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115962 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-05-24fix leak in conditional formatNoel Grandin
Change-Id: If44615016ab22f4d9e57845c4b0c9fc90b6d91c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116032 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>