ADDED LIRC support in SDL build

This commit is contained in:
mudlord 2008-07-10 23:41:29 +00:00
parent 0c3009a6f3
commit eac8b888a3
2 changed files with 10 additions and 1 deletions

View File

@ -53,6 +53,9 @@ IF( NOT NO_SDL )
SET( CAN_BUILD_VBAM 1 )
ENDIF( SDL_FOUND )
ENDIF( NOT NO_SDL )
IF( WITH_LIRC )
SET( WITHLIRC 1 )
ENDIF( WITH_LIRC )
# Check that the dependencies are met to build the GTK frontend
IF( NOT NO_GTK )
@ -74,7 +77,7 @@ IF( NOT SYSCONFDIR )
ENDIF( NOT SYSCONFDIR )
# C defines
ADD_DEFINITIONS (-DHAVE_NETINET_IN_H -DHAVE_ARPA_INET_H -DHAVE_ZLIB_H -DFINAL_VERSION -DSDL -DUSE_OPENGL -DSYSCONFDIR='"${SYSCONFDIR}"')
ADD_DEFINITIONS (-DHAVE_NETINET_IN_H -DHAVE_ARPA_INET_H -DHAVE_ZLIB_H -DFINAL_VERSION -DSDL -DUSE_OPENGL -DSYSCONFDIR='"${SYSCONFDIR}"' -DWITH_LIRC='${WITHLIRC}')
ADD_DEFINITIONS (-DVERSION='"${VERSION}"' -DPKGDATADIR='"${PKGDATADIR}"' -DPACKAGE='')
@ -253,6 +256,7 @@ IF( CAN_BUILD_VBAM )
TARGET_LINK_LIBRARIES (
vbam
vbamcore
lirc_client
${SDL_LIBRARY}
${ZLIB_LIBRARY}
${PNG_LIBRARY}

View File

@ -68,6 +68,11 @@
# include <getopt.h>
#endif // ! __GNUC__
#ifdef WITH_LIRC
#include <sys/poll.h>
#include <lirc/lirc_client.h>
#endif
extern bool soundEcho;
extern bool soundLowPass;
extern bool soundReverse;