Files
Michael Weghorn 057f491458 tdf#170932 Allow building win vcl plugin alongside --enable-headless
commit 430f603c6a
    Author: Tor Lillqvist <tml@collabora.com>
    Date:   Tue Feb 25 19:52:15 2025 +0200

        Make --enable-headless possible also on Windows, for CODA-W

        [...]

        In the --enable-headless case, freetype, fontconfig and cairo are
        built. For now, cairo is built as a Library (DLL), but fontconfig and
        freetype as StaticLibrary. Possibly should change these to DLLs,
        too. (See preceding commits.) Do not build the vclplug_win.

had introduced support for --enable-headless on
Windows.

As described in the commit message, using the
--enable-headless autogen switch would result in vclplug_win
(i.e. the VCL plugin that provides the UI on Windows)
automatically getting disabled unconditionally.

As described in tdf#170932, this e.g. prevents using
headless mode for document conversion while still
allowing to start LO with a UI with the same build.

Separate the two features:
No longer disable vclplug_win automatically anymore when
--enable-headless is used.
Instead, introduce a new separate --disable-win
autogen switch to explicitly disable the win vcl plugin
(similar to other existing autogen params like
--disable-gtk3 to disable the gtk3 VCL plugin on Linux).

Add that new --disable-win switch to the
CODAWindows distro config, to achieve the original
goal of both enabling headless and disabling vclplug_win
for that build configuration.

Change-Id: I54bc34981327244aa1c8b0aa5b6277ffd1fb4531
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202043
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-03-19 12:45:03 +01:00

39 lines
647 B
C

/*
Settings about which desktops have support enabled.
*/
#ifndef CONFIG_VCLPLUG_H
#define CONFIG_VCLPLUG_H
/**
* Set, if the platform uses X11 code.
*/
#define USING_X11 0
/**
* Set the enabled platform plugins
*/
#define ENABLE_GEN 0
#define ENABLE_GTK3 0
#define ENABLE_GTK3_KDE5 0
#define ENABLE_HEADLESS 0
#define ENABLE_KF5 0
#define ENABLE_KF6 0
#define ENABLE_QT5 0
#define ENABLE_QT6 0
#define ENABLE_WIN 0
/**
* Additional settings for the plugins
*/
#define USE_HEADLESS_CODE 0
#define ENABLE_GSTREAMER_1_0 0
#define ENABLE_QT6_MULTIMEDIA 0
#define QT5_HAVE_GOBJECT 0
#define QT5_USING_X11 0
#define QT6_USING_X11 0
#endif