From a7c6c42af5c8480282735800897d29109147b833 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 15 Apr 2013 10:37:59 +0000 Subject: Re #1657: BB Integration: - The configure-bb10 now outputs pjsip.pri to be included by application's .pro file in order to get PJSIP's settings included in the app's project - The configure-bb10 now also sets PJ_CONFIG_BB10 macro for platform detection by lib/app git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4468 74dad513-b988-da41-8d7b-12977e46ad98 --- configure-bb10 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'configure-bb10') diff --git a/configure-bb10 b/configure-bb10 index e29f52f4..70da2de4 100755 --- a/configure-bb10 +++ b/configure-bb10 @@ -33,6 +33,17 @@ CPP="${QNX_HOST}/usr/bin/qcc -V4.6.3,gcc_nto${TARGET_ARCHEND}_cpp -E " CC="${QNX_HOST}/usr/bin/qcc -V4.6.3,gcc_nto${TARGET_ARCHEND}_cpp " LD="${QNX_HOST}/usr/bin/nto${TARGET_ARCH}-ld " export LDFLAGS=" -L${QNX_TARGET}/${LIBDIR}/usr/lib -L${QNX_TARGET}/${LIBDIR}/lib -L${QNX_HOST}/usr/lib/gcc/${TARGET_HOST}/4.6.3 -lgcc -lasound -laudio_manager" -export CFLAGS=" -g -fPIC -DPJMEDIA_AUDIO_DEV_HAS_BB10=1 " +export CFLAGS=" -g -fPIC -DPJ_CONFIG_BB10=1 -DPJMEDIA_AUDIO_DEV_HAS_BB10=1" +# Invoke configure ./configure --host=${TARGET_HOST} --disable-oss $* +RETVAL=$? + +# Write to pjsip.pri only if configure was successful +if test $RETVAL -eq 0; then + echo "# Config file to be included in app's .pro file" > pjsip.pri + echo "# Auto-generated by 'configure-bb10 $*'" >> pjsip.pri + make -f bb10-config.mak >> pjsip.pri +fi + + -- cgit v1.2.3