mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
add USE_NEUTRINO_HAL define for libneutrino-hal
This commit is contained in:
@@ -122,6 +122,9 @@ AC_ARG_WITH(neutrino-hal-build,
|
||||
[NEUTRINO_HAL_LIB="$withval"],[NEUTRINO_HAL_LIB=""])
|
||||
|
||||
AM_CONDITIONAL(USE_NEUTRINO_HAL, test "$NEUTRINO_HAL_INC")
|
||||
if test "$NEUTRINO_HAL_INC"; then
|
||||
AC_DEFINE(USE_NEUTRINO_HAL, 1,[use libneutrino-hal])
|
||||
fi
|
||||
|
||||
|
||||
AC_CHECK_HEADERS(coolstream/nevis_ir.h)
|
||||
|
@@ -1,9 +1,11 @@
|
||||
#if HAVE_COOL_HARDWARE
|
||||
#include <dmx_cs.h>
|
||||
#elif USE_NEUTRINO_HAL
|
||||
#include <dmx_td.h>
|
||||
#elif HAVE_TRIPLEDRAGON
|
||||
#include <dmx_td.h>
|
||||
#else
|
||||
#error neither HAVE_COOL_HARDWARE nor HAVE_TRIPLEDRAGON defined.
|
||||
#error neither HAVE_COOL_HARDWARE nor HAVE_TRIPLEDRAGON nor USE_NEUTRINO_HAL defined.
|
||||
#error do you need to include config.h?
|
||||
#endif
|
||||
|
||||
|
@@ -2,7 +2,10 @@
|
||||
#include <cs_api.h>
|
||||
#include <video_cs.h>
|
||||
#endif
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#if USE_NEUTRINO_HAL
|
||||
#include <init_td.h>
|
||||
#include <video_td.h>
|
||||
#elif HAVE_TRIPLEDRAGON
|
||||
#include <init_td.h>
|
||||
#include <video_td.h>
|
||||
#endif
|
||||
|
@@ -60,7 +60,7 @@
|
||||
#include <audio_cs.h>
|
||||
#include <video_cs.h>
|
||||
#endif
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#if USE_NEUTRINO_HAL || HAVE_TRIPLEDRAGON
|
||||
#include <video_td.h>
|
||||
#include <audio_td.h>
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user