diff options
author | Benny Prijono <bennylp@teluu.com> | 2013-04-15 10:37:59 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2013-04-15 10:37:59 +0000 |
commit | a7c6c42af5c8480282735800897d29109147b833 (patch) | |
tree | e5b771e62475796b7dfbd997f8d414650b909e0a /configure-bb10 | |
parent | 5222a5bef69a2034830f9ed223abae1635a24ad5 (diff) |
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
Diffstat (limited to 'configure-bb10')
-rwxr-xr-x | configure-bb10 | 13 |
1 files changed, 12 insertions, 1 deletions
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 + + |