Files
goo-engine/build_files/build_environment/cmake/wayland_weston.cmake
T
Brecht Van Lommel 7a395e2e7f Revert changes from main commits that were merged into blender-v4.1-release
The last good commit was f57e4c5b98.

After this one more fix was committed, this one is preserved as well:
67bd678887.
2024-03-18 15:04:12 +01:00

66 lines
1.8 KiB
CMake

# SPDX-FileCopyrightText: 2023 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
set(WAYLAND_WESTON_CONFIGURE_ENV ${CONFIGURE_ENV})
set(WAYLAND_WESTON_PKG_ENV "PKG_CONFIG_PATH=\
${LIBDIR}/wayland/lib64/pkgconfig:\
${LIBDIR}/wayland-protocols/share/pkgconfig:\
$PKG_CONFIG_PATH"
)
ExternalProject_Add(external_wayland_weston
URL file://${PACKAGE_DIR}/${WAYLAND_WESTON_FILE}
URL_HASH ${WAYLAND_WESTON_HASH_TYPE}=${WAYLAND_WESTON_HASH}
DOWNLOAD_DIR ${DOWNLOAD_DIR}
PREFIX ${BUILD_DIR}/wayland_weston
# Notes:
# - Disable nearly everything as only a simple headless server is needed for testing.
# - Keep X11 and WAYLAND back-ends enabled so it's possible
# to run the instance inside existing X11/WAYLAND sessions (for debugging).
CONFIGURE_COMMAND ${WAYLAND_WESTON_CONFIGURE_ENV} &&
${CMAKE_COMMAND} -E env ${WAYLAND_WESTON_PKG_ENV}
${MESON} setup
${MESON_BUILD_TYPE}
--prefix ${LIBDIR}/wayland_weston
--libdir lib
-Dbackend-default=headless # For tests.
-Dbackend-drm-screencast-vaapi=false
-Dbackend-drm=false
-Dbackend-pipewire=false
-Dbackend-rdp=false
-Dbackend-vnc=false
-Dcolor-management-lcms=false
-Ddemo-clients=false
-Ddoc=false
-Dimage-jpeg=false
-Dimage-webp=false
-Dpipewire=false
-Dremoting=false
-Dscreenshare=false
-Dshell-fullscreen=false
-Dshell-ivi=false
-Dshell-kiosk=false
-Dsimple-clients=
-Dsystemd=false
-Dtest-junit-xml=false
-Dtools=
-Dwcap-decode=false
-Dxwayland=false
${BUILD_DIR}/wayland_weston/src/external_wayland_weston-build
${BUILD_DIR}/wayland_weston/src/external_wayland_weston
BUILD_COMMAND ninja
INSTALL_COMMAND ninja install
INSTALL_DIR ${LIBDIR}/wayland_weston
)
add_dependencies(
external_wayland_weston
external_wayland_protocols
external_wayland
# Needed for `MESON`.
external_python_site_packages
)