Make --with-pjproject-bundled the default for Asterisk 15
[asterisk/asterisk.git] / third-party / pjproject / Makefile.rules
1 PJPROJECT_URL ?= https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/$(PJPROJECT_VERSION)
2
3 # PJPROJECT_CONFIGURE_OPTS could come from the command line or could be
4 # set/modified by configure.m4 if the build or host tuples aren't the same
5 # as the current build environment (cross-compile).
6 # Even though we're not installing pjproject, we're setting prefix to /opt/pjproject to be safe
7
8 PJPROJECT_CONFIG_OPTS = $(PJPROJECT_CONFIGURE_OPTS) --prefix=/opt/pjproject \
9         --disable-speex-codec \
10         --disable-speex-aec \
11         --disable-speex-aec \
12         --disable-gsm-codec \
13         --disable-ilbc-codec \
14         --disable-l16-codec \
15         --disable-g722-codec \
16         --disable-g7221-codec \
17         --disable-opencore-amr \
18         --disable-silk \
19         --disable-opus \
20         --disable-video \
21         --disable-v4l2 \
22         --disable-sound \
23         --disable-ext-sound \
24         --disable-oss \
25         --disable-sdl \
26         --disable-libyuv \
27         --disable-ffmpeg \
28         --disable-openh264 \
29         --disable-ipp \
30         --disable-libwebrtc \
31         --without-external-pa \
32         --without-external-srtp \
33         --without-external-webrtc
34
35 ifeq ($(findstring TEST_FRAMEWORK,$(MENUSELECT_CFLAGS)),)
36     PJPROJECT_CONFIG_OPTS += --disable-resample --disable-g711-codec
37 endif
38
39 ifeq ($(shell uname -s),Linux)
40     PJPROJECT_CONFIG_OPTS +=  --enable-epoll
41 endif