2011-02-06 00:49:26 +01:00
|
|
|
# $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 = \
|
2011-02-09 03:28:43 +01:00
|
|
|
common/audio_manager.cpp \
|
2011-02-09 05:41:40 +01:00
|
|
|
common/video_frame.cpp \
|
|
|
|
common/video_manager.cpp \
|
2011-02-06 04:09:59 +01:00
|
|
|
audio/downmix.cpp \
|
|
|
|
audio/convert.cpp \
|
2011-02-06 04:14:18 +01:00
|
|
|
audio/dummy_audio.cpp \
|
|
|
|
audio/pcm.cpp \
|
2011-02-06 19:48:42 +01:00
|
|
|
cache/audio_ram.cpp \
|
2011-02-06 20:52:50 +01:00
|
|
|
cache/audio_hd.cpp \
|
2011-02-06 20:28:17 +01:00
|
|
|
cache/video_cache.cpp \
|
2011-02-06 00:49:26 +01:00
|
|
|
$(SRC_OPT)
|
|
|
|
|
|
|
|
HEADERS = \
|
|
|
|
*/*.h \
|
|
|
|
include/libmedia/*.h \
|
|
|
|
|
|
|
|
|
|
|
|
include ../Makefile.target
|
|
|
|
-include */*.d
|