debian/{control,rules}: Don't build the wayland part of FreeRDP on non-Linux systems.

This commit is contained in:
Mike Gabriel 2017-10-21 22:17:00 +02:00
parent db713bef31
commit 16eeb83b1f
2 changed files with 12 additions and 5 deletions

8
debian/control vendored
View File

@ -41,7 +41,7 @@ Build-Depends:
uuid-dev,
libgstreamer1.0-dev,
libgstreamer-plugins-base1.0-dev,
libwayland-dev,
libwayland-dev [linux-any],
libxkbcommon-dev
Standards-Version: 4.0.0
Homepage: http://www.freerdp.com/
@ -249,7 +249,7 @@ Description: FreeRDP x11 shadowing server
share an already started X11 DISPLAY.
Package: libuwac0-0
Architecture: any
Architecture: linux-any
Section: libs
Pre-Depends: ${misc:Pre-Depends}
Depends: ${misc:Depends}, ${shlibs:Depends}
@ -264,7 +264,7 @@ Description: Using wayland as a client library
Package: libuwac0-dev
Section: libdevel
Architecture: any
Architecture: linux-any
Multi-Arch: same
Depends:
${misc:Depends},
@ -276,7 +276,7 @@ Description: Using wayland as a client (development files)
This package contains the libuwac development files
Package: freerdp2-wayland
Architecture: any
Architecture: linux-any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: RDP client for Windows Terminal Services (wayland client)
FreeRDP is a libre client/server implementation of the Remote

9
debian/rules vendored
View File

@ -13,6 +13,13 @@ else
WITH_NEON =
endif
DEB_HOST_ARCH_OS=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ifeq (,$(filter linux, $(DEB_HOST_ARCH_OS)))
WITH_WAYLAND = -DWITH_WAYLAND=OFF
else
WITH_WAYLAND =
endif
NULL =
DEB_HOST_ARCH_OS=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
@ -42,7 +49,7 @@ DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_INSTALL_INCLUDEDIR=include/$(shell dpkg-archit
-DWITH_SERVER=ON \
-DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
-DWITH_WAYLAND=ON \
$(WITH_WAYLAND) \
-DWITH_CLIENT_INTERFACE=OFF \
$(WITH_NEON) \
$(NULL)