Commit graph

320 commits

Author SHA1 Message Date
Andras Timar
1fea2274fb Bump version to 23.05.5.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I54981e3b8ff71be9d47f5ce39ec435ea7a382ab3
2023-10-11 20:29:43 +02:00
Caolán McNamara
6f984b042a don't check for SIMD in mobile case
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ib4ec551bd3c3c662c0e39aa0df292920c7afac08
2023-09-25 16:55:04 +01:00
Michael Meeks
cce3767ba8 First cut SIMD wrappers / separation to accelerate RLE code.
Split it out as a C file, to avoid accidental C++ header inclusion,
and C is a cross-platform assembler anyway so a good match.

Change-Id: I6c042781713aecaf143b9663af8377659a7deaf1
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-09-25 16:55:04 +01:00
Andras Timar
0040ce2882 Bump version to 23.05.4.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic4709d3fa68e84262a3ab72faeb175159fb058e6
2023-09-19 21:57:02 +02:00
Andras Timar
baec3ff60d Bump version to 23.05.4.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I73457e8b34bca25a243788622554ecf0d3b83edd
2023-09-11 22:45:27 +02:00
Andras Timar
a719c0fd02 Bump version to 23.05.3.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8ef60145a559efdc62971370ae867c14b225a50b
2023-08-28 21:59:15 +02:00
Rash419
3ce8c1b224 feature_lock: fix unlock_image option not working
- regression from ec17f72fb5
- also removed the restriction to have "static" in unlock_image
  url

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ie4f1170fb6a12db5218fb28f21d78f88ebc61d56
2023-08-28 16:12:41 +05:30
Skyler Grey
de7d4335ff Fix failed starts when core is at a relative path
- Previously giving --with-lo-path as a relative path caused collabora
  online to crash with "component context fails to supply singleton"
  errors
- This patch uses readlink on the with-lo-path option, expanding it into
  its full canonical path
- I could probably have gotten away with realpath, but for consistency
  with --with-lokit-path I decided to use readlink -f

Change-Id: I16aacddbda9749451578fb7aded6c3c4e145ee26
Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
2023-08-21 13:48:21 +02:00
Ashod Nakashian
5e8707bce9 make: better clang detection
Change-Id: I979014429b0a09883d828acf5ba76105ac255632
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-08-03 08:40:20 +02:00
Ashod Nakashian
fbc4373ceb gcov: support cleaning coverage data and document
Change-Id: I9d309a9e551f2a110b71c773af10e65b60c07c9c
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-08-03 08:40:20 +02:00
Aron Budea
91c166d26a Bump version to 23.05.2.2
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Ib03fddb00af05eaec4711c0b623713a993a5d56b
2023-07-24 17:08:40 +02:00
Aron Budea
bfdac84db2 Bump version to 23.05.2.1
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I5716d9d6556f45185b7b78fa05277403855d0353
2023-07-20 13:32:00 +02:00
Skyler Grey
2ad2ac584b configure.ac: Fix missing space in test command
Omitting this space leads to the error "test: too many arguments"

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Id8a83d77adfb484dcc949a10b4b25f6ad81130f8
2023-06-30 21:04:34 +02:00
Andras Timar
970291c6bf Bump version to 23.05.1.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie6eb8f388d0724ef08a44e608d5c8c2265ce0f5e
2023-06-26 12:45:41 +02:00
Andras Timar
d0149b1426 Bump version to 23.05.1.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I39740fe9b1c30c0a56056435d58eabd3121698bf
2023-06-23 18:55:31 +02:00
Andras Timar
4ac8c8ee28 configure option to disable building unit tests
rational: building for release takes a lot of time and we
neither package, nor run (most of) these unit tests when
we make packages.
CI runs all of these tests before merging PRs, so risk is low,
if we do not run the few build-time unit tests when we package.

make -j12
--enable-tests (default): 3m 18s
--disable-test: 1m 9s
3x faster...

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4edd98af55748432e30c65c4c910e72c0221272a
2023-06-16 09:12:21 +02:00
Andras Timar
f23a49cd88 Bump version to 23.05.0.5
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icd47475c24b1820e8fe42491c5260d81adc8805d
2023-06-12 14:55:39 +02:00
Andras Timar
bbe0174588 Bump version to 22.05.0.4
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5b37d3112f76bc2f1c816b9b004615538b801ab2
2023-06-09 12:34:35 +02:00
Andras Timar
119f01aa85 Bump version to 23.05.0.3
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I77f80b885fa7c6b1d67a314186a11c25e1e652a0
2023-06-04 16:47:43 +02:00
Andras Timar
60ac4b0356 Bump version to 23.05.0.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I59b02ca562f0fb3618a18c308e34903da5a7b8fd
2023-05-25 09:22:03 +02:00
Andras Timar
a71f59c9cc Add possibility to define help root URL from brand package
Previously the help root URL was defined in coolkitconfig.xcu,
but it was inconvenient to change. Now we have this setting in
coolwsd.xml, therefore it can be changed more easily. For
example a brand package can disable the Help buttons on
dialogs by executing the following command in postinstall
script:
  coolconfig set help_url ""

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6d0bdd71ca908df3d2dd20bd321aff9e93896f52
2023-05-17 08:26:38 +02:00
Ashod Nakashian
c6dd263ab1 make: silence clang complaining of -pthread
The clang linker doesn't need -pthread and
warns of unknown command-line option.

