Commit Graph
582 Commits
Author SHA1 Message Date
Ivan Vladimirovich Kuznetsov 56ef560f84 Android. Rename source module to app
According to documentation
https://developer.android.com/build/android-build-structure
the root module should be named "app".
So the source module was renamed.

Change-Id: I1d8e239ab2df54cc294aa7da0a9746a87952bb3c
2026-07-20 14:49:35 +02:00
Dan Williams 317062c546 Re-autogen on changes to macOS plist templates
Changing any of the Mac plist.in files that are part of
AC_CONFIG_FILES wouldn't automatically re-autogen and update the
generated non-in plists.

Change-Id: I135cb6d02a6996203f90221e361b0e826996486c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202263
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Tested-by: Jenkins
2026-03-31 14:49:27 +02:00
Xisco Fauli 7039373704 tdf#136822: Add VeraPDF as a PDF validator
For now, only validate those tests that are
conformant with the validator

verapdf-cli-1.29.0.jar has been generated using
https://github.com/veraPDF/veraPDF-apps/pull/415
and running 'mvn clean install'
Change-Id: Ic172100a120dc0f43f6de526660961d34dc6b415

Change-Id: Icacc8ccbd938f779b506fb5e1820f10a539ab77b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198556
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-20 08:31:47 +01:00
Miklos Vajna ea639ccd7b make distclean: don't remove Cargo.lock
It is no longer a generated file since commit
64510d3c8e (rust_uno : Cargo.lock must be
in the git repository, 2026-02-07).

Change-Id: I8cbfc2fdb69786bce8bbd69a3a99400cb1ca96b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199121
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2026-02-11 10:53:29 +01:00
Jan Holesovsky c48d2cff99 Check that the build starts with the right make version
Can be a problem on macOS - where the 'make' is version is too old for
gbuild.

Change-Id: I1039072a2c36b9f960467176118bce457732f0b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194560
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196845
Tested-by: Tor Lillqvist <tml@iki.fi>
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-01-09 14:29:57 +01:00
Stephan Bergmann 6d12a896d6 Clean the artifacts that rust_uno/CustomTarget_* put in $(SRCDIR)
This is a temporary measure.  The right fix will be to not have those
CustomTargets put anything into $(SRCDIR) in the first place.

Change-Id: Ib211b5bc5e0059c8c8206c044e28443265d69353
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194517
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Code-Style: Stephan Bergmann <stephan.bergmann@collabora.com>
2025-11-25 14:59:18 +01:00
Michael Weghorn ac43e55493 android: Drop non-working fullUI build variant
That build variant whose build could be triggered
e.g. by running

    ./gradlew assembleFullUIRelease

from `android/source` would fail to build for
a long time already, like this:

  /home/michi/development/git/libreoffice-WORKTREE-android/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java:189: error: cannot find symbol
          final boolean bEditingEnabled = BuildConfig.ALLOW_EDITING && preferences.getBoolean(LibreOfficeMainActivity.ENABLE_EXPERIMENTAL_PREFS_KEY, false);
                                                     ^
    symbol:   variable ALLOW_EDITING
    location: class BuildConfig

In addition, it would be the default variant
used by Android Studio, so in order to get
a working build, it was always necessary to
explicitly switch to another variant first
(using "Build" -> "Select build variant").

Drop it altogether, since it's unused.
(It would include all of the .ui files
in the APK while the other build variants
explicitly specify what files to include.)

Change-Id: I0a6096ec69897eb57f41c512e88a4c1a848480ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187623
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-07-11 07:08:47 +02:00
Christian Lohmaier 785024705d vim/vscode/compile_commands.json: add objective-c/cxx and c-files
and use the real compiler command instead of hardcoding "clang++"

Change-Id: I9126771a646de4648a9cf24ceda4b984f1634da8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187028
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-06-26 12:59:03 +02:00
Stephan Bergmann 6696e63b9f distclean generated sysui/desktop/macosx/LaunchConstraint.plist
...introduced with 22ab2bec71 "mac: add parent
launch-constraint to packaged framework/helpers"

