Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.

Based on a patch by Sebastian Hegler <s_hegler at gmx dot de>.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13788 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2004-10-28 01:15:53 +00:00
parent 2f1aaba207
commit 5b0d96c6b4
47 changed files with 89 additions and 89 deletions

View File

@ -4,7 +4,7 @@ LIB = libgui.a
include ../config.mak
include config.mak
INCDIR = -I. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTKINC) $(EXTRA_INC)
INCDIR = -I. -I.. -I../loader -I./wm -I./skin $(FREETYPE_INC) $(GTKINC) $(EXTRA_INC)
OPTIMIZE = $(OPTFLAGS) \
-fexpensive-optimizations -fschedule-insns2 -Wall

View File

@ -35,7 +35,7 @@ AO_LIBS = $(ARTS_LIB) $(ESD_LIB) $(JACK_LIB) $(NAS_LIB) $(SGIAUDIO_LIB)
CODEC_LIBS = $(AV_LIB) $(FAME_LIB) $(MAD_LIB) $(VORBIS_LIB) $(THEORA_LIB) $(FAAD_LIB) $(LIBLZO_LIB) $(DECORE_LIB) $(XVID_LIB) $(DTS_LIB) $(PNG_LIB) $(Z_LIB) $(JPEG_LIB) $(ALSA_LIB) $(XMMS_LIB) $(X264_LIB)
COMMON_LIBS = libmpcodecs/libmpcodecs.a $(W32_LIB) $(DS_LIB) libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a $(DVDREAD_LIB) $(CODEC_LIBS) $(FREETYPE_LIB) $(TERMCAP_LIB) $(CDPARANOIA_LIB) $(MPLAYER_NETWORK_LIB) $(WIN32_LIB) $(GIF_LIB) $(MACOSX_FRAMEWORKS) $(SMBSUPPORT_LIB) $(FRIBIDI_LIB) $(FONTCONFIG_LIB) $(ENCA_LIB)
CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader -Ilibvo $(FREETYPE_INC) $(EXTRA_INC) $(CDPARANOIA_INC) $(SDL_INC) $(X11_INC) $(FRIBIDI_INC) $(DVB_INC) $(XVID_INC) $(FONTCONFIG_INC) $(CACA_INC) # -Wall
CFLAGS = $(OPTFLAGS) -I. $(FREETYPE_INC) $(EXTRA_INC) $(CDPARANOIA_INC) $(SDL_INC) $(X11_INC) $(FRIBIDI_INC) $(DVB_INC) $(XVID_INC) $(FONTCONFIG_INC) $(CACA_INC) # -Wall
ifeq ($(TOOLAME),yes)
CFLAGS += $(TOOLAME_EXTRAFLAGS)
CODEC_LIBS += $(TOOLAME_LIB)

View File

@ -34,7 +34,7 @@ endif
OBJS = $(SRCS:.c=.o)
OBJS += $(CPLUSPLUSSRCS:.cpp=.o)
INCLUDE = -I../loader $(CSS_INC) $(EXTRA_INC) $(LIBAV_INC)
INCLUDE = -I.. -I../loader $(CSS_INC) $(EXTRA_INC) $(LIBAV_INC)
CFLAGS = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS) $(CDPARANOIA_INC) $(DVB_INC)
CPLUSPLUSFLAGS = $(CFLAGS) $(CPLUSPLUSINCLUDE)
CPLUSPLUS = $(CC)

View File

@ -8,7 +8,7 @@
runtime cpu detection by michael niedermayer (michaelni@gmx.at) is under GPL
*/
#include <stddef.h>
#include "../cpudetect.h"
#include "cpudetect.h"
#include "fastmemcpy.h"
#undef memcpy

View File

@ -2,7 +2,7 @@
#include "aspect.h"
#include "geometry.h"
#ifndef ASPECT_TEST
#include "../mp_msg.h"
#include "mp_msg.h"
#endif
//#define ASPECT_DEBUG

View File

@ -1,7 +1,7 @@
#ifndef __MPLAYER_MEMCPY
#define __MPLAYER_MEMCPY 1
#include "../config.h"
#include "config.h"
#ifdef USE_FASTMEMCPY
#if defined(HAVE_MMX) || defined(HAVE_MMX2) || defined(HAVE_3DNOW) \

View File

@ -28,10 +28,10 @@
#include <fontconfig/fontconfig.h>
#endif
#include "../bswap.h"
#include "bswap.h"
#include "font_load.h"
#include "mp_msg.h"
#include "../mplayer.h"
#include "mplayer.h"
#include "osd_font.h"
#if (FREETYPE_MAJOR > 2) || (FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 1)

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <string.h>
#include "geometry.h"
#include "../mp_msg.h"
#include "mp_msg.h"
/* A string of the form [WxH][+X+Y] or xpos[%]:ypos[%] */
char *vo_geometry = NULL;

