build: Conditionally compile senseApis

This commit is contained in:
2025-01-08 18:27:40 -04:00
parent 396bcefbf4
commit 88df316013
6 changed files with 25 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
SENSEAPIS_ENABLED=
AC_ARG_ENABLE([senseapi-xcbxorg],
[AS_HELP_STRING([--enable-senseapi-xcbxorg],
[Enable XCB/Xorg SenseAPI backend])],
[AS_CASE([$enableval],
[no], [enable_senseapi_xcbxorg=no],
[yes|*], [
enable_senseapi_xcbxorg=yes
AC_DEFINE([XCBXORG_ENABLED], [1],
[Define to 1 if you have XCB/Xorg SenseAPI backend])
SENSEAPIS_ENABLED="${SENSEAPIS_ENABLED} xcbXorg"
]
)],
[enable_senseapi_xcbxorg=no]
)