mirror of
https://github.com/mpv-player/mpv
synced 2024-09-05 02:48:21 +02:00
macosx core video module
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15292 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
863cb81fb8
commit
382d7cbca8
15
configure
vendored
15
configure
vendored
@ -3202,6 +3202,19 @@ EOF
|
||||
fi
|
||||
echores "$_macosx"
|
||||
|
||||
echocheck "Mac OS X Core Video Support"
|
||||
if test "$_macosx" = yes ; then
|
||||
if test "`sysctl -n kern.osrelease | cut -d "." -f 1`" = "8" ; then
|
||||
echo "yes"
|
||||
_vosrc="$_vosrc vo_macosx.m"
|
||||
_vomodules="macosx $_vomodules"
|
||||
_macosx_frameworks="$_macosx_frameworks -framework Cocoa -framework QuartzCore -framework OpenGL"
|
||||
else
|
||||
echo "no"
|
||||
_novomodules="macosx $_novomodules"
|
||||
fi
|
||||
fi
|
||||
|
||||
echocheck "Mac OS X Finder Support"
|
||||
if test "$_macosx_finder_support" = auto ; then
|
||||
_macosx_finder_support=$_macosx
|
||||
@ -7538,7 +7551,7 @@ EOF
|
||||
#############################################################################
|
||||
|
||||
echo "Creating libvo/config.mak"
|
||||
_voobj=`echo $_vosrc | sed -e 's/\.c/\.o/g'`
|
||||
_voobj=`echo $_vosrc | sed -e 's/\.c/\.o/g;s/\.m/\.o/g'`
|
||||
cat > libvo/config.mak << EOF
|
||||
include ../config.mak
|
||||
OPTIONAL_SRCS = $_vosrc
|
||||
|
@ -4,7 +4,8 @@ include config.mak
|
||||
LIBNAME = libvo.a
|
||||
|
||||
SRCS=geometry.c aspect.c aclib.c osd.c font_load.c gtf.c spuenc.c video_out.c vo_null.c vo_mpegpes.c vo_yuv4mpeg.c $(OPTIONAL_SRCS) sub.c font_load_ft.c
|
||||
OBJS=$(SRCS:.c=.o)
|
||||
OBJS_TEMP=$(basename $(SRCS))
|
||||
OBJS=$(OBJS_TEMP:%=%.o)
|
||||
|
||||
ifeq ($(VIDIX),yes)
|
||||
SRCS += vosub_vidix.c
|
||||
@ -19,6 +20,9 @@ CFLAGS = $(OPTFLAGS) -I. -I.. -I../osdep $(FREETYPE_INC) $(SDL_INC) $(X11_INC)
|
||||
.c.o:
|
||||
$(CC) -c $(CFLAGS) -o $@ $<
|
||||
|
||||
.m.o:
|
||||
$(CC) -c $(CFLAGS) -o $@ $<
|
||||
|
||||
$(LIBNAME): $(OBJS)
|
||||
$(AR) r $(LIBNAME) $(OBJS)
|
||||
$(RANLIB) $(LIBNAME)
|
||||
|
@ -121,6 +121,7 @@ extern vo_functions_t video_out_tdfx_vid;
|
||||
extern vo_functions_t video_out_tga;
|
||||
#endif
|
||||
#ifdef MACOSX
|
||||
extern vo_functions_t video_out_macosx;
|
||||
extern vo_functions_t video_out_quartz;
|
||||
#endif
|
||||
#ifdef HAVE_PNM
|
||||
@ -139,6 +140,7 @@ vo_functions_t* video_out_drivers[] =
|
||||
&video_out_directx,
|
||||
#endif
|
||||
#ifdef MACOSX
|
||||
&video_out_macosx,
|
||||
&video_out_quartz,
|
||||
#endif
|
||||
#ifdef HAVE_XMGA
|
||||
|
Loading…
Reference in New Issue
Block a user