changeset 33800:844786b8f768

Makfile: split non-native directories from native directories in DIRS gui/win32: use C99 bool type instead of Windows BOOL
author diego
date Thu, 21 Jul 2011 22:24:57 +0000
parents 6a9627d6f8f1
children 5ebf5dc12543
files Makefile gui/win32/playlist.c gui/win32/playlist.h
diffstat 3 files changed, 15 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Jul 21 01:21:36 2011 +0000
+++ b/Makefile	Thu Jul 21 22:24:57 2011 +0000
@@ -720,20 +720,14 @@
         input \
         libaf \
         libao2 \
-        libass \
-        libdvdcss \
-        libdvdnav \
-        libdvdnav/vm \
-        libdvdread4 \
         libmenu \
         libmpcodecs \
         libmpcodecs/native \
         libmpdemux \
-        libmpeg2 \
         libvo \
         loader \
+        loader/dmo \
         loader/dshow \
-        loader/dmo \
         loader/wine \
         mp3lib \
         osdep \
@@ -742,14 +736,22 @@
         stream/librtsp \
         stream/realrtsp \
         sub \
-        tremor \
         TOOLS \
         vidix \
 
+ALL_DIRS = $(DIRS) \
+        libass \
+        libdvdcss \
+        libdvdnav \
+        libdvdnav/vm \
+        libdvdread4 \
+        libmpeg2 \
+        tremor \
+
 ALLHEADERS = $(foreach dir,$(DIRS),$(wildcard $(dir)/*.h))
 
 ADDSUFFIXES     = $(foreach suf,$(1),$(addsuffix $(suf),$(2)))
-ADD_ALL_DIRS    = $(call ADDSUFFIXES,$(1),$(DIRS))
+ADD_ALL_DIRS    = $(call ADDSUFFIXES,$(1),$(ALL_DIRS))
 ADD_ALL_EXESUFS = $(1) $(call ADDSUFFIXES,$(EXESUFS_ALL),$(1))
 
 
--- a/gui/win32/playlist.c	Thu Jul 21 01:21:36 2011 +0000
+++ b/gui/win32/playlist.c	Thu Jul 21 22:24:57 2011 +0000
@@ -22,6 +22,7 @@
  */
 
 #include <windows.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include "mp_msg.h"
@@ -29,7 +30,7 @@
 
 /* TODO: implement sort_playlist */
 
-BOOL adddirtoplaylist(playlist_t *playlist, const char *path, BOOL recursive)
+bool adddirtoplaylist(playlist_t *playlist, const char *path, bool recursive)
 {
     HANDLE findHandle = INVALID_HANDLE_VALUE;
     WIN32_FIND_DATA finddata;
--- a/gui/win32/playlist.h	Thu Jul 21 01:21:36 2011 +0000
+++ b/gui/win32/playlist.h	Thu Jul 21 22:24:57 2011 +0000
@@ -24,7 +24,7 @@
 #ifndef MPLAYER_GUI_PLAYLIST_H
 #define MPLAYER_GUI_PLAYLIST_H
 
-#include <windows.h>
+#include <stdbool.h>
 
 typedef struct
 {
@@ -56,6 +56,6 @@
 #define SORT_BYDURATION     4
 
 playlist_t *create_playlist(void);
-BOOL adddirtoplaylist(playlist_t *playlist, const char* path, BOOL recursive);
+bool adddirtoplaylist(playlist_t *playlist, const char* path, bool recursive);
 
 #endif /* MPLAYER_GUI_PLAYLIST_H */