office-gobmx/bin
Stephan Bergmann 3a445cb497 Turn onlineupdate into external/onlineupdate
...and update to latest Mozilla sources.

Originally, this was a non-external onlineupdate module (plus correspsonding
top-level include/onlineupdate/ directory) that apparently contained sources
originally copied from Mozilla and subsequently modified in-place (plus, mixed
in, presumably some sources that were not copied from Mozilla but were our own
inventions).  To clean up this mess, this has been turned into a proper
external/onlineupdate module with a tarball containing the pristine external
Mozilla sources.

The sources for the onlineupdate-c003be8b9727672e7d30972983b375f4c200233f.tar.xz
tarball are taken, somewhat arbitrarily, from a recent
<c003be8b97>
("Bug 1867784 - Force reflow all kids in the last column balancing reflow.
r=layout-reviewers,dholbert") trunk state, by running
`external/onlineupdate/generate-sources.sh ~/github.com/mozilla/gecko-dev` on a
Fedora 39 machine.

The layout of the tarball still mostly follows the old onlineupdate/ layout,
even if that deviates heavily from the actual source layout at
<https://github.com/mozilla/gecko-dev/>.  (And some files, which apparently are
not needed, anyway, lacked sources, see the "Missing source for" in
external/onlineupdate/generate-sources.sh.  And win_dirent.h/.cpp has meanwhile
been superseded by updateutils_win.h/.cpp.)  Merely newly included source files
are laid out in the tarball according to the actual source layout.

Any LO-specific modifications are made via patch files (rather than modifying
the sources inline, as was done in the past): external/onlineupdate/lo.patch
contains whatever modifications are needed to adapt the functionality, while
external/onlineupdate/gtk3deprecated.patch fixes

> workdir/UnpackedTarball/onlineupdate/onlineupdate/source/update/updater/progressui_gtk.cpp:97:21: error: use of undeclared identifier 'gtk_vbox_new'; did you mean 'gtk_box_new'?
>    97 |   GtkWidget* vbox = gtk_vbox_new(TRUE, 6);
>       |                     ^~~~~~~~~~~~
>       |                     gtk_box_new

to not use the deprecated gtk_vbox_new, which is hidden because we include
-DGTK_DISABLE_DEPRECATED in our GTK3_CFLAGS as per our configure.ac.

On Windows, the definition of __BYTE_ORDER__ etc. is needed because
workdir/UnpackedTarball/onlineupdate/include/mozilla/ says "Our supported
compilers provide architecture-independent macros for this", but MSVC doesn't
actually, so define here what would implicitly be defined by GCC.  Similarly, on
Windows -U_WIN32_WINNT is needed to undo -D_WIN32_WINNT=0x0601 in
solenv/gbuild/platform/windows.mk, which would cause

> workdir\UnpackedTarball\onlineupdate\include\mozilla/WinHeaderOnlyUtils.h(537): error C2065: 'FILE_ID_INFO': undeclared identifier

etc., despite the #include <windws.h> there.

Curiously, the original gb_CustomTarget_CustomTarget,onlineupdate/generated from
onlineupdate/CustomTarget_generated.mk had to be renamed to
gb_CustomTarget_CustomTarget,external/onlineupdate/generated when the file was
moved to external/onlineupdate/CustomTarget_generated.mk, as otherwise a
top-level `make CustomTarget_onlineupdate/generated` would have failed with "No
rule to make target..."  Also, as there is no gb_CustomTarget_use_unpacked, its
effect has been poorly mimicked for now in
external/onlineupdate/CustomTarget_generated.mk.

Similarly, as there is no gb_WinResTarget_use_unpacked, its effect has been
poorly mimicked for now in external/onlineupdate/WinResTarget_updater.mk.

The original onlineupdate/workben/test_dialog.cxx, which is actually code
written by us, has been moved to external/onlineupdate/workben/test_dialog.cxx.

The original onlineupdate/qa/ sources (which were apparently not used during the
build) have been preserved for now as external/onlineupdate/qa/, for
documentation purposes.

The original onlineupdate/astyle.options (which was apparently not used during
the build) has been removed.

