]> rtime.felk.cvut.cz Git - frescor/demo.git/blob - build/Makefile.omk.ffmpeg
Use actual version of ffmpeg and streamer
[frescor/demo.git] / build / Makefile.omk.ffmpeg
1 lib_LIBRARIES:=$(NAME)
2 $(NAME)_SOURCES:=$(OBJS:%.o=%.c) $(OBJS-y:%.o=%.c) $(OBJS-yes:%.o=%.c)
3 renamed_include_HEADERS = $(foreach h,$(HEADERS),$(h)->lib$(NAME)/$(h) )
4 INCLUDES += -I $(dir $(srcdir:%/=%)) # this should point to ffmpeg sources
5
6 ifeq ($(FFMPEG_SUBDIR),ffmpeg)
7 SUBDIRS = tools libavcodec libavdevice libavfilter libavformat  \
8           libavutil libpostproc libswscale
9 renamed_include_HEADERS=
10
11 ifneq ($(CONFIG_FFMPEG_WITH_FRSH),y)
12 bin_PROGRAMS = ffmpeg #pktdumper
13 endif
14 pktdumper_SOURCES = tools/pktdumper.c
15 pktdumper_LIBS = avformat
16
17 ffmpeg_SOURCES = ffmpeg.c cmdutils.c
18 lib_LOADLIBES = $(ALLFFLIBS) $(FFEXTRALIBS:-l%=%)
19 endif
20
21 ifeq ($(FFMPEG_SUBDIR),libavcodec)
22 SUBDIRS=x86
23 HEADERS += audioconvert.h
24 endif
25
26 ifeq ($(FFMPEG_SUBDIR),libavutil)
27 renamed_include_HEADERS += internal.h->libavutil/internal.h
28 renamed_include_HEADERS += timer.h->libavutil/timer.h
29 renamed_include_HEADERS += x86/timer.h->libavutil/x86/timer.h
30 endif
31
32 ifeq ($(FFMPEG_SUBDIR),libavformat)
33 HEADERS += os_support.h
34 default_CONFIG += CONFIG_FFMPEG_WITH_FRSH=x
35 LOCAL_CONFIG_H = libavformat_config.h
36 $(NAME)_SOURCES += frsh.c
37 endif