include $(top_srcdir)/misc/Makefile.common

AM_CPPFLAGS = -DXINE_COMPILE

EXTRA_DIST = \
             video_window.h \
             XineOpenGLView.m \
             XineOpenGLView.h \
             XineVideoWindow.m \
             XineVideoWindow.h

if HAVE_MACOSX_VIDEO

lib_LTLIBRARIES = libxineMacOSXVideo.la

libxineMacOSXVideo_la_SOURCES = XineOpenGLView.m XineVideoWindow.m
# The "-Wl,-framework -Wl,..." is needed for libtool versions before
# 1.5.x (1.257): the default version that ships with Mac OS X is 1.5 (1.1220)
libxineMacOSXVideo_la_LDFLAGS = -version-info \
	$(XINE_LT_CURRENT):$(XINE_LT_REVISION):$(XINE_LT_AGE) \
	-Wl,-framework -Wl,Cocoa -framework Cocoa \
	-Wl,-framework -Wl,OpenGL -framework OpenGL

xineinclude_HEADERS = video_window.h XineOpenGLView.h XineVideoWindow.h

endif

