forked from mia/Aegisub
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:
parent
66b6fdcfc8
commit
7a13a4fb10
6 changed files with 42 additions and 6 deletions
36
aegisub/libmedia/Makefile
Normal file
36
aegisub/libmedia/Makefile
Normal 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
|
|
@ -25,7 +25,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ffms_audio.h"
|
#include "ffms_audio.h"
|
||||||
#include "libaegisub/media.h"
|
#include "libmedia/exception.h"
|
||||||
|
|
||||||
namespace agi {
|
namespace agi {
|
||||||
namespace ffms {
|
namespace ffms {
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ffms_common.h"
|
#include "../common/ffms_common.h"
|
||||||
|
|
||||||
namespace agi {
|
namespace agi {
|
||||||
namespace ffms {
|
namespace ffms {
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "libaegisub/media_video_frame.h"
|
#include "libmedia/video_frame.h"
|
||||||
|
|
||||||
#ifndef LAGI_PRE
|
#ifndef LAGI_PRE
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ffms_video.h"
|
#include "ffms_video.h"
|
||||||
#include "libaegisub/media.h"
|
#include "libmedia/exception.h"
|
||||||
#include "libaegisub/util.h"
|
#include "libaegisub/util.h"
|
||||||
|
|
||||||
//#include "aegisub_endian.h"
|
//#include "aegisub_endian.h"
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
//#include "ffmpegsource_common.h"
|
//#include "ffmpegsource_common.h"
|
||||||
//#include "include/aegisub/video_provider.h"
|
//#include "include/aegisub/video_provider.h"
|
||||||
#include "../../libffms/include/ffms.h"
|
#include "../../libffms/include/ffms.h"
|
||||||
#include "libaegisub/media_video_frame.h"
|
#include "libmedia/video_frame.h"
|
||||||
#include "libaegisub/vfr.h"
|
#include "libaegisub/vfr.h"
|
||||||
#include "libaegisub/exception.h"
|
#include "libaegisub/exception.h"
|
||||||
#include "ffms_common.h"
|
#include "../common/ffms_common.h"
|
||||||
|
|
||||||
namespace agi {
|
namespace agi {
|
||||||
namespace ffms {
|
namespace ffms {
|
||||||
|
|
Loading…
Reference in a new issue