Statistics
| Branch: | Revision:

chunker-player / common.mak @ 0cd6b05d

History | View | Annotate | Download (1.59 KB)

1
#the following external libraries are needed by both
2
#the chunker_streamer and the chunker_player
3
#basically these are ffmpeg-related
4

    
5
#default stuff from here on
6
ifeq ($(LD),i586-mingw32msvc-ld)
7
WINDOWS = 1
8
endif
9

    
10
ifdef WINDOWS
11
CFLAGS = -g -O0 -Wall
12
else
13
CFLAGS = -pthread -g -O0 -Wall
14
LDFLAGS += -pthread
15
DYNAMIC_LDLIBS += -lm -lrt
16
endif
17

    
18
CFLAGS += -DHAVE_OPENGL -Wl,--warn-common -Wl,--as-needed -Wl,-Bsymbolic
19
CPPFLAGS += -I../chunk_transcoding -I../ -I../../../NAPA-BASELIBS/include
20

    
21
#default fmmpeg here
22
LOCAL_FFMPEG_CPPFLAGS = -I$(LOCAL_FFMPEG)/include
23
#LOCAL_FFMPEG_LDFLAGS = -L$(LOCAL_FFMPEG)/lib
24

    
25
ifdef WINDOWS
26
LOCAL_FFMPEG_LDLIBS = $(LOCAL_FFMPEG)/lib/libavdevice.a $(LOCAL_FFMPEG)/lib/libavformat.a $(LOCAL_FFMPEG)/lib/libavcodec.a $(LOCAL_FFMPEG)/lib/libavutil.a $(LOCAL_FFMPEG)/lib/libswscale.a -lws2_32
27
else
28
LOCAL_FFMPEG_LDLIBS = $(LOCAL_FFMPEG)/lib/libavdevice.a $(LOCAL_FFMPEG)/lib/libavformat.a $(LOCAL_FFMPEG)/lib/libavcodec.a $(LOCAL_FFMPEG)/lib/libavutil.a $(LOCAL_FFMPEG)/lib/libswscale.a
29
endif
30

    
31
LOCAL_COMMON_CPPFLAGS = -I$(LOCAL_X264)/include -I$(LOCAL_BZ2)/include -I$(LOCAL_Z)/include -I$(LOCAL_MP3LAME)/include
32
#LOCAL_COMMON_LDFLAGS = -L$(LOCAL_X264)/lib -L$(LOCAL_BZ2)/lib -L$(LOCAL_MP3LAME)/lib
33
LOCAL_COMMON_LDLIBS = $(LOCAL_X264)/lib/libx264.a $(LOCAL_BZ2)/lib/libbz2.a $(LOCAL_Z)/lib/libz.a $(LOCAL_MP3LAME)/lib/libmp3lame.a ../../../NAPA-BASELIBS/rep/librep.a ../../../NAPA-BASELIBS/dclog/libdclog.a ../../../NAPA-BASELIBS/common/libcommon.a ../../../NAPA-BASELIBS/ml/libml.a
34
LOCAL_COMMON_LDLIBS += ../../../3RDPARTY-LIBS/libevent/lib/libevent.a -L../../../3RDPARTY-LIBS/libconfuse/lib/libconfuse.a