Add support for ICE/STUN/TURN in res_rtp_asterisk and chan_sip.
[asterisk/asterisk.git] / res / pjproject / pjmedia / build / os-win32.mak
1 # PJMEDIA features exclusion
2 export CFLAGS += 
3
4 # Define the desired sound device backend
5 # Valid values are:
6 #   - pa_unix:          PortAudio on Unix (OSS or ALSA)
7 #   - pa_darwinos:      PortAudio on MacOSX (CoreAudio)
8 #   - pa_old_darwinos:  PortAudio on MacOSX (old CoreAudio, for OSX 10.2)
9 #   - pa_win32:         PortAudio on Win32 (WMME)
10 #   - ds:               Win32 DirectSound (dsound.c)
11 #   - null:             Null sound device (nullsound.c)
12 AC_PJMEDIA_SND=pa_win32
13
14 #
15 # Codecs
16 #
17 AC_NO_G711_CODEC=0
18 AC_NO_L16_CODEC=0
19 AC_NO_GSM_CODEC=0
20 AC_NO_SPEEX_CODEC=0
21 AC_NO_ILBC_CODEC=0
22 AC_NO_G722_CODEC=0
23 AC_NO_G7221_CODEC=0
24
25 export CODEC_OBJS=
26
27 ifeq ($(AC_NO_G711_CODEC),1)
28 export CFLAGS += -DPJMEDIA_HAS_G711_CODEC=0
29 else
30 export CODEC_OBJS +=
31 endif
32
33 ifeq ($(AC_NO_L16_CODEC),1)
34 export CFLAGS += -DPJMEDIA_HAS_L16_CODEC=0
35 else
36 export CODEC_OBJS += l16.o
37 endif
38
39 ifeq ($(AC_NO_GSM_CODEC),1)
40 export CFLAGS += -DPJMEDIA_HAS_GSM_CODEC=0
41 else
42 export CODEC_OBJS += gsm.o
43 endif
44
45 ifeq ($(AC_NO_SPEEX_CODEC),1)
46 export CFLAGS += -DPJMEDIA_HAS_SPEEX_CODEC=0
47 else
48 export CFLAGS += -I$(THIRD_PARTY)/build/speex -I$(THIRD_PARTY)/speex/include
49 export CODEC_OBJS += speex_codec.o
50
51 #ifeq (@ac_no_speex_aec@,1)
52 ifeq (0,1)
53 export PJMEDIA_OBJS += echo_speex.o
54 endif
55
56 endif
57
58 ifeq ($(AC_NO_ILBC_CODEC),1)
59 export CFLAGS += -DPJMEDIA_HAS_ILBC_CODEC=0
60 else
61 export CODEC_OBJS += ilbc.o
62 endif
63
64 ifeq ($(AC_NO_G722_CODEC),1)
65 export CFLAGS += -DPJMEDIA_HAS_G722_CODEC=0
66 else
67 export CODEC_OBJS += g722.o g722/g722_enc.o g722/g722_dec.o
68 endif
69
70 ifeq ($(AC_NO_G7221_CODEC),1)
71 export CFLAGS += -DPJMEDIA_HAS_G7221_CODEC=0
72 else
73 export CODEC_OBJS += g7221.o
74 export G7221_CFLAGS += -I$(THIRD_PARTY)
75 endif
76
77
78 #
79 # PortAudio
80 #
81 ifneq ($(findstring pa,$(AC_PJMEDIA_SND)),)
82 export CFLAGS += -I$(THIRD_PARTY)/build/portaudio -I$(THIRD_PARTY)/portaudio/include -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_PORTAUDIO_SOUND
83 export SOUND_OBJS = pasound.o
84 endif
85
86 #
87 # Win32 DirectSound
88 #
89 ifeq ($(AC_PJMEDIA_SND),ds)
90 export SOUND_OBJS = dsound.o
91 export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_WIN32_DIRECT_SOUND
92 endif
93
94 #
95 # Last resort, null sound device
96 #
97 ifeq ($(AC_PJMEDIA_SND),null)
98 export SOUND_OBJS = nullsound.o
99 export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_NULL_SOUND
100 endif
101
102