Revision e11386c0 common.mak

View differences:

common.mak
3 3
#basically these are ffmpeg-related
4 4

  
5 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
6 13
CFLAGS = -pthread -g -O0 -Wall
7
CFLAGS += -DHAVE_OPENGL -Wl,--warn-common -Wl,--as-needed -Wl,-Bsymbolic
8
CPPFLAGS += -I../chunk_transcoding -I../
9 14
LDFLAGS += -pthread
10 15
DYNAMIC_LDLIBS += -lm
16
endif
17

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

  
12 21
#default fmmpeg here
13 22
LOCAL_FFMPEG_CPPFLAGS = -I$(LOCAL_FFMPEG)/include
14 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
15 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
16 30

  
17 31
LOCAL_COMMON_CPPFLAGS = -I$(LOCAL_X264)/include -I$(LOCAL_BZ2)/include -I$(LOCAL_Z)/include -I$(LOCAL_MP3LAME)/include
18 32
#LOCAL_COMMON_LDFLAGS = -L$(LOCAL_X264)/lib -L$(LOCAL_BZ2)/lib -L$(LOCAL_MP3LAME)/lib

Also available in: Unified diff