summaryrefslogtreecommitdiff
path: root/build.symbian
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-06-17 12:34:18 +0000
committerBenny Prijono <bennylp@teluu.com>2009-06-17 12:34:18 +0000
commit0af5425964a96194759fcdb4c67043ad253ef58c (patch)
treece72d4b218af540b10a65c4de1f9b7ee9b6a733f /build.symbian
parent5d320b2635275397f866c650084e9dbd7a3932a4 (diff)
Ticket #887: Re-enable compile as C++ option for libraries as part of making exception work in Symbian
- also added pjlib-test in bld.inf - added pjlib-test.pkg - changed hash.c to hash_test.c in pjlib_test git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2768 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'build.symbian')
-rw-r--r--build.symbian/bld.inf1
-rw-r--r--build.symbian/pjlib.mmp6
-rw-r--r--build.symbian/pjlib_test.mmp11
-rw-r--r--build.symbian/pjlib_test.pkg18
-rw-r--r--build.symbian/pjlib_util.mmp6
-rw-r--r--build.symbian/pjmedia.mmp8
-rw-r--r--build.symbian/pjsdp.mmp6
-rw-r--r--build.symbian/pjsip.mmp6
-rw-r--r--build.symbian/pjsip_simple.mmp6
-rw-r--r--build.symbian/pjsip_ua.mmp6
-rw-r--r--build.symbian/pjsua_lib.mmp6
11 files changed, 75 insertions, 5 deletions
diff --git a/build.symbian/bld.inf b/build.symbian/bld.inf
index f8dd3602..b516a1d9 100644
--- a/build.symbian/bld.inf
+++ b/build.symbian/bld.inf
@@ -35,3 +35,4 @@ pjmedia_audiodev.mmp
symbian_ua.mmp
..\pjsip-apps\src\symbian_ua_gui\group\symbian_ua_gui.mmp
gnumakefile ..\pjsip-apps\src\symbian_ua_gui\group\Icons_aif_scalable_dc.mk
+pjlib_test.mmp
diff --git a/build.symbian/pjlib.mmp b/build.symbian/pjlib.mmp
index 3b2e9cf8..ec4a9902 100644
--- a/build.symbian/pjlib.mmp
+++ b/build.symbian/pjlib.mmp
@@ -22,6 +22,12 @@ SOURCEPATH ..\pjlib\src\pj
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
+// Must compile as C++, otherwise exception would not work
+OPTION CW -lang c++
+OPTION ARMCC --cpp
+OPTION GCC -x c++
+OPTION GCCE -x c++
+
//
// Platform independent source
//
diff --git a/build.symbian/pjlib_test.mmp b/build.symbian/pjlib_test.mmp
index 13783c2f..f779591a 100644
--- a/build.symbian/pjlib_test.mmp
+++ b/build.symbian/pjlib_test.mmp
@@ -8,6 +8,12 @@ SOURCEPATH ..\pjlib\src\pjlib-test
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
+// Must compile as C++, otherwise exception would not work
+OPTION CW -lang c++
+OPTION ARMCC --cpp
+OPTION GCC -x c++
+OPTION GCCE -x c++
+
#if defined(PJ_BUILD_DLL)
MACRO PJ_DLL
LIBRARY pjlib.lib
@@ -24,7 +30,7 @@ SOURCE errno.c
SOURCE exception.c
SOURCE fifobuf.c
SOURCE file.c
-SOURCE hash.c
+SOURCE hash_test.c
SOURCE ioq_perf.c
SOURCE ioq_tcp.c
SOURCE ioq_udp.c
@@ -63,3 +69,6 @@ LIBRARY esock.lib insock.lib charconv.lib euser.lib estlib.lib
STATICLIBRARY eexe.lib ecrt0.lib
#endif
+// Need a bit of mem for logging in the app.
+EPOCSTACKSIZE 32768
+
diff --git a/build.symbian/pjlib_test.pkg b/build.symbian/pjlib_test.pkg
new file mode 100644
index 00000000..758769f9
--- /dev/null
+++ b/build.symbian/pjlib_test.pkg
@@ -0,0 +1,18 @@
+; pjlib_test.pkg
+
+; Languages
+&EN
+
+; Header
+;#{"pjlib_test"},(0x200235D3), 0, 1, 1
+#{"pjlib_test"},(0xA000000D), 0, 1, 1
+
+; Platform compatibility
+[0x101F7961], *, *, *,{"Series60ProductID"}
+
+; vendor
+%{"PJSIP"}
+:"PJSIP"
+
+; Target
+"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\pjlib_test.exe"-"!:\sys\bin\pjlib_test.exe"
diff --git a/build.symbian/pjlib_util.mmp b/build.symbian/pjlib_util.mmp
index c2d6ebec..bdfab845 100644
--- a/build.symbian/pjlib_util.mmp
+++ b/build.symbian/pjlib_util.mmp
@@ -22,6 +22,12 @@ SOURCEPATH ..\pjlib-util\src\pjlib-util
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
+// Must compile as C++, otherwise exception would not work
+OPTION CW -lang c++
+OPTION ARMCC --cpp
+OPTION GCC -x c++
+OPTION GCCE -x c++
+
//
// PJLIB-UTIL files
//
diff --git a/build.symbian/pjmedia.mmp b/build.symbian/pjmedia.mmp
index a712f610..7dd9fc79 100644
--- a/build.symbian/pjmedia.mmp
+++ b/build.symbian/pjmedia.mmp
@@ -20,8 +20,6 @@ TARGETTYPE lib
SOURCEPATH ..\pjmedia\src\pjmedia
-//OPTION CW -lang c++
-
//
// GCCE optimization setting
//
@@ -30,6 +28,12 @@ OPTION GCCE -O2 -fno-unit-at-a-time
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
+// Must compile as C++, otherwise exception would not work
+OPTION CW -lang c++
+OPTION ARMCC --cpp
+OPTION GCC -x c++
+OPTION GCCE -x c++
+
//
// Platform independent source
//
diff --git a/build.symbian/pjsdp.mmp b/build.symbian/pjsdp.mmp
index e8b41b84..97155509 100644
--- a/build.symbian/pjsdp.mmp
+++ b/build.symbian/pjsdp.mmp
@@ -22,6 +22,12 @@ SOURCEPATH ..\pjmedia\src\pjmedia
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
+// Must compile as C++, otherwise exception would not work
+OPTION CW -lang c++
+OPTION ARMCC --cpp
+OPTION GCC -x c++
+OPTION GCCE -x c++
+
//
// Platform independent source
//
diff --git a/build.symbian/pjsip.mmp b/build.symbian/pjsip.mmp
index e3e2bc29..57c61160 100644
--- a/build.symbian/pjsip.mmp
+++ b/build.symbian/pjsip.mmp
@@ -25,6 +25,12 @@ SOURCEPATH ..\pjsip\src\pjsip
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
+// Must compile as C++, otherwise exception would not work
+OPTION CW -lang c++
+OPTION ARMCC --cpp
+OPTION GCC -x c++
+OPTION GCCE -x c++
+
// PJSIP-CORE files
//SOURCE sip_auth_aka.c
diff --git a/build.symbian/pjsip_simple.mmp b/build.symbian/pjsip_simple.mmp
index b02d1423..a6ddbf2d 100644
--- a/build.symbian/pjsip_simple.mmp
+++ b/build.symbian/pjsip_simple.mmp
@@ -25,6 +25,12 @@ SOURCEPATH ..\pjsip\src\pjsip-simple
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
+// Must compile as C++, otherwise exception would not work
+OPTION CW -lang c++
+OPTION ARMCC --cpp
+OPTION GCC -x c++
+OPTION GCCE -x c++
+
// PJSIP-SIMPLE files
SOURCE errno.c
diff --git a/build.symbian/pjsip_ua.mmp b/build.symbian/pjsip_ua.mmp
index 582873e7..11b5e9a7 100644
--- a/build.symbian/pjsip_ua.mmp
+++ b/build.symbian/pjsip_ua.mmp
@@ -25,7 +25,11 @@ SOURCEPATH ..\pjsip\src\pjsip-ua
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
-//OPTION CW -lang c++
+// Must compile as C++, otherwise exception would not work
+OPTION CW -lang c++
+OPTION ARMCC --cpp
+OPTION GCC -x c++
+OPTION GCCE -x c++
// PJSIP-UA files
diff --git a/build.symbian/pjsua_lib.mmp b/build.symbian/pjsua_lib.mmp
index 5e8113d9..0b197819 100644
--- a/build.symbian/pjsua_lib.mmp
+++ b/build.symbian/pjsua_lib.mmp
@@ -25,7 +25,11 @@ SOURCEPATH ..\pjsip\src\pjsua-lib
MACRO PJ_M_I386=1
MACRO PJ_SYMBIAN=1
-// OPTION CW -lang c++
+// Must compile as C++, otherwise exception would not work
+OPTION CW -lang c++
+OPTION ARMCC --cpp
+OPTION GCC -x c++
+OPTION GCCE -x c++
// PJLIB-UTIL files