This detects clang and forgoes the -pthread
flag to the linker.

Change-Id: I658cd887c567a5beeeae0e6e1b6d596231894c1b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-05-15 08:47:26 +01:00
Gökay Şatır
9d6296e4b3 Remove unused document signing code.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I30cf381d1fa282cf222ab5abc676374ab7eefb6c
2023-05-08 21:51:47 +03:00
Gökay Şatır
c9217176bb Update Cypress and make related changes.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ie896ea22b5591ea5e7d574f2436ece7a31da4c0c
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2023-05-05 07:07:14 +03:00
Bayram Çiçek
1a269be3ac use getrandom() instead of /dev/[u]random
- instead of using /dev/[u]random devices, use
getrandom() and/or getentropy() to make direct
system calls if sys/random.h is available.

- if getrandom() fails, we need to fall back
to "/dev/[u]random" approach.

Signed-off-by: Bayram Çiçek <bayram.cicek@libreoffice.org>
Change-Id: Ied37d72feabf005725b615b02854912809236bbc
2023-03-17 08:38:21 -04:00
Andras Timar
e158f33e96 Bump version to 23.05.0.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iccd099258d6bb6f965b145fcdad46bcae1da994b
2023-02-16 15:17:20 +01:00
Andras Timar
719ae9bf4f Bump version to 22.05.10.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I90710c1ea62d42741de59928342c9afbf3b5f13c
2023-02-01 00:14:09 +01:00
Tor Lillqvist
cee9bf493a Change hardcoded sample document name and verify that we get it
You now must pass --with-wasm-additional-files=<path> where path
contains a file called sample.docx.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I21e62feb6282833a5d60b31db26328eda63cdaea
2023-01-29 06:56:08 +02:00
Tor Lillqvist
68915535c1 Add --with-wasm-additional-files=<path>
Pass the absolute pathname to directory that contains a tree of additional
files you want to be available in the WASM in-memory file system. Relevant
only if you build for WASM with Emscripten, i.e. with
--host=wasm32-local-emscripten.

(This is not usable without my still uncommitted / unpushed WIP
hacking.)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I97a4651bed89bf35c50b009e04ddaa3e03aa8006
2023-01-28 19:50:37 +02:00
Andras Timar
142f83f8bc Bump version to 22.05.10.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8da3583a13c1745fda487d5673a8113f6a18c974
2023-01-20 11:21:18 +01:00
Gülşah Köse
ce5d6360e0 Show epub settings dailog on mobile view.
Merge downloadas-epub and exportepub actions to have same functionality
on desktop and mobile view. Now we can see setup dialog on mobile view.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Iebe05e65f331de6737be88288fac34244cfcde18
2023-01-19 09:54:51 +01:00
Tor Lillqvist
b248787bfa We do want to temporarily use the idea that a "WASM app" is a separate thing
Only once we have that working will we go back to having a COOL client
that on the fly can switch from a normal COOL server to using local
online and core code in WASM.

Note that the --with-wasm-fallback configure option now then
temporarily is a no-op, and the ENABLE_WASM_FALLBACK Automake
conditional and WASM_BUILDDIR Autoconf macro are not used anywhere.

Once we have something that barely works as a proof of concept, we can
go back to working towards what we really want.

(Yeah, yeah, I know that "temporary" solutions have a tendency to
become more permanent than you expect...)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I2f01acd418686e672fd9d2e12cbbd688b128dfa5
2023-01-15 19:46:37 +01:00
Tor Lillqvist
b66baf43fb Drop unused and bogus ENABLE_EMSCRIPTENAPP
In the C++ code we can check for __EMSCRIPTEN__ to know whether we are
being compiled for WASM. In JS and HTML there is no separate WASM or
Emscripten version, but the same code should be able to switch between
talking to a normal COOL server and talking to local WASM code running
in the browser.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: If87245aa26fb1b10f6da2e3894605a8ab2e0aced
2023-01-15 19:46:37 +01:00
Tor Lillqvist
ee157c0810 Clean up WASM-related stuff in configury and the cool HTML page
There is no "Emscripten app", but a COOL client that additionally can
fall back to using in-client WASM code instead of a COOL server.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I86517c6a8f6e0397f6c466278c7be19db001e6d8
2023-01-15 19:46:37 +01:00
Tor Lillqvist
e9720a2680 Add --with-wasm-fallback configure option
Use this when building an otherwise "normal" COOL to indicate that the
client will be able to fall back to a local WASM binary in the browser
containing the necessary core and online code.

