summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--src/video_out/Makefile.am8
-rw-r--r--src/video_out/macosx/Makefile.am12
3 files changed, 14 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index ef55a27ee..b40f7ae75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1199,6 +1199,7 @@ src/spu_dec/Makefile
src/video_dec/Makefile
src/video_dec/libmpeg2/Makefile
src/video_out/Makefile
+src/video_out/macosx/Makefile
src/xine-utils/Makefile
src/xine-engine/Makefile
src/vdr/Makefile
diff --git a/src/video_out/Makefile.am b/src/video_out/Makefile.am
index b661fdd4b..3b5703792 100644
--- a/src/video_out/Makefile.am
+++ b/src/video_out/Makefile.am
@@ -7,8 +7,7 @@ AM_OBJCFLAGS = $(DEFAULT_OCFLAGS) $(VISIBILITY_FLAG)
SUBDIRS =
if ENABLE_MACOSX_VIDEO
-xineinclude_HEADERS = macosx/video_window.h macosx/XineOpenGLView.h macosx/XineVideoWindow.h
-lib_LTLIBRARIES = libxineMacOSXVideo.la
+SUBDIRS += macosx
endif
EXTRA_DIST = video_out_directx.c video_out_macosx.m
@@ -195,8 +194,3 @@ xineplug_vo_out_none_la_LIBADD = $(XINE_LIB) $(PTHREAD_LIBS) $(LTLIBINTL)
xineplug_vo_out_macosx_la_SOURCES = video_out_macosx.m
xineplug_vo_out_macosx_la_LIBADD = $(XINE_LIB) $(PTHREAD_LIBS)
xineplug_vo_out_macosx_la_LDFLAGS = $(AM_LDFLAGS) -framework Cocoa -framework OpenGL
-
-libxineMacOSXVideo_la_SOURCES = macosx/XineOpenGLView.m macosx/XineVideoWindow.m
-libxineMacOSXVideo_la_LDFLAGS = $(AM_LDFLAGS) -framework Cocoa \
- -framework OpenGL -version-info \
- $(XINE_LT_CURRENT):$(XINE_LT_REVISION):$(XINE_LT_AGE)
diff --git a/src/video_out/macosx/Makefile.am b/src/video_out/macosx/Makefile.am
new file mode 100644
index 000000000..ae6a5acc8
--- /dev/null
+++ b/src/video_out/macosx/Makefile.am
@@ -0,0 +1,12 @@
+include $(top_srcdir)/misc/Makefile.common
+
+AM_CFLAGS = $(DEFAULT_OCFLAGS) $(VISIBILITY_FLAG)
+AM_OBJCFLAGS = $(DEFAULT_OCFLAGS) $(VISIBILITY_FLAG)
+
+xineinclude_HEADERS = video_window.h XineOpenGLView.h XineVideoWindow.h
+
+lib_LTLIBRARIES = libxineMacOSXVideo.la
+
+libxineMacOSXVideo_la_SOURCES = XineOpenGLView.m XineVideoWindow.m
+libxineMacOSXVideo_la_LDFLAGS = $(AM_LDFLAGS) -framework Cocoa -framework OpenGL \
+ -version-info $(XINE_LT_CURRENT):$(XINE_LT_REVISION):$(XINE_LT_AGE)