View File

@ -1,2 +1,2 @@
#include "../libmpcodecs/img_format.h"
#include "libmpcodecs/img_format.h"

View File

@ -31,13 +31,13 @@
#ifdef USE_FASTMEMCPY
#include "fastmemcpy.h"
#endif
#include "../mp_msg.h"
#include "mp_msg.h"
/* We need this #define because we need ../libavcodec/common.h to #define
* be2me_32, otherwise the linker will complain that it doesn't exist */
#define HAVE_AV_CONFIG_H
#include "../libavcodec/avcodec.h"
#include "../libavcodec/dsputil.h"
#include "../libavcodec/mpegvideo.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/dsputil.h"
#include "libavcodec/mpegvideo.h"
#include "jpeg_enc.h"

View File

@ -1,9 +1,9 @@
#include "fastmemcpy.h"
#include "../cpudetect.h"
#include "../postproc/swscale.h"
#include "../postproc/rgb2rgb.h"
#include "../libmpcodecs/vf_scale.h"
#include "cpudetect.h"
#include "postproc/swscale.h"
#include "postproc/rgb2rgb.h"
#include "libmpcodecs/vf_scale.h"
#include "mp_msg.h"
// mga_vid drawing functions

View File

@ -9,8 +9,8 @@
#include "osd.h"
#include "mp_msg.h"
#include <inttypes.h>
#include "../cpudetect.h"
#include "../mangle.h"
#include "cpudetect.h"
#include "mangle.h"
extern int verbose; // defined in mplayer.c

View File

@ -12,7 +12,7 @@
#include "video_out.h"
#include "font_load.h"
#include "sub.h"
#include "../spudec.h"
#include "spudec.h"
#define NEW_SPLITTING

View File

