mirror of https://github.com/mpv-player/mpv
Move conditional compilation to the build system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19807 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ad9f507894
commit
af06a4425b
|
@ -7428,6 +7428,8 @@ SGIAUDIO_LIB = $_ld_sgiaudio
|
||||||
|
|
||||||
# input/demuxer/codecs
|
# input/demuxer/codecs
|
||||||
TERMCAP_LIB = $_ld_termcap
|
TERMCAP_LIB = $_ld_termcap
|
||||||
|
JOYSTICK = $_joystick
|
||||||
|
LIRC = $_lirc
|
||||||
LIRC_LIB = $_ld_lirc
|
LIRC_LIB = $_ld_lirc
|
||||||
LIRCC_LIB = $_ld_lircc
|
LIRCC_LIB = $_ld_lircc
|
||||||
TV = $_tv
|
TV = $_tv
|
||||||
|
|
|
@ -3,7 +3,14 @@ include ../config.mak
|
||||||
|
|
||||||
LIBNAME = libinput.a
|
LIBNAME = libinput.a
|
||||||
|
|
||||||
SRCS=input.c joystick.c lirc.c
|
SRCS=input.c
|
||||||
|
ifeq ($(JOYSTICK),yes)
|
||||||
|
SRCS += joystick.c
|
||||||
|
endif
|
||||||
|
ifeq ($(LIRC),yes)
|
||||||
|
SRCS += lirc.c
|
||||||
|
endif
|
||||||
|
|
||||||
OBJS=$(SRCS:.c=.o)
|
OBJS=$(SRCS:.c=.o)
|
||||||
|
|
||||||
CFLAGS = -I. -I.. $(OPTFLAGS)
|
CFLAGS = -I. -I.. $(OPTFLAGS)
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifdef HAVE_JOYSTICK
|
|
||||||
|
|
||||||
#include "joystick.h"
|
#include "joystick.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
|
|
||||||
|
@ -163,5 +161,3 @@ int mp_input_joystick_read(int fd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifdef HAVE_LIRC
|
|
||||||
|
|
||||||
#include <lirc/lirc_client.h>
|
#include <lirc/lirc_client.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -115,5 +113,3 @@ mp_input_lirc_close(int fd) {
|
||||||
lirc_freeconfig(lirc_config);
|
lirc_freeconfig(lirc_config);
|
||||||
lirc_deinit();
|
lirc_deinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue