summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2011-12-11 12:26:00 +0100
committerUoti Urpala <uau@mplayer2.org>2012-04-26 21:03:10 +0300
commitd12b9b611aa7030047e6556714e859dd2bfd38fc (patch)
tree6df7a9b89ae07f5235310c5b952189c81c753236 /configure
parent237f44db44b5479c78c90c1a045e0123a2f9c2b8 (diff)
downloadmpv-d12b9b611aa7030047e6556714e859dd2bfd38fc.tar.bz2
mpv-d12b9b611aa7030047e6556714e859dd2bfd38fc.tar.xz
vo_corevideo: use cocoa_common to display the window
Change vo_corevideo to use cocoa_common to create and manage the window. This doesn't affect external OSX GUIs, since they don't use vo_corevideo window management, but only read the image data from the shared buffer.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure44
1 files changed, 19 insertions, 25 deletions
diff --git a/configure b/configure
index 27dde1a754..f9a4bbaafe 100755
--- a/configure
+++ b/configure
@@ -4187,21 +4187,35 @@ else
fi
echores $quicktime
-echocheck "CoreVideo"
-if test "$_corevideo" = auto ; then
+echocheck "Cocoa"
+if test "$_cocoa" = auto ; then
cat > $TMPC <<EOF
-#include <Carbon/Carbon.h>
#include <CoreServices/CoreServices.h>
#include <OpenGL/OpenGL.h>
+int main(void) {
+ NSApplicationLoad();
+}
+EOF
+ _cocoa=no
+ cc_check -framework Cocoa -framework OpenGL && _cocoa=yes
+fi
+if test "$_cocoa" = yes ; then
+ libs_mplayer="$libs_mplayer -framework Cocoa -framework OpenGL"
+fi
+echores "$_cocoa"
+
+echocheck "CoreVideo"
+if test "$_cocoa" = yes && test "$_corevideo" = auto ; then
+ cat > $TMPC <<EOF
#include <QuartzCore/CoreVideo.h>
int main(void) { return 0; }
EOF
_corevideo=no
- cc_check -framework Carbon -framework Cocoa -framework QuartzCore -framework OpenGL && _corevideo=yes
+ cc_check -framework Cocoa -framework QuartzCore -framework OpenGL && _corevideo=yes
fi
if test "$_corevideo" = yes ; then
vomodules="corevideo $vomodules"
- libs_mplayer="$libs_mplayer -framework Carbon -framework Cocoa -framework QuartzCore -framework OpenGL"
+ libs_mplayer="$libs_mplayer -framework QuartzCore"
def_corevideo='#define CONFIG_COREVIDEO 1'
else
novomodules="corevideo $novomodules"
@@ -4209,26 +4223,6 @@ else
fi
echores "$_corevideo"
-echocheck "Cocoa"
-if test "$_gl" = no ; then
- # if _gl is not enabled there is no point to add potentially unused linker flags
- _cocoa=no
-fi
-if test "$_cocoa" = auto ; then
- cat > $TMPC <<EOF
-#include <CoreServices/CoreServices.h>
-#include <OpenGL/OpenGL.h>
-#include <QuartzCore/CoreVideo.h>
-int main(void) { return 0; }
-EOF
- _cocoa=no
- cc_check -framework Cocoa -framework QuartzCore -framework OpenGL && _cocoa=yes
-fi
-if test "$_cocoa" = yes ; then
- libs_mplayer="$libs_mplayer -framework Cocoa -framework QuartzCore -framework OpenGL"
-fi
-echores "$_cocoa"
-
fi #if darwin