More closely matching Windows and easier to update. Pull Request: https://projects.blender.org/blender/blender/pulls/123196
67 lines
2.0 KiB
CMake
67 lines
2.0 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
|
|
)
|
|
|
|
harvest(external_wayland_weston wayland_weston/ wayland_weston/ "*")
|