Added WinCE project for pjmedia_test

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2105 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2008-07-05 11:53:45 +00:00
parent ca1f631f59
commit b5a4e77358
4 changed files with 21332 additions and 20 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,102 @@ Microsoft eMbedded Visual Tools Workspace File, Format Version 4.00
###############################################################################
Project: "PocketPJ"="..\..\..\pjsip-apps\src\pocketpj\PocketPJ.vcp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "libgsmcodec"="..\..\..\third_party\build\gsm\libgsmcodec.vcp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "libilbccodec"="..\..\..\third_party\build\ilbc\libilbccodec.vcp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "libportaudio"="..\..\..\third_party\build\portaudio\libportaudio.vcp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "libresample"="..\..\..\third_party\build\resample\libresample.vcp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "libspeex"="..\..\..\third_party\build\speex\libspeex.vcp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "libsrtp"="..\..\..\third_party\build\srtp\libsrtp.vcp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "pjlib_util_wince"="..\..\..\pjlib-util\build\wince-evc4\pjlib_util_wince.vcp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "pjlib_wince"="..\..\..\pjlib\build\wince-evc4\pjlib_wince.vcp" - Package Owner=<4>
Package=<5>
@ -27,6 +123,51 @@ Package=<4>
###############################################################################
Project: "pjmedia_test"=".\pjmedia_test.vcp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name libgsmcodec
End Project Dependency
Begin Project Dependency
Project_Dep_Name libilbccodec
End Project Dependency
Begin Project Dependency
Project_Dep_Name libportaudio
End Project Dependency
Begin Project Dependency
Project_Dep_Name libresample
End Project Dependency
Begin Project Dependency
Project_Dep_Name libspeex
End Project Dependency
Begin Project Dependency
Project_Dep_Name libsrtp
End Project Dependency
Begin Project Dependency
Project_Dep_Name pjlib_util_wince
End Project Dependency
Begin Project Dependency
Project_Dep_Name pjlib_wince
End Project Dependency
Begin Project Dependency
Project_Dep_Name pjmedia_codec_wince
End Project Dependency
Begin Project Dependency
Project_Dep_Name pjmedia_wince
End Project Dependency
Begin Project Dependency
Project_Dep_Name pjnath_wince
End Project Dependency
}}}
###############################################################################
Project: "pjmedia_wince"=".\pjmedia_wince.vcp" - Package Owner=<4>
Package=<5>
@ -39,6 +180,18 @@ Package=<4>
###############################################################################
Project: "pjnath_wince"="..\..\..\pjnath\build\wince-evc4\pjnath_wince.vcp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>

View File

@ -0,0 +1,64 @@
/* $Id:$ */
/*
* Copyright (C)2003-2008 Benny Prijono <benny@prijono.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <windows.h>
#include <stdio.h>
#include "test.h"
#define TITLE "PJMEDIA Test"
#define CAPTION "This will start pjmedia test. Please do not use the PDA while the test is in progress. The test may take couple of minutes to complete, and you will be notified again when it completes"
static FILE *fLog;
static void log_writer_cb(int level, const char *data, int len)
{
fwrite(data, len, 1, fLog);
}
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
int rc;
rc = MessageBox(0, TEXT(CAPTION), TEXT(TITLE), MB_OKCANCEL);
if (rc != IDOK)
return TRUE;
fLog = fopen("\\pjmedia-test.txt", "wt");
if (fLog == NULL) {
MessageBox(0, TEXT("Unable to create result file"), TEXT(TITLE), MB_OK);
return TRUE;
}
pj_log_set_log_func(&log_writer_cb);
rc = test_main();
fclose(fLog);
if (rc != 0) {
MessageBox(0, TEXT("Test failed"), TEXT(TITLE), MB_OK);
return TRUE;
}
MessageBox(0, TEXT("Test has been successful. Please see the result in \"\\pjmedia-test.txt\" file"),
TEXT(TITLE), 0);
return TRUE;
}