Change-Id: I3305be40b6166586b23cb1c5976ef920af4f0ab1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186327
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-06-10 21:40:57 +02:00
Christian Lohmaier 878e48d92d depend on cross-toolset when for foo.allbuild and foo.allcheck targets
Change-Id: I9419c28174b00e207ce1773f695074055cf1905b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185033
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-05-08 15:52:42 +02:00
Stephan Bergmann 20b48ed9e3 Fix check-if-root for github.com/flathub-infra/vorarbeiter
Pushing PRs to <https://github.com/flathub/org.libreoffice.LibreOffice> used to
trigger test builds on <https://buildbot.flathub.org/#/>, but has apparently
changed recently to triggering test builds on some github actions based
infrastructure, which then failed our check-if-root (see e.g.,
<https://github.com/flathub/org.libreoffice.LibreOffice/pull/323#issuecomment-2829465141>),
because systemd-detect-virt is apparently not available in those containers.
But those containers apparently do have container=flatpak in their env, so add
back the check for that from e19b67dcf5 "allow
building as root inside a container without complaint" (which had been removed
by 1eb1836178 "use systemd-detect-virt to detect
building as root in container").

Change-Id: Ib3cc5911826644ddfb4a9b6afb0da653c0546a1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184614
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-04-25 13:09:52 +02:00
Christian Lohmaier b37d52696c changes to distro-config files also should trigger re-running autogen.sh
As otherwise if autogen.input contains a --with-distro-config=foo line
and if that distro-configs/foo.conf get changed, the build won't pick
up the changes unless autogen.sh is triggered manually, and that's not
what is intended/expected.

Change-Id: I81523572cedb953fff7cb69b8739fb1c76c9718a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181886
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-02-19 14:32:24 +01:00
Patrick Luby a53f44ce84 Set bundle identifier to match Mac App Store requirements
The Mac App Store expects the bundle identifier to be the application's
bundle identifier + "." + the extension name and the extension name
cannot have any period characters.

Change-Id: I8c2ee048dc52bec961e6d740edfd05cf3e11d631
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180257
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2025-02-14 20:13:28 +01:00
Christian Lohmaier 206ac992eb wsl-as-helper: avoid misdetecting builddir!=srcdir with long paths
when the user runs wsl.exe ./autogen.sh in a long path, the build
initially works OK, it will realize that the build is performed in the
source directory.
However if another run of wsl.exe ./autogen.sh is triggered by running
make (i.e. when configure.ac or some of the other files gets changed),
it was run with the shortened version of the path as the value for
SRCDIR, and comparing that with the pathname of the current directory
(which most likely was browsed to by using the long form) resulted in a
misdetection of the builddir != srcdir case, and autogen.sh did try to
create the necessary symlinks and <module>/Makefile and
external/*/Makefile files as if building in a separate build directory.
Especially the self-referencing symlink in the include dir then caused
some parts of the build (skia) to fail.

To avoid this problem, explicitly convert the path to its long-form.
This alone is not enough however to prevent the same issue occuring when
the user changed to the srcdir using the shortened form, then the
conversion would fail the same way (and while it is unlikely that the
user uses that path manually, launching a terminal via the
vscode-integration for example would also use the shortened form). So
also cd to the long form of BUILDDIR when running the automatically
triggered autogen.sh

Change-Id: I02c1ee7d302daa6062b6a049d924f40a49217e5c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180511
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2025-01-21 11:42:51 +01:00
Christian Lohmaier 16652e55f9 mac: don't try to strip Contents/Frameworks/intl directory
the intl data for firebird has been added with
07cc2fdc3d (and the associated config file
later moved to Resources with dfa78d2eac)

Change-Id: I4fe666076c42bae21b371fe0ea9495ebc915bd21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177617
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-12-01 19:30:36 +01:00
RMZeroFour e8a8d32fb3 .NET Bindings: Add DotnetTest class to gbuild
This commit adds the DotnetTest gbuild class to build a unit test
suite using the .NET SDK and the NUnit testing framework.

Also adds a DotnetTest target for the net_ure module, with unit tests
for the Any type, as well as some minor changes to the Any type that
came about when writing the test cases.

Change-Id: Idbc08ac8f0736dd7355092dd1e69a5f1b4137c4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168956
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-08-03 12:07:11 +02:00
RMZeroFour 6538b3b09c .NET Bindings: Add DotnetLibrary class to gbuild
This commit adds the DotnetLibrary gbuild class to build a .NET assembly
using the .NET SDK.

Also adds an option to enable or disable building .NET components with
--enable-dotnet (default) and --disable-dotnet to the autogen script.

Also adds a net_ure/ directory for the updated .NET bindings, currently
consisting of the net_basetypes library.

Change-Id: I9256387a2463ff8476deee85d886c6b3dce8257b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166380
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-06-12 18:48:07 +02:00
Christian Lohmaier 9ec0fa7ec3 use internal python for gbuild-to-ide on windows and python=fully-internal
env python3 likely won't work in that case

Change-Id: I1b24119af21db9db04c9fa6445e59cb328f39252
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167162
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-05-28 14:10:02 +02:00
Christian Lohmaier f5c3ec505b add --with-keep-awake switch to prevent going into sleep/suspend
if used defaults to Awake for Windows and caffeinate for macOS

Change-Id: I35f41bf1fb63af05ce2ec1a7f4d7b50b310536a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166743
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2024-04-26 23:10:22 +02:00
Christian Lohmaier 4c86718e78 initial support for running autogen.sh inside wsl from git-bash
Change-Id: I4272ea817a48880fd4206d6c73add7ccb8c4f6c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166335
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-04-26 14:01:26 +02:00
Stephan Bergmann 848d035d86 Remove unused make upload-update-info
Change-Id: Ifdec48aaf53b0444c2d7ceef554f64795e2f2c38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162172
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-01-16 19:50:58 +01:00
Michael Weghorn 8d268ed276 android: Remove generated resources in "clean" make targets
Since these are produced by the build, they should also
be removed in the "clean" target.

Without this, Jenkins CI builds for the upcoming

    Change-Id: Iddbe432519ab3040c83c0e977a584b51d3ef1e5b
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Dec 8 14:57:14 2023 +0100

        android: Make the build fail on new lint warnings

were seen failing, despite the example file no longer being
part of the generated resources since

    commit 1d7b1e2d40
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Wed Nov 15 13:16:26 2023 +0100

        android: Drop "More Info" item in "About" dialog

, but apparently the file was still lingering around
from previous builds.

Build failure/Lint error from CI build [1]:

    > Task :lintReportStrippedUIEditingDebug
    Wrote HTML report to file:///home/tdf/lode/jenkins/workspace/android_arm/android/source/build/reports/lint-results-strippedUIEditingDebug.html

    > Task :lintStrippedUIEditingDebug FAILED
    /home/tdf/lode/jenkins/workspace/android_arm/android/source/lint-baseline.xml: Information: 237 errors and 11 warnings were filtered out because they are listed in the baseline file, lint-baseline.xml
     [LintBaseline]
    /home/tdf/lode/jenkins/workspace/android_arm/android/source/res_generated/raw/example.odt: Error: The resource R.raw.example appears to be unused [UnusedResources]

       Explanation for issues of type "UnusedResources":
       Unused resources make applications larger and slow down builds.

       The unused resource check can ignore tests. If you want to include
       resources that are only referenced from tests, consider packaging them in a
       test source set instead.

       You can include test sources in the unused resource check by setting the
       system property lint.unused-resources.include-tests =true, and to exclude
       them (usually for performance reasons), use
       lint.unused-resources.exclude-tests =true.
       ,

    1 errors, 0 warnings (237 errors, 11 warnings filtered by baseline lint-baseline.xml)

    FAILURE: Build failed with an exception.

This could also be reproduced locally:

After a

    $ touch android/source/res_generated/example.odt

, the above error would on build, and neither `make clean`
nor `make android.clean` would remove the file and thus
fix the problem for subsequent builds.

Add removing the directory to the top-level and Android-specific
clean targets, so either of these commands now takes care of this.

[1] https://ci.libreoffice.org/job/gerrit_android_arm/33845/console

Change-Id: I91c83ce4ddb236d87d7c51f4dcce85e99aae0107
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160612
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-12-13 01:16:59 +01:00
Christian Lohmaier c0e82975c2 add fetch to dependencies of gbuildtojson / Rdb target
Change-Id: Icd3535a90fc0a13b1df8f412e8a1a50e9d5e5b08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150052
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2023-04-11 12:39:46 +02:00
Christian Lohmaier d117e3a45e create pocheck convenience target
it's usually run bypassing all the dependencies & make parsing using

LD_LIBRARY_PATH=instdir/program make cmd cmd='ALL_LANGS="$(ALL_LANGS)" workdir/LinkTarget/Executable/pocheck'

but it doesn't hurt to also have it as a dedicated target

Change-Id: I742373eb0e4d87ea22c80da0dcaaba7116cd2937
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144250
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-15 22:10:23 +00:00
Christian Lohmaier 183f5e38ee don't export the various language lists and consolidate them
this further frees the environment for Windows builders, to reduce the
risk of running into "environment is too large for exec" errors when
attempting to use xargs in a recipe.

Change-Id: I7e0b97163372018edb12329f24bb1dfafeefc526
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144235
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-15 21:07:37 +00:00
Caolán McNamara b057e97e91 use https instead of http
Change-Id: I41f48fd806d56f62d5e16d8f2530e63385eadddb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142025
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-01 14:14:45 +01:00
Andrea Gelmini 8507f63a7f Fix typos
Change-Id: Id7912ef0ac140688dea773143381de1cc1ed5ea1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141721
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-10-24 18:14:56 +02:00
Andrea Gelmini 0b665c5389 Fix typo
Change-Id: I71e47a53d31b4d5c7e5a4baf85d49b798602865b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141722
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-10-24 18:13:18 +02:00
Christian Lohmaier d5c11ddae9 build appstore packages with symbols/add targets to merge into universal build
while there is no builtin support to create a fat binary during the
actual build phase, we have a post-processing script that can merge two
separately built architectures into an universal binary one.
Thus enhance the makefile to support a more convenient way to build the
two archs without the need to manually move the package out of the way
to build the other arch.

1) assemble one architecture's package via
   "make mac-app-store-package.prepare"
2) make clean and change targets in autogen.input to build for the other
   architecture
3) build the other architecture and combine into universal binary and
   also package into the final deliverable via
   make mac-app-store-package.universal

(of course you can also use the .prepare target separately also in the
second build, and just mac-app-store-package will build the deliverable
for the current architecture like it did before)

Change-Id: I02c14e9b8c4f6e39d0d50cd3b4ffdd060b2d69bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141557
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-10-23 12:13:09 +02:00
Andrea Gelmini 5e4af7b91c Fix typos
Change-Id: Ifd133889ffdc372831ce753deaca847b46705a53
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141415
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-10-15 17:47:57 +02:00
Christian Lohmaier c461e9d7a0 add missing dependency for gbuild-to-json
while most of the integration targets are meant to have a nice debugging
environment, others like the vim-ide-integration or also the vscode one
seek to provide a nice editing experience with code completion and code
lookup.

Ideally you'd be able to have the integration available immediately and
can use the editor while a build is running in the background. But from
a fresh builddir make vim-ide-integration (vscode-ide-integration) fails
because of the missing dependency. That dependency probably is optional
for the purpose of just providing a editing environment as opposed to
providing build-targets like the integration does for some of the other
IDEs, so I consider this commit more of a "good enough" workaround for
the time being.

Change-Id: I586445fed849d416fde9804a1e2a9c6ee0ed50eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141248
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-10-14 13:42:42 +02:00
Thorsten Behrens 23118ce68a [COVER] add first set of ODF feature test files
For providing coverage data of features in the LibreOffice code base,
here's a set of files with orthogonal, high-level ODF features like
bold & italic text, an image, a table in several variants etc.

Use `make coverage` or `make sw.coverage` to generate coverage data
for the entire code base, or subsets thereof.

Change-Id: If27f720e8728788c421e16a3abbc1cf39521a2fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139765
Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-09-11 21:32:07 +02:00
Christian Lohmaier b43f0b0295 allow to specify a macOS provisioning profile
having one is one of the prerequisites of using TestFlight

Change-Id: I9e20eb99905071fade4179dfbe2da5b7e5dd1c24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136618
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-06-29 17:06:35 +02:00
Christian Lohmaier c78b49ec13 don't specify entitlements that are not used (sdremote w/o bluetooth)
the network.server entitlement is only needed when the sdremote is
enabled, and the bluetooth one only when the bluetooth part is built.
Also warn about bluetooth not being built because of obsoleted/removed
API. It was "silently" dropped before (lost in the flood of configure
output).

Change-Id: I38d83aa1132307b5b4b5d6dceba8f9020ffb2373
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136617
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-06-29 16:53:59 +02:00
Gabor Kelemen 079659eb7d Drop --with-iwyu option
Nowadays the bin/find-unneeded-includes script is a better
solution for this problem

This essentially reverts the commits:
c716b3888e
096c7e889f
40e7eecb7e

Change-Id: I404a4b34176efaacf961605559af9de6d6cba10a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133540
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-05-04 16:48:25 +02:00
xuenhua 37613bffe4 Fix for xcode-ide-integration
'make python3.all' was renamed to 'make python3.allcheck' (or use 'make python3.allbuild' to build without unit tests)

Change-Id: I5923382595deb952d3760a6173d40614e8ad5043
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133343
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-26 10:20:04 +02:00
Mike Kaganski 18742c27af Use relative path to the script, to please python3 on Windows
Running 'make vs-ide-integration' fails since some recent change
(no idea if that was a cygwin upgrade, or some change in core).
Using 'verbose=t', the last lines are

  make[1]: Leaving directory 'C:/lo/src/build'
  cd C:/lo/src/core &&  C:/lo/src/core/bin/gbuild-to-ide --ide vs --make C:/cygwin64/opt/lo/bin/make
  python3: can't open file '/cygdrive/c/lo/src/core/C:/lo/src/core/bin/gbuild-to-ide': [Errno 2] No such file or directory
  make: *** [Makefile:495: vs-ide-integration] Error 2

It looks like python3 gets called by shell with the script path as
given in the comand line, according to shebang in the script; but
cygwin's python3 can't parse Windows-style path to the script, and
treats it as relative path from cygwin's current directory.

Just use true relative path to the script, to avoid the problem. We
cd to $(SRCDIR) anyway.

Change-Id: Idc25cc74f7a23f0e5733f0d10044986888b43ba1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129930
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2022-02-15 16:34:54 +01:00
Yunusemre Şentürk b7aea47561 Remove interactivity of asking permission when make distclean
Change-Id: I8cce598b96b1339afeb40679375a2f0a60ca4d9c
Signed-off-by: Yunusemre Şentürk <yunusemre@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129719
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-02-10 08:46:00 +01:00
Jan-Marek Glogowski 4b8cef4f6e Add <module>.*all aliases to .all* and update help
And just echo a rename info for the 'all' target and exit with
an error, so people will actually adapt. 'all' had been modified
to run 'allbuild' in the original commit anyway. And since there
is no toplevel 'all' target, this just seems consequent.
And .PHONY the new targets.

Also advertise "make help" a bit more at the end of configure.

Follow-up on commit d6496fce2e
("split gbuild's <module>.all to <module>.allbuild or .allcheck").

Change-Id: Ia74020375f0a024dc67ea37ae4b18655af9df084
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128490
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2022-01-17 11:10:34 +01:00
Luboš Luňák d6496fce2e split gbuild's <module>.all to <module>.allbuild or .allcheck
This is similar to the removal of the 'all' target in the past.
Using 'make vcl.all' is supposed to build the vcl module and all
its dependencies, the problem is that it builds also tests, which
means not only building and running the tests but also their
dependencies too, so 'make vcl.all' may in fact also build Writer
because a unittest depends on something there.

So now <module>.allcheck is the new name for that, and newly
there's also the (IMO actually useful) <module>.allbuild .

Change-Id: I55baa014a657783e641cee67948ee8fb062b1982
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128349
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-01-13 10:12:57 +01:00
Jan-Marek Glogowski 37106f20bd oss-fuzz: convert to static cross-build
This way we can get rid of the pre-generated locale data and the
special fuzzers target, which invokes a full gbuild make for
every prereqisite, always parsing the whole tree, taking ages.

This also reverts:
- commit d0780b21cf ("fix oss-fuzz
  build") by adding epubgen and revenge dependencies.
- commit ff25d6a123 ("ofz#41602 fix
  more build failure"), which shouldn't happen anymore since
  commit d47628f287 ("don't want to
  link to system static libs for DISABLE_DYNLOADING")

Change-Id: I3aed9ec62da507254b42e4e7470bae1097b4bc8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127031
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-12-25 17:05:08 +01:00
Jan-Marek Glogowski 69b6c87eca autogen.sh is actually in $(SRCDIR)
Change-Id: I9c58294fb607683929d370a5f2707901e2a88548
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127421
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-12-24 18:20:46 +01:00
Jan-Marek Glogowski 6bed8aa446 Re-run autogen.sh on m4 macro change
Change-Id: I8cd1203bcdf1b98bb34c0fd1ec38ad3f6af0eaed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127422
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-12-24 18:20:01 +01:00
Christian Lohmaier 8d7e266943 provide a "make vscode-ide-integration" target
to be consistent with the other ide integrations and to take care of the
extra step of running "make vim-ide-integration" to create the
compile_commands.json file required by the vscode integration.
Not using the autogenerated file created by configure directly might
also spare some users from having their own additions overridden

Change-Id: Ibb269197dc84f607b28ddad03adc919864e0c040
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126860
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2021-12-21 13:25:34 +01:00
Jan-Marek Glogowski ce827c541d Implement building ComponentTarget directly
I have no idea, why this was omitted; probably just an oversight.
While a path as the target specifier looks strange to me, e.g.
ids like ComponentTarget_svx/util/svx, they work as expected.

Change-Id: I6dd4d382dddb8ad67cdd397db3b1c985c14cd948
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127023
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-12-18 12:56:51 +01:00
Jan-Marek Glogowski f7da3a4ba0 Respect verbose setting for module-deps.pl calls
Can't use $(gb_VERBOSE), as this runs pre-gbuild.

Change-Id: I7343ede538a246d54f3ce9fcaf104dfbdea08653
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126729
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-12-13 16:49:15 +01:00
Thorsten Behrens 243c05ac27 Retire build-nocheck
Build target was kept for backward compat in 'rework the default make
target', so lets retire it after 1.5 years.

Use 'make build' instead (which is since the default target anyway).

Change-Id: I93d5237dce2abf2536a4d847d79d33d5b6d6cec9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126362
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-12-06 20:54:26 +01:00
Caolán McNamara 30f41d99af ofz#41602 fix more build failure
since...

commit f9e79a91f1
Date:   Tue May 18 01:11:41 2021 +0200

    Fix --disable-avmedia for DESKTOP build

Change-Id: I31404c1a4c2ba71fb47388d87b59ecbee87ff603
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126324
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-12-03 17:28:50 +01:00
Caolán McNamara 566b086ae0 ofz#41602 Build-Failure
can't use the internal Executable_lockfile because it needs itself to
link

Change-Id: I51e3a910bedc038bb6776cd67d16ea706fbc071f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126285
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-12-03 11:20:21 +01:00
Stephan Bergmann 74895bf558 distclean generated solenv/lockfile/autoconf.h
...introduced with e050b09c7e "gbuild: serialize
dynamic link for static builds"

Change-Id: I31410cfe2291d51a860d33fed1861eb933bbb10e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126264
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-12-03 08:05:33 +01:00