Changeset 680
- Timestamp:
- Aug 14, 2006 12:55:27 AM (18 years ago)
- Location:
- pjproject/branches/symbian
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/symbian/build/cc-mwcc.mak
r679 r680 2 2 export AR = echo ar 3 3 export LD = mwldsym2.exe -sym full -subsystem windows -msgstyle parseable -nowraplines -nodefaultlibs -addcommand export:_E32Dll\=__E32Dll -shared -export dllexport -stdlib -L"C:\Symbian\9.1\S60_3rd\Epoc32\release\winscw\udeb" -L"C:\Program Files\Carbide\plugins\com.nokia.carbide.cpp.support_1.0.0\Symbian_Support\Runtime\Runtime_x86\Runtime_Win32\Libs" -ledll.lib -leuser.lib -lestlib.lib 4 5 #mwldsym2.exe -sym full -subsystem windows -msgstyle parseable -nowraplines -nodefaultlibs -stdlib -L"C:\Symbian\9.1\S60_3rd\Epoc32\release\winscw\udeb" -L"C:\Program Files\Carbide\plugins\com.nokia.carbide.cpp.support_1.0.0\Symbian_Support\Runtime\Runtime_x86\Runtime_Win32\Libs" 6 #DLL -addcommand export:_E32Dll\=__E32Dll -shared -export dllexport 7 #o 8 # -ledll.lib -leuser.lib -lestlib.lib 9 export LDEXE = mwldsym2.exe -sym full -subsystem windows -msgstyle parseable -nowraplines -nodefaultlibs -stdlib -L"C:\Symbian\9.1\S60_3rd\epoc32\release\winscw\udeb" -noimplib -m="?_E32Bootstrap@@YGXXZ" -leexe.lib -leuser.lib 4 10 export LDOUT = -o 5 11 export RANLIB = echo ranlib … … 18 24 export CC_CFLAGS := -sym full -wchar_t off -align 4 -enum int -str pool -nostdinc -exc ms -inline off -msgstyle parseable -nowraplines -O0 -D_UNICODE -D__SYMBIAN32__ -D__CW32__ -D__WINS__ -D__DLL__ -D__WINSCW__ -D_DEBUG -D__SUPPORT_CPP_EXCEPTIONS__ -D__SERIES60_30__ -D__SERIES60_3X__ -w cmdline -w pragmas -w empty -w possible -w unusedvar -w extracomma -w pedantic -w largeargs -w ptrintconv -w tokenpasting -w missingreturn 19 25 #export CC_CFLAGS += -Wdeclaration-after-statement 20 export CC_CXXFLAGS := 26 export CC_CXXFLAGS := -sym full -wchar_t off -align 4 -enum int -str pool -nostdinc -exc ms -inline off -msgstyle parseable -nowraplines -O0 -D_UNICODE -D__SYMBIAN32__ -D__CW32__ -D__WINS__ -D__DLL__ -D__WINSCW__ -D_DEBUG -D__SUPPORT_CPP_EXCEPTIONS__ -D__SERIES60_30__ -D__SERIES60_3X__ -w cmdline -w pragmas -w empty -w possible -w unusedvar -w extracomma -w pedantic -w largeargs -w ptrintconv -w tokenpasting -w missingreturn 21 27 export CC_LDFLAGS := 22 28 export MWLibraries=C:\Program Files\Carbide\plugins\com.nokia.carbide.cpp.support_1.0.0\Symbian_Support\Win32-x86 Support\Libraries\Win32 SDK;C:\Program Files\Carbide\plugins\com.nokia.carbide.cpp.support_1.0.0\Symbian_Support\MSL\MSL_C\MSL_Common\Include;C:\Program Files\Carbide\plugins\com.nokia.carbide.cpp.support_1.0.0\Symbian_Support\MSL\MSL_C\MSL_Win32\Include;C:\Program Files\Carbide\plugins\com.nokia.carbide.cpp.support_1.0.0\Symbian_Support\MSL\MSL_C++\MSL_Common\Include;C:\Program Files\Carbide\plugins\com.nokia.carbide.cpp.support_1.0.0\Symbian_Support\Runtime\Runtime_x86\Runtime_Win32\Libs -
pjproject/branches/symbian/build/os-symbian.mak
r679 r680 1 1 export OS_CFLAGS := $(CC_DEF)PJ_SYMBIAN=1 -include "$(SYMBIAN_SDK_PATH)/include/variant/Symbian_OS_v9.1.hrh" -i- $(CC_INC)$(SYMBIAN_SDK_PATH)/include $(CC_INC)$(SYMBIAN_SDK_PATH)/include/variant $(CC_INC)$(SYMBIAN_SDK_PATH)/include/libc $(CC_INC)../src/pjlib-test -O 2 2 3 export OS_CXXFLAGS :=3 export OS_CXXFLAGS := $(CC_DEF)PJ_SYMBIAN=1 -include "$(SYMBIAN_SDK_PATH)/include/variant/Symbian_OS_v9.1.hrh" -i- $(CC_INC)$(SYMBIAN_SDK_PATH)/include $(CC_INC)$(SYMBIAN_SDK_PATH)/include/variant $(CC_INC)$(SYMBIAN_SDK_PATH)/include/libc $(CC_INC)../src/pjlib-test -O 4 4 5 5 export OS_LDFLAGS := -
pjproject/branches/symbian/build/rules.mak
r679 r680 80 80 81 81 $(EXE): $(BINDIR) $(OBJDIRS) $(OBJS) $($(APP)_EXTRA_DEP) 82 $(LD ) $(LDOUT)$(subst /,$(HOST_PSEP),$(EXE)) \82 $(LDEXE) $(LDOUT)$(subst /,$(HOST_PSEP),$(EXE)) \ 83 83 $(subst /,$(HOST_PSEP),$(OBJS)) $($(APP)_LDFLAGS) 84 84 -
pjproject/branches/symbian/pjlib/build/Makefile
r496 r680 43 43 util.o 44 44 export TEST_CFLAGS += $(_CFLAGS) 45 export TEST_CXXFLAGS += $(_CXXFLAGS) 45 46 export TEST_LDFLAGS += $(_LDFLAGS) 46 47 export TEST_EXE := ../bin/pjlib-test-$(TARGET_NAME)$(HOST_EXE) -
pjproject/branches/symbian/pjlib/build/os-symbian.mak
r496 r680 13 13 os_error_unix.o os_time_unix.o \ 14 14 os_timestamp_common.o os_timestamp_posix.o \ 15 pool_policy_malloc.o compat/string.o sock_bsd.o sock_select.o 15 pool_policy_malloc.o compat/string.o sock_bsd.o sock_select.o 16 16 17 17 # … … 19 19 # the test application. 20 20 # 21 export TEST_OBJS += main.o21 export TEST_OBJS += main.o main_symbian.o 22 22 23 23 # … … 30 30 # Additional LDFLAGS for pjlib-test 31 31 # 32 export TEST_LDFLAGS += 32 export TEST_LDFLAGS += 33 33 34 34 # … … 39 39 40 40 41 -
pjproject/branches/symbian/pjlib/src/pj/os_core_symbian.cpp
r666 r680 66 66 * This is the main entry for all threads. 67 67 */ 68 TInt *thread_main(TAny *param)68 TInt thread_main(TAny *param) 69 69 { 70 70 pj_thread_t *rec = (pj_thread_t *) param; 71 TInt *result;71 TInt result; 72 72 /* pj_status_t rc; */ 73 73 … … 75 75 76 76 /* Call user's entry! */ 77 result = (TInt *)(long)(*rec->proc)(rec->arg);77 result = (TInt)(*rec->proc)(rec->arg); 78 78 79 79 /* Done. */ … … 119 119 rec->proc = proc; 120 120 rec->arg = arg; 121 _LIT( KThreadName, "A name");122 rc = rec->thread.Create(KThreadName, thread_main, 4096, KMinHeapSize, 256*16, rec->arg, EOwner Process);121 _LIT( KThreadName, "Athread"); 122 rc = rec->thread.Create(KThreadName, thread_main, 4096, KMinHeapSize, 256*16, rec->arg, EOwnerThread); 123 123 if (rc != 0) { 124 124 return PJ_RETURN_OS_ERROR(rc); … … 131 131 } 132 132 133 /* 134 * pj_thread-get_name() 135 */ 136 PJ_DEF(const char*) pj_thread_get_name(pj_thread_t *p) 137 { 138 pj_thread_t *rec = (pj_thread_t*)p; 139 140 return rec->obj_name; 141 } 142 143 /* 144 * pj_thread_resume() 145 */ 146 PJ_DEF(pj_status_t) pj_thread_resume(pj_thread_t *p) 147 { 148 pj_status_t rc; 149 150 pj_thread_t *rec = (pj_thread_t*)p; 151 152 rec->thread.Resume(); 153 154 rc = PJ_SUCCESS; 155 156 return rc; 157 } 158 159 /* 160 * pj_thread_this() 161 */ 162 PJ_DEF(pj_thread_t*) pj_thread_this(void) 163 { 164 // TODO 165 return NULL; 166 } 167 168 /* 169 * pj_thread_join() 170 */ 171 PJ_DEF(pj_status_t) pj_thread_join(pj_thread_t *p) 172 { 173 pj_thread_t *rec = (pj_thread_t *)p; 174 TRequestStatus result; 175 176 //PJ_LOG(6, (pj_thread_this()->obj_name, "Joining thread %s", p->obj_name)); 177 178 rec->thread.Rendezvous(result); 179 180 return PJ_SUCCESS; 181 } 182 183 /* 184 * pj_thread_destroy() 185 */ 186 PJ_DEF(pj_status_t) pj_thread_destroy(pj_thread_t *p) 187 { 188 pj_thread_t *rec = (pj_thread_t *)p; 189 rec->thread.Kill(1); 190 191 192 return PJ_SUCCESS; 193 } 194 195 /* 196 * pj_thread_sleep() 197 */ 198 PJ_DEF(pj_status_t) pj_thread_sleep(unsigned msec) 199 { 200 if (sleep(msec * 1000) == 0) 201 return PJ_SUCCESS; 202 } 203 204 133 205 /////////////////////////////////////////////////////////////////////////////// 134 206 /* 135 207 * pj_thread_local_alloc() 136 208 */ 209 137 210 PJ_DEF(pj_status_t) pj_thread_local_alloc(long *index) 138 211 { … … 175 248 pj_mutex_t **mutex ) 176 249 { 250 (*mutex) = (pj_mutex_t *)1; 177 251 return PJ_SUCCESS; 178 252 } … … 187 261 188 262 /* 263 * pj_mutex_trylock() 264 */ 265 PJ_DEF(pj_status_t) pj_mutex_trylock(pj_mutex_t *mutex) 266 { 267 return PJ_SUCCESS; 268 } 269 270 /* 189 271 * pj_mutex_unlock() 190 272 */
Note: See TracChangeset
for help on using the changeset viewer.