summaryrefslogtreecommitdiff
path: root/configure-bb10
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2012-06-01 04:29:56 +0000
committerLiong Sauw Ming <ming@teluu.com>2012-06-01 04:29:56 +0000
commit1879ccebd5d2b1bfebaa08df0823ccb0937e8a53 (patch)
tree7a4f7c7bd0436202e4a0f8c8c2c699cbc3fbfd62 /configure-bb10
parent0bfacdd43428ec2981f5a7299b565e4608f13913 (diff)
Fixed #1521: Add initial support for BlackBerry 10 (BB10) platform.
Please visit http://trac.pjsip.org/repos/wiki/Getting-Started/BB10 for more details on how to build for BB10. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4150 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'configure-bb10')
-rwxr-xr-xconfigure-bb1038
1 files changed, 38 insertions, 0 deletions
diff --git a/configure-bb10 b/configure-bb10
new file mode 100755
index 00000000..4d1a5ddf
--- /dev/null
+++ b/configure-bb10
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+
+F="configure-bb10"
+
+if test "$*" = "--help" -o "$*" = "-h"; then
+ echo "$F [--simulator] [OPTIONS]"
+ echo ""
+ echo "where:"
+ echo " --simulator Optional parameter to specify that the compilation"
+ echo " target is a simulator."
+ echo " OPTIONS Other options that will be passed directly to"
+ echo " ./aconfigure script. Run ./aconfigure --help"
+ echo " for more info."
+ exit 0
+fi
+
+if test "$1" = "--simulator"; then
+ shift
+ TARGET_ARCH="x86"
+ TARGET_ARCHEND=${TARGET_ARCH}
+ LIBDIR=${TARGET_ARCH}
+ TARGET_HOST="i486-pc-nto-qnx8.0.0"
+else
+ TARGET_ARCH="armv7"
+ TARGET_ARCHEND="${TARGET_ARCH}le"
+ LIBDIR="armle-v7"
+ TARGET_HOST="arm-unknown-nto-qnx8.0.0eabi"
+fi
+
+RANLIB="${QNX_HOST}/usr/bin/nto${TARGET_ARCH}-ranlib "
+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 "
+export CFLAGS=" -g -fPIC -DPJMEDIA_AUDIO_DEV_HAS_BB10=1 "
+
+./configure --host=${TARGET_HOST} --disable-oss $*