Add Makefile, the precompiled header unfortunatly snuck into r5292 -- it's a verbatim copy from libaegisub.

Originally committed to SVN as r5294.
This commit is contained in:
Amar Takhar 2011-02-05 23:49:26 +00:00
parent 66b6fdcfc8
commit 7a13a4fb10
6 changed files with 42 additions and 6 deletions

36
aegisub/libmedia/Makefile Normal file
View File

@ -0,0 +1,36 @@
# $Id$
include ../Makefile.inc
LIB_SHARED = libmedia_aegisub-3.0.so
LIB_SHARED_INSTALL = yes
LIB_VERSION = 3
CXXFLAGS = -Iinclude -I../libaegisub/include -I../src -I.. -DMAGI -fPIC -Wno-variadic-macros
PRECOMPILED_HEADER_NAME = magi_pre.h
magi_pre.h.gch: CXXFLAGS := $(CXXFLAGS)
#######################
# AUDIO / VIDEO SUPPORT
#######################
ifeq (yes, $(HAVE_PROVIDER_FFMPEGSOURCE))
SRC_OPT += audio/ffms_audio.cpp common/ffms_common.cpp video/ffms_video.cpp
common/ffms_common.o: CXXFLAGS += $(CFLAGS_FFMPEGSOURCE) $(CFLAGS_LIBAVFORMAT) $(CFLAGS_LIBAVCODEC) $(CFLAGS_LIBSWSCALE) $(CFLAGS_LIBAVUTIL) $(CFLAGS_LIBPOSTPROC)
audio/ffms_audio.o: CXXFLAGS += $(CFLAGS_FFMPEGSOURCE) $(CFLAGS_LIBAVFORMAT) $(CFLAGS_LIBAVCODEC) $(CFLAGS_LIBSWSCALE) $(CFLAGS_LIBAVUTIL) $(CFLAGS_LIBPOSTPROC)
video/ffms_video.o: CXXFLAGS += $(CFLAGS_FFMPEGSOURCE) $(CFLAGS_LIBAVFORMAT) $(CFLAGS_LIBAVCODEC) $(CFLAGS_LIBSWSCALE) $(CFLAGS_LIBAVUTIL) $(CFLAGS_LIBPOSTPROC)
LDFLAGS_POST += $(LDFLAGS_FFMPEGSOURCE)
endif
SRC = \
common/video_frame.cpp \
$(SRC_OPT)
HEADERS = \
*/*.h \
include/libmedia/*.h \
include ../Makefile.target
-include */*.d

View File

@ -25,7 +25,7 @@
#endif
#include "ffms_audio.h"
#include "libaegisub/media.h"
#include "libmedia/exception.h"
namespace agi {
namespace ffms {

View File

@ -29,7 +29,7 @@
#include <map>
#endif
#include "ffms_common.h"
#include "../common/ffms_common.h"
namespace agi {
namespace ffms {

View File

@ -21,7 +21,7 @@
#include "config.h"
#include "libaegisub/media_video_frame.h"
#include "libmedia/video_frame.h"
#ifndef LAGI_PRE
#include <assert.h>

View File

@ -35,7 +35,7 @@
#endif
#include "ffms_video.h"
#include "libaegisub/media.h"
#include "libmedia/exception.h"
#include "libaegisub/util.h"
//#include "aegisub_endian.h"

View File

@ -25,10 +25,10 @@
//#include "ffmpegsource_common.h"
//#include "include/aegisub/video_provider.h"
#include "../../libffms/include/ffms.h"
#include "libaegisub/media_video_frame.h"
#include "libmedia/video_frame.h"
#include "libaegisub/vfr.h"
#include "libaegisub/exception.h"
#include "ffms_common.h"
#include "../common/ffms_common.h"
namespace agi {
namespace ffms {