The value of the option should be the folder where the corresponding
WASM build of COOL was done.

This commit only adds the option.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I1a8c3eb1518cadb12b4159af14f4dd9dfd95a5bd
2023-01-15 19:46:37 +01:00
Tor Lillqvist
8cc1c1baa5 Preparations for a "WASM app"
The WASM C++ bits (in wasm/wasmapp.cpp) will have to export functions
hande_cool_message(), handle_error_message(), and
handle_debug_message() to receive the calls from JS.

Change-Id: Ic7f2cffdeb4408a9f726ad70a8ceb8db372787dd
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2023-01-11 09:27:36 +02:00
Michael Stahl
fdea5cde94 WASM WIP link an executable
Use the newly introduced soffice.html.linkdeps from core to get the
recursive dependencies into the link command.

This currently fails due to some problem with POCO:
wasm-ld: error: --shared-memory is disallowed by AtomicCounter.o because it was not compiled with 'atomics' or 'bulk-memory' features.

Signed-off-by: Michael Stahl <michael.stahl@allotropia.de>
Change-Id: I76b0a2265f67e89f6992d556525f1263ad1b45db
2023-01-10 22:02:22 +02:00
Michael Stahl
160362e21a WASM configure: prevent libtool from adding -rpath to link command
Signed-off-by: Michael Stahl <michael.stahl@allotropia.de>
Change-Id: Ided8a2abd781b19275b6fe16f8f47e262fef0541
2023-01-10 22:02:22 +02:00
Michael Stahl
901ad84339 WASM add simple automake file and dummy cpp file
Copy the list of .cpp files from the Android project, assuming this will
be similar in scope.

Signed-off-by: Michael Stahl <michael.stahl@allotropia.de>
Change-Id: I57c7ad2f10d1867307ff4fcea3d0c650726d18d8
2023-01-09 15:21:37 +02:00
Michael Stahl
be552175a2 WASM configure: disable checks that look irrelevant for emscripten
Signed-off-by: Michael Stahl <michael.stahl@allotropia.de>
Change-Id: I9cab5f105f518e1901c46b46c31e411d3708341c
2023-01-09 15:21:37 +02:00
Andras Timar
6d1b392b7e Bump version to 22.05.9.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I75c82104da273c939279ead679ae708a6bf778d8
2022-12-17 20:49:10 +01:00
Andras Timar
2a9ba59eb9 Bump version to 22.05.9.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iefc36a0a4ddd53879047b1134f2aee937bbc7bca
2022-12-16 21:04:06 +01:00
Andras Timar
9407c98df4 Remove the 'Insert Bibliography Entry' feature
LibreOffice has its own solution to handle bibliography. It is outdated, and
reportedly everyone prefers Zotero or similar solutions. Moreover in Online
this feature does not work, because the bibliography database is a file in
the jail that is not retained, and because tunneled dialogs have serious UX
problems.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibf6195c0265c767b3acf94012ee3f82339cf34d3
2022-12-07 11:53:26 +01:00
Andras Timar
d17fb50487 enable link to non-system libpng and openssl
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I109242bde268e63e9918af0f44fcb456e2b8f6c5
2022-11-28 12:41:59 +01:00
Andras Timar
0b90a137f7 Bump version to 22.05.9.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I007ce044d5ab049d17cf15410ef78f5760adaeb0
2022-11-22 15:06:50 +01:00
Andras Timar
a4b9c7479d Bump version to 22.05.8.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I94b9c70859d68ca2b8bc2c4ad4f39d9a8653cdde
2022-11-08 11:16:28 +01:00
Andras Timar
de16f8aef6 Bump version to 22.05.8.1
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I0f1431215742cb64a2a4599b059118111b8b045b
2022-11-04 09:27:37 +01:00
Andras Timar
8561b98791 Fix build with libzstd on iOS
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idb94f5d359593e6098b7386ce0a9d33126d8ec2d
2022-11-02 12:09:53 +01:00
Michael Meeks
a8c449642e Android - add --with-zstd-includes and libs and build instructions.
Also reduce cut/paste in configure.ac around checking for files.

Change-Id: I33f789e99ed79f08cb9cfa5ed147b764332adfde
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-11-02 12:09:53 +01:00
Andras Timar
d6b12ab9eb Require libzstd >= 1.4.0
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia2235a89e53c51766b6f23b647d307a4059cccc6
2022-11-02 12:09:53 +01:00