Change-Id: I5ea606202e7837269e7b128e45af2f0b8c277f9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160492
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-15 11:27:49 +01:00
..
text_cat
update Split --with-update-config=... into many --with-online-update-mar-...=... 2023-12-12 20:43:57 +01:00
attachment_mimetypes.py
bash-completion.in
benchmark-document-loading
bffvalidator.sh.in
check-autocorr.py
check-elf-dynamic-objects
check-icon-sizes.py
check-implementer-notes.py
check-missing-export-asserts.py
check-missing-unittests.py check-missing-unittests: change to dump JSON 2023-09-14 18:00:59 +02:00
compare-crashreport-stats.py
convwatch.py
crashreportScraper.py crashreportScraper: Add ratio column 2023-09-05 16:53:44 +02:00
create-dmg-from-merged-app-bundle
distro-install-clean-up
distro-install-desktop-integration
distro-install-file-lists
distro-install-sdk
dump-poolitems-values.py
extract-tooltip.py
fake_pom.xml
find-can-be-private-symbols.classes.results
find-can-be-private-symbols.functions.results Make ConvertFieldsToText private 2023-10-21 14:53:53 +02:00
find-can-be-private-symbols.py
find-clang-format.py
find-duplicated-files.py
find-duplicated-sids.py
find-files-not-referenced-by-makefile.py update script to python3 2023-07-23 16:25:02 +02:00
find-german-comments Turn onlineupdate into external/onlineupdate 2023-12-15 11:27:49 +01:00
find-headers-to-move-inside-modules.py Turn onlineupdate into external/onlineupdate 2023-12-15 11:27:49 +01:00
find-mergedlib-can-be-private.classes.results
find-mergedlib-can-be-private.py
find-most-common-warn-messages.py
find-most-repeated-functions.py
find-undocumented-classes
find-unneeded-includes Drop o3tl::span, can use C++20 std::span directly now 2023-10-11 21:53:13 +02:00
find-unused-configkeys.sh find-unused-configkeys: check groups that are not used as templates 2023-11-24 16:00:34 +01:00
find-unused-data.sh
find-unused-defines.py
find-unused-sid-commands.py
find-unused-typedefs.py
find-unused-using.sh
find-unusedheaders.py
fixincludeguards.sh
flat-odf-cleanup.py flat-odf-cleanup.py: remove various drawing elements 2023-10-11 10:08:42 +02:00
fuzzfiles
gbuild-to-ide VS IDE integration: enable Python pretty printers when debugging a WSL build 2023-11-02 13:43:51 +01:00
gen-boost-headers
generate-bash-completion.py
get-bugzilla-attachments-by-mimetype
get-forum-attachments.py
get_config_variables
git-ps1
gla11y gla11y: Add link to a white paper describing the rationales of the tool 2023-10-22 16:33:02 +02:00
includebloat.awk
ios-mapfile-statistics
java-set-classpath.in
lint-ui.py
list-dispatch-commands.py list-dispatch-commands: do not ignore aliases 2023-10-25 12:02:33 +02:00
list-uitest.py
lo-all-static-libs
lo-commit-stat
lo-pack-sources
lo-xlate-lang
lolcat
merge-app-bundles
module-deps.pl
moveglobalheaders.sh
odfvalidator.sh.in
officeotron.sh.in
oss-fuzz-build.sh
oss-fuzz-setup.sh
parse-perfcheck.py
README.md
refcount_leak.py Use "set logging enabled on/off" instead of deprecated "set logging on/off" 2023-11-30 13:47:53 +01:00
removetooltip_markups.sh
rename-sw-abbreviations.sh
run Prepend instdir/program to the PATH in bin/run 2023-09-20 14:23:33 +02:00
sanitize-excludelist.txt
sanitize-image-links
striplanguagetags.sh
stubify.pl
symbolstore.py symbolstore: update to python3 2023-12-11 11:40:43 +01:00
symstore.sh
test-hid-vs-ui.py
ui-rules-enforcer.py
ui-translatable.sh
unpack-sources
update_pch
update_pch.sh
update_pch_autotune.sh
update_pch_bisect
upload_symbols.py upload_symbols: give some feedback 2023-12-05 09:45:27 +01:00
verify-custom-widgets-libs

Tools and Non-Build Scripts

Tools and scripts mostly not used during the build

This direction has a number of key pieces (?) that are used during the build, or are simply generally useful. One example is bin/run.

This utility can be used to run the executables in this folder:

workdir/LinkTarget/Executable

Format of the usage is:

./bin/run application [parameters]|--list|--help

Use --list (same as -list or -l) to get the list of executables Use --help (same as -help or -h) to get this help

Another example is:

bin/find-german-comments <directory>

which will try to detect and extract all the German comments in a given source code hierarchy / directory.

Please note that the associated issue tdf#39468 is now marked as RESOLVED/FIXED, so don't expect many German comments.