@ -56,7 +56,7 @@ static inline void vo_draw_text_osd(int dxs,int dys,void (*draw_alpha)(int x0,in
#else
#include "../subreader.h"
#include "subreader.h"
extern unsigned char* vo_osd_text;

View File

@ -23,7 +23,7 @@
#include "vesa_lvo.h"
#include "img_format.h"
#include "../drivers/mga_vid.h" /* <- should be changed to "linux/'something'.h" */
#include "drivers/mga_vid.h" /* <- should be changed to "linux/'something'.h" */
#include "fastmemcpy.h"
#include "osd.h"
#include "video_out.h"

View File

@ -15,7 +15,7 @@
#include "mp_msg.h"
#include "help_mp.h"
#include "../osdep/shmem.h"
#include "osdep/shmem.h"
//int vo_flags=0;

View File

@ -15,7 +15,7 @@
//#include "font_load.h"
#include "img_format.h"
//#include "../vidix/vidix.h"
//#include "vidix/vidix.h"
#define VO_EVENT_EXPOSE 1
#define VO_EVENT_RESIZE 2

View File

@ -22,8 +22,8 @@
*/
/* All video drivers will want this */
#include "../libmpcodecs/vfcap.h"
#include "../libmpcodecs/mp_image.h"
#include "libmpcodecs/vfcap.h"
#include "libmpcodecs/mp_image.h"
#include "geometry.h"
static uint32_t control(uint32_t request, void *data, ...);

View File

@ -27,8 +27,8 @@
#include "video_out.h"
#include "video_out_internal.h"
#include "aspect.h"
#include "../postproc/swscale.h"
#include "../libmpcodecs/vf_scale.h"
#include "postproc/swscale.h"
#include "libmpcodecs/vf_scale.h"
#include "font_load.h"
#include "sub.h"

View File

@ -43,8 +43,8 @@
#include "video_out.h"
#include "video_out_internal.h"
#include "../mp_msg.h"
#include "../m_option.h"
#include "mp_msg.h"
#include "m_option.h"
#include "fastmemcpy.h"
static vo_info_t info =

View File

@ -23,7 +23,7 @@
#include "mp_msg.h"
#include "vosub_vidix.h"
#include "../vidix/vidixlib.h"
#include "vidix/vidixlib.h"
static vo_info_t info = {

View File

@ -1339,7 +1339,7 @@ control( uint32_t request, void *data, ... )
extern void mplayer_put_key( int code );
#include "../osdep/keycodes.h"
#include "osdep/keycodes.h"
static void
check_events( void )

View File

@ -21,7 +21,7 @@
#include "aspect.h"
#include "x11_common.h"
#include "fastmemcpy.h"
#include "../mp_msg.h"
#include "mp_msg.h"
#include <X11/Xlib.h>
#include <X11/extensions/xf86dga.h>

View File

@ -57,7 +57,7 @@
#include "video_out_internal.h"
#include "fastmemcpy.h"
#include "sub.h"
#include "../postproc/rgb2rgb.h"
#include "postproc/rgb2rgb.h"
#include "aspect.h"
@ -1411,7 +1411,7 @@ static uint32_t draw_slice(uint8_t *src[], int stride[], int w, int h, int x, in
extern void mplayer_put_key(int code);
#include "../osdep/keycodes.h"
#include "osdep/keycodes.h"
static void check_events(void)
{

View File

@ -933,7 +933,7 @@ return 0;
extern void mplayer_put_key(int code);
#include "../osdep/keycodes.h"
#include "osdep/keycodes.h"
static void check_events(void)
{

View File

@ -28,10 +28,10 @@
#include "video_out.h"
#include "video_out_internal.h"
#include "fastmemcpy.h"
#include "../input/input.h"
#include "../osdep/keycodes.h"
#include "../input/mouse.h"
#include "../mp_msg.h"
#include "input/input.h"
#include "osdep/keycodes.h"
#include "input/mouse.h"
#include "mp_msg.h"
#include "aspect.h"
#include "geometry.h"

View File

@ -141,7 +141,7 @@
#include "spuenc.h"
#include "sub.h"
#ifdef HAVE_NEW_GUI
#include "../Gui/interface.h"
#include "Gui/interface.h"
#endif
#ifdef HAVE_X11
#include "x11_common.h"

View File

@ -533,7 +533,7 @@ static uint32_t control(uint32_t request, void *data, ...)
}
/* EVENT handling */
#include "../osdep/keycodes.h"
#include "osdep/keycodes.h"
extern void mplayer_put_key(int code);
static void check_events(void)

View File

@ -17,7 +17,7 @@
#include "sub.h"
#ifdef HAVE_NEW_GUI
#include "../Gui/interface.h"
#include "Gui/interface.h"
#endif
#include <GL/gl.h>

View File

@ -31,8 +31,8 @@
#include "mp_msg.h"
#include "m_option.h"
#include "../input/input.h"
#include "../input/mouse.h"
#include "input/input.h"
#include "input/mouse.h"
#include "vo_quartz.h"
@ -112,7 +112,7 @@ enum
kFullScreenCmd = 5
};
#include "../osdep/keycodes.h"
#include "osdep/keycodes.h"
extern void mplayer_put_key(int code);
extern void vo_draw_text(int dxs,int dys,void (*draw_alpha)(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride));

View File

@ -119,8 +119,8 @@
#include "x11_common.h"
#endif
#include "../input/input.h"
#include "../input/mouse.h"
#include "input/input.h"
#include "input/mouse.h"
extern int verbose;
int sdl_noxv;
@ -1165,7 +1165,7 @@ static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int
* returns : doesn't return
**/
#include "../osdep/keycodes.h"
#include "osdep/keycodes.h"
extern void mplayer_put_key(int code);
#define shift_key (event.key.keysym.mod==(KMOD_LSHIFT||KMOD_RSHIFT))

View File

@ -44,8 +44,8 @@ TODO:
#include "sub.h"
#include "../mp_msg.h"
//#include "../mp_image.h"
#include "mp_msg.h"
//#include "mp_image.h"
#include <assert.h>

View File

@ -17,14 +17,14 @@
#include "video_out_internal.h"
#include <windows.h>
#include "../osdep/keycodes.h"
#include "../input/input.h"
#include "osdep/keycodes.h"
#include "input/input.h"
#include "aspect.h"
#include "mp_msg.h"
#include "vosub_vidix.h"
#include "../vidix/vidixlib.h"
#include "vidix/vidixlib.h"
extern void mplayer_put_key(int code);

View File

@ -38,16 +38,16 @@ int XShmGetEventBase(Display *);
#include "fastmemcpy.h"
#include "sub.h"
#include "../postproc/swscale.h"
#include "../postproc/swscale_internal.h" //FIXME
#include "../postproc/rgb2rgb.h"
#include "../libmpcodecs/vf_scale.h"
#include "postproc/swscale.h"
#include "postproc/swscale_internal.h" //FIXME
#include "postproc/rgb2rgb.h"
#include "libmpcodecs/vf_scale.h"
#include "../mp_msg.h"
#include "mp_msg.h"
#ifdef HAVE_NEW_GUI
#include "../Gui/interface.h"
#include "../mplayer.h"
#include "Gui/interface.h"
#include "mplayer.h"
#endif
static vo_info_t info = {

View File

@ -38,13 +38,13 @@
#include "aspect.h"
#ifdef SHOW_TIME
#include "../osdep/timer.h"
#include "osdep/timer.h"
static unsigned int timer = 0;
static unsigned int timerd = 0;
#endif
#ifdef HAVE_NEW_GUI
#include "../Gui/interface.h"
#include "Gui/interface.h"
#endif
static vo_info_t info = {

View File

@ -34,7 +34,7 @@
#include "mp_msg.h"
#ifdef HAVE_NEW_GUI
#include "../Gui/interface.h"
#include "Gui/interface.h"
#endif

View File

@ -37,7 +37,7 @@ Buffer allocation:
#include "aspect.h"
#ifdef HAVE_NEW_GUI
#include "../Gui/interface.h"
#include "Gui/interface.h"
#endif
static vo_info_t info = {

View File

@ -31,10 +31,10 @@
#include "mp_msg.h"
#include "vosub_vidix.h"
#include "../vidix/vidixlib.h"
#include "vidix/vidixlib.h"
#ifdef HAVE_NEW_GUI
#include "../Gui/interface.h"
#include "Gui/interface.h"
#endif

View File

@ -31,7 +31,7 @@
#include "aspect.h"
#ifdef HAVE_NEW_GUI
#include "../Gui/interface.h"
#include "Gui/interface.h"
#endif
//no chanse xinerama to be suported in near future

View File

@ -38,8 +38,8 @@
#include "sub.h"
#include "fastmemcpy.h"
#include "../postproc/rgb2rgb.h"
#include "../libmpcodecs/vf_scale.h"
#include "postproc/rgb2rgb.h"
#include "libmpcodecs/vf_scale.h"
static vo_info_t info =
{

View File

@ -24,8 +24,8 @@
#include "video_out.h"
#include "video_out_internal.h"
#include "../mp_msg.h"
#include "../m_option.h"
#include "mp_msg.h"
#include "m_option.h"
#include "fastmemcpy.h"
#include "jpeg_enc.h"

View File

@ -25,7 +25,7 @@
#include "video_out.h"
#include "video_out_internal.h"
#include "../mp_msg.h"
#include "mp_msg.h"
#include "fastmemcpy.h"
static vo_info_t info = {

View File

@ -26,14 +26,14 @@
#include "config.h"
#include "vosub_vidix.h"
#include "../vidix/vidixlib.h"
#include "vidix/vidixlib.h"
#include "fastmemcpy.h"
#include "osd.h"
#include "video_out.h"
#include "sub.h"
#include "../libmpcodecs/vfcap.h"
#include "../libmpcodecs/mp_image.h"
#include "libmpcodecs/vfcap.h"
#include "libmpcodecs/mp_image.h"
#define NUM_FRAMES VID_PLAY_MAXFRAMES /* Temporary: driver will overwrite it */

View File

@ -29,7 +29,7 @@ uint32_t vidix_draw_frame(uint8_t *src[]);
void vidix_flip_page(void);
void vidix_draw_osd(void);
#include "../vidix/vidix.h"
#include "vidix/vidix.h"
/* graphic keys */
int vidix_grkey_support(void);
int vidix_grkey_get(vidix_grkey_t *gr_key);

View File

@ -1,10 +1,10 @@
#include <limits.h>
#include <windows.h>
#include "../osdep/keycodes.h"
#include "../input/input.h"
#include "../input/mouse.h"
#include "../mp_msg.h"
#include "osdep/keycodes.h"
#include "input/input.h"
#include "input/mouse.h"
#include "mp_msg.h"
#include "video_out.h"
#include "aspect.h"
#include "w32_common.h"

View File

@ -20,7 +20,7 @@
#include "aspect.h"
#include "geometry.h"
#include "help_mp.h"
#include "../osdep/timer.h"
#include "osdep/timer.h"
#include <X11/Xmd.h>
#include <X11/Xlib.h>
@ -45,12 +45,12 @@
#include <X11/extensions/Xvlib.h>
#endif
#include "../input/input.h"
#include "../input/mouse.h"
#include "input/input.h"
#include "input/mouse.h"
#ifdef HAVE_NEW_GUI
#include "../Gui/interface.h"
#include "../mplayer.h"
#include "Gui/interface.h"
#include "mplayer.h"
#endif
#define WIN_LAYER_ONBOTTOM 2
@ -523,7 +523,7 @@ void vo_uninit(void)
mDisplay = NULL;
}
#include "../osdep/keycodes.h"
#include "osdep/keycodes.h"
#include "wskeys.h"
extern void mplayer_put_key(int code);

View File

@ -7,7 +7,7 @@ OBJS = sr1.o
ifeq ($(TARGET_ARCH_SGI_MIPS),yes)
OPTFLAGS := $(OPTFLAGS:-O4=-O0)
endif
CFLAGS = $(OPTFLAGS) $(EXTRA_INC)
CFLAGS = -I.. $(OPTFLAGS) $(EXTRA_INC)
ifeq ($(TARGET_ARCH_X86),yes)
SRCS += decode_i586.c
OBJS += decode_i586.o