debian/{control,rules}: Build with -DCHANNEL_URBDRC_CLIENT=ON and -DCHANNEL_URBDRC=ON only on Linux OSes.

This commit is contained in:
Mike Gabriel 2016-05-15 00:08:04 +02:00
parent 19f7eec70f
commit f79ebaa2c9
2 changed files with 14 additions and 4 deletions

4
debian/control vendored
View File

@ -34,8 +34,8 @@ Build-Depends:
libavutil-dev,
libjpeg-dev,
libgsm1-dev,
libusb-1.0-0-dev,
libudev-dev,
libusb-1.0-0-dev [linux-any],
libudev-dev [linux-any],
libdbus-glib-1-dev,
uuid-dev,
libgstreamer1.0-dev,

14
debian/rules vendored
View File

@ -15,6 +15,17 @@ endif
NULL =
DEB_HOST_ARCH_OS=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ifneq (,$(filter linux,$(DEB_HOST_ARCH_OS)))
LINUX_URBDRC_CLIENT = -DCHANNEL_URBDRC=ON \
-DCHANNEL_URBDRC_CLIENT=ON \
$(NULL)
else
LINUX_URBDRC_CLIENT = -DCHANNEL_URBDRC=OFF \
-DCHANNEL_URBDRC_CLIENT=OFF \
$(NULL)
endif
DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_INSTALL_INCLUDEDIR=include/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) \
-DCMAKE_SKIP_RPATH=FALSE \
-DCMAKE_SKIP_INSTALL_RPATH=TRUE \
@ -27,8 +38,7 @@ DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_INSTALL_INCLUDEDIR=include/$(shell dpkg-archit
-DWITH_GSTREAMER_0_10=OFF \
-DWITH_GSTREAMER_1_0=ON \
-DWITH_GSM=ON \
-DCHANNEL_URBDRC=ON \
-DCHANNEL_URBDRC_CLIENT=ON \
$(LINUX_URBDRC_CLIENT) \
-DWITH_SERVER=ON \
-DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=RELWITHDEBINFO \