Commit 4663f9da authored by Ghislain MARY's avatar Ghislain MARY

Visual Studio project working on Windows Phone 8.

parent be490508
// belle-sip-tester-native.cpp
#include "pch.h"
#include "belle-sip-tester-native.h"
using namespace belle_sip_tester_native;
using namespace Platform;
CainSipTesterNative::CainSipTesterNative()
{
}
void CainSipTesterNative::run()
{
belle_sip_tester_run_tests("Resolver", 0);
}
#pragma once
extern "C" {
int belle_sip_tester_run_tests(char *suite_name, char *test_name);
}
namespace belle_sip_tester_native
{
public ref class CainSipTesterNative sealed
{
public:
CainSipTesterNative();
void run();
};
}
\ No newline at end of file
//
// pch.cpp
// Include the standard header and generate the precompiled header.
//
#include "pch.h"
//
// pch.h
// Header for standard system include files.
//
#pragma once
......@@ -3,13 +3,29 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2012 for Windows Phone
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "belle-sip-tester-wp8", "belle-sip-tester-wp8\belle-sip-tester-wp8.csproj", "{2CEBCF29-6B23-46C2-B579-588321228F3E}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "belle-sip-tester-native", "belle-sip-tester-native\belle-sip-tester-native.vcxproj", "{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}"
ProjectSection(ProjectDependencies) = postProject
{4C225A82-800B-427B-BA7B-61686A9B347F} = {4C225A82-800B-427B-BA7B-61686A9B347F}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cunit", "..\..\..\..\cunit\build\windows\cunit\cunit.vcxproj", "{902DAF1D-EBF1-4D03-B598-143500A50AB4}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libantlr3c", "..\..\..\..\antlr3\runtime\C\build\vsx\libantlr3c\libantlr3c.vcxproj", "{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "belle-sip", "..\belle-sip\belle-sip.vcxproj", "{4C225A82-800B-427B-BA7B-61686A9B347F}"
ProjectSection(ProjectDependencies) = postProject
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9} = {8FA74260-151B-429B-83EF-3CF3EAC8CFD9}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|Win32 = Debug|Win32
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|Win32 = Release|Win32
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
......@@ -19,6 +35,9 @@ Global
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Debug|ARM.ActiveCfg = Debug|ARM
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Debug|ARM.Build.0 = Debug|ARM
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Debug|ARM.Deploy.0 = Debug|ARM
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Debug|Win32.ActiveCfg = Debug|x86
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Debug|Win32.Build.0 = Debug|x86
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Debug|Win32.Deploy.0 = Debug|x86
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Debug|x86.ActiveCfg = Debug|x86
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Debug|x86.Build.0 = Debug|x86
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Debug|x86.Deploy.0 = Debug|x86
......@@ -28,9 +47,68 @@ Global
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Release|ARM.ActiveCfg = Release|ARM
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Release|ARM.Build.0 = Release|ARM
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Release|ARM.Deploy.0 = Release|ARM
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Release|Win32.ActiveCfg = Release|x86
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Release|Win32.Build.0 = Release|x86
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Release|Win32.Deploy.0 = Release|x86
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Release|x86.ActiveCfg = Release|x86
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Release|x86.Build.0 = Release|x86
{2CEBCF29-6B23-46C2-B579-588321228F3E}.Release|x86.Deploy.0 = Release|x86
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Debug|Any CPU.ActiveCfg = Debug|Win32
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Debug|ARM.ActiveCfg = Debug|ARM
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Debug|ARM.Build.0 = Debug|ARM
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Debug|Win32.ActiveCfg = Debug|Win32
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Debug|Win32.Build.0 = Debug|Win32
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Debug|x86.ActiveCfg = Debug|Win32
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Debug|x86.Build.0 = Debug|Win32
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Release|Any CPU.ActiveCfg = Release|Win32
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Release|ARM.ActiveCfg = Release|ARM
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Release|ARM.Build.0 = Release|ARM
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Release|Win32.ActiveCfg = Release|Win32
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Release|Win32.Build.0 = Release|Win32
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Release|x86.ActiveCfg = Release|Win32
{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}.Release|x86.Build.0 = Release|Win32
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Debug|Any CPU.ActiveCfg = Debug|Win32
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Debug|ARM.ActiveCfg = Debug|ARM
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Debug|ARM.Build.0 = Debug|ARM
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Debug|Win32.ActiveCfg = Debug|Win32
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Debug|Win32.Build.0 = Debug|Win32
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Debug|x86.ActiveCfg = Debug|Win32
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Debug|x86.Build.0 = Debug|Win32
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Release|Any CPU.ActiveCfg = Release|Win32
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Release|ARM.ActiveCfg = Release|ARM
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Release|ARM.Build.0 = Release|ARM
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Release|Win32.ActiveCfg = Release|Win32
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Release|Win32.Build.0 = Release|Win32
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Release|x86.ActiveCfg = Release|Win32
{902DAF1D-EBF1-4D03-B598-143500A50AB4}.Release|x86.Build.0 = Release|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|Any CPU.ActiveCfg = Debug|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|ARM.ActiveCfg = Debug|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|ARM.Build.0 = Debug|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|Win32.ActiveCfg = Debug|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|Win32.Build.0 = Debug|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|x86.ActiveCfg = Debug|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|x86.Build.0 = Debug|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|Any CPU.ActiveCfg = Release|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|ARM.ActiveCfg = Release|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|ARM.Build.0 = Release|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|Win32.ActiveCfg = Release|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|Win32.Build.0 = Release|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|x86.ActiveCfg = Release|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|x86.Build.0 = Release|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Debug|Any CPU.ActiveCfg = Debug|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Debug|ARM.ActiveCfg = Debug|ARM
{4C225A82-800B-427B-BA7B-61686A9B347F}.Debug|ARM.Build.0 = Debug|ARM
{4C225A82-800B-427B-BA7B-61686A9B347F}.Debug|Win32.ActiveCfg = Debug|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Debug|Win32.Build.0 = Debug|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Debug|x86.ActiveCfg = Debug|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Debug|x86.Build.0 = Debug|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Release|Any CPU.ActiveCfg = Release|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Release|ARM.ActiveCfg = Release|ARM
{4C225A82-800B-427B-BA7B-61686A9B347F}.Release|ARM.Build.0 = Release|ARM
{4C225A82-800B-427B-BA7B-61686A9B347F}.Release|Win32.ActiveCfg = Release|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Release|Win32.Build.0 = Release|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Release|x86.ActiveCfg = Release|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
......@@ -41,8 +41,12 @@
<!--TitlePanel contains the name of the application and page title-->
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
<TextBlock Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>
<TextBlock Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
<TextBlock Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0">
<Run Text="BELLE-SIP"/>
<LineBreak/>
<Run/>
</TextBlock>
<TextBlock Text="Tester" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel>
<!--ContentPanel - place additional content here-->
......
......@@ -2,12 +2,14 @@
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using belle_sip_tester_wp8.Resources;
using belle_sip_tester_native;
namespace belle_sip_tester_wp8
{
......@@ -16,8 +18,16 @@ namespace belle_sip_tester_wp8
// Constructor
public MainPage()
{
Action<object> action = (object obj) =>
{
var tester = new CainSipTesterNative();
tester.run();
};
InitializeComponent();
Task t = Task.Factory.StartNew(action, "tester");
// Sample code to localize the ApplicationBar
//BuildLocalizedApplicationBar();
}
......
......@@ -6,12 +6,12 @@ using System.Resources;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("belle_sip_tester_wp8")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("CainSip Tester")]
[assembly: AssemblyDescription("CainSip tester for Windows Phone 8")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("belle_sip_tester_wp8")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyCompany("Belledonne Communications")]
[assembly: AssemblyProduct("CainSip Tester")]
[assembly: AssemblyCopyright("Copyright © Belledonne Communications 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
......
......@@ -10,7 +10,7 @@
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>belle_sip_tester_wp8</RootNamespace>
<AssemblyName>belle-sip-tester-wp8</AssemblyName>
<AssemblyName>belle_sip_tester_wp8</AssemblyName>
<TargetFrameworkIdentifier>WindowsPhone</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
......@@ -30,7 +30,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Bin\Debug</OutputPath>
<OutputPath>Bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
......@@ -40,7 +40,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Bin\Release</OutputPath>
<OutputPath>Bin\Release\</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
......@@ -51,7 +51,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Bin\x86\Debug</OutputPath>
<OutputPath>Bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
......@@ -61,7 +61,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Bin\x86\Release</OutputPath>
<OutputPath>Bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
......@@ -72,7 +72,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Bin\ARM\Debug</OutputPath>
<OutputPath>Bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
......@@ -82,7 +82,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|ARM' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Bin\ARM\Release</OutputPath>
<OutputPath>Bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
......@@ -147,6 +147,15 @@
<LastGenOutput>AppResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\belle-sip-tester-native\belle-sip-tester-native.vcxproj">
<Project>{3B4E9C2C-D5DC-4CF9-A7F4-5CB4AB55AF79}</Project>
<Name>belle-sip-tester-native</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).$(TargetFrameworkVersion).Overrides.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
......
......@@ -8,36 +8,49 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "belle-sip-tester", "belle-s
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "belle-sip", "..\belle-sip\belle-sip.vcxproj", "{300E2173-D3DA-48BB-9410-7F4E953CE5D1}"
ProjectSection(ProjectDependencies) = postProject
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40} = {0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cunit", "..\..\..\..\cunit\build\windows\cunit\cunit.vcxproj", "{C7880578-FBD1-40D9-A3D7-E82E6C1A6B10}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libantlr3c", "..\..\..\..\antlr3\runtime\C\build\vsx\libantlr3c.vcxproj", "{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libantlr3c", "..\..\..\..\antlr3\runtime\C\build\vsx\libantlr3c\libantlr3c.vcxproj", "{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|Win32 = Debug|Win32
Release|ARM = Release|ARM
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5EF32C12-4166-4152-ACAA-77F1B4566F14}.Debug|ARM.ActiveCfg = Debug|Win32
{5EF32C12-4166-4152-ACAA-77F1B4566F14}.Debug|Win32.ActiveCfg = Debug|Win32
{5EF32C12-4166-4152-ACAA-77F1B4566F14}.Debug|Win32.Build.0 = Debug|Win32
{5EF32C12-4166-4152-ACAA-77F1B4566F14}.Release|ARM.ActiveCfg = Release|Win32
{5EF32C12-4166-4152-ACAA-77F1B4566F14}.Release|Win32.ActiveCfg = Release|Win32
{5EF32C12-4166-4152-ACAA-77F1B4566F14}.Release|Win32.Build.0 = Release|Win32
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Debug|ARM.ActiveCfg = Debug|ARM
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Debug|ARM.Build.0 = Debug|ARM
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Debug|Win32.ActiveCfg = Debug|Win32
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Debug|Win32.Build.0 = Debug|Win32
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Release|ARM.ActiveCfg = Release|ARM
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Release|ARM.Build.0 = Release|ARM
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Release|Win32.ActiveCfg = Release|Win32
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Release|Win32.Build.0 = Release|Win32
{C7880578-FBD1-40D9-A3D7-E82E6C1A6B10}.Debug|ARM.ActiveCfg = Debug|ARM
{C7880578-FBD1-40D9-A3D7-E82E6C1A6B10}.Debug|ARM.Build.0 = Debug|ARM
{C7880578-FBD1-40D9-A3D7-E82E6C1A6B10}.Debug|Win32.ActiveCfg = Debug|Win32
{C7880578-FBD1-40D9-A3D7-E82E6C1A6B10}.Debug|Win32.Build.0 = Debug|Win32
{C7880578-FBD1-40D9-A3D7-E82E6C1A6B10}.Release|ARM.ActiveCfg = Release|ARM
{C7880578-FBD1-40D9-A3D7-E82E6C1A6B10}.Release|ARM.Build.0 = Release|ARM
{C7880578-FBD1-40D9-A3D7-E82E6C1A6B10}.Release|Win32.ActiveCfg = Release|Win32
{C7880578-FBD1-40D9-A3D7-E82E6C1A6B10}.Release|Win32.Build.0 = Release|Win32
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Debug|Win32.ActiveCfg = Debug|Win32
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Debug|Win32.Build.0 = Debug|Win32
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Release|Win32.ActiveCfg = Release|Win32
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Release|Win32.Build.0 = Release|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|ARM.ActiveCfg = Debug|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|ARM.Build.0 = Debug|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|Win32.ActiveCfg = Debug|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|Win32.Build.0 = Debug|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|ARM.ActiveCfg = Release|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|ARM.Build.0 = Release|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|Win32.ActiveCfg = Release|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2012 for Windows Phone
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "belle-sip", "belle-sip.vcxproj", "{300E2173-D3DA-48BB-9410-7F4E953CE5D1}"
ProjectSection(ProjectDependencies) = postProject
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40} = {0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}
EndProjectSection
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "belle-sip", "belle-sip.vcxproj", "{4C225A82-800B-427B-BA7B-61686A9B347F}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libantlr3c", "..\..\..\..\antlr3\runtime\C\build\vsx\libantlr3c.vcxproj", "{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libantlr3c", "..\..\..\..\antlr3\runtime\C\build\vsx\libantlr3c\libantlr3c.vcxproj", "{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
......@@ -16,22 +13,22 @@ Global
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Debug|ARM.ActiveCfg = Debug|ARM
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Debug|ARM.Build.0 = Debug|ARM
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Debug|Win32.ActiveCfg = Debug|Win32
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Debug|Win32.Build.0 = Debug|Win32
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Release|ARM.ActiveCfg = Release|ARM
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Release|ARM.Build.0 = Release|ARM
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Release|Win32.ActiveCfg = Release|Win32
{300E2173-D3DA-48BB-9410-7F4E953CE5D1}.Release|Win32.Build.0 = Release|Win32
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Debug|ARM.ActiveCfg = Debug|ARM
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Debug|ARM.Build.0 = Debug|ARM
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Debug|Win32.ActiveCfg = Debug|Win32
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Debug|Win32.Build.0 = Debug|Win32
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Release|ARM.ActiveCfg = Release|ARM
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Release|ARM.Build.0 = Release|ARM
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Release|Win32.ActiveCfg = Release|Win32
{0F0FE03A-78F3-4B34-9DCE-0CDFF1FB5C40}.Release|Win32.Build.0 = Release|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Debug|ARM.ActiveCfg = Debug|ARM
{4C225A82-800B-427B-BA7B-61686A9B347F}.Debug|ARM.Build.0 = Debug|ARM
{4C225A82-800B-427B-BA7B-61686A9B347F}.Debug|Win32.ActiveCfg = Debug|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Debug|Win32.Build.0 = Debug|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Release|ARM.ActiveCfg = Release|ARM
{4C225A82-800B-427B-BA7B-61686A9B347F}.Release|ARM.Build.0 = Release|ARM
{4C225A82-800B-427B-BA7B-61686A9B347F}.Release|Win32.ActiveCfg = Release|Win32
{4C225A82-800B-427B-BA7B-61686A9B347F}.Release|Win32.Build.0 = Release|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|ARM.ActiveCfg = Debug|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|ARM.Build.0 = Debug|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|Win32.ActiveCfg = Debug|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Debug|Win32.Build.0 = Debug|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|ARM.ActiveCfg = Release|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|ARM.Build.0 = Release|ARM
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|Win32.ActiveCfg = Release|Win32
{8FA74260-151B-429B-83EF-3CF3EAC8CFD9}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp" />
<ClCompile Include="pch.cpp" />
<ClCompile Include="..\..\..\src\auth_event.c" />
<ClCompile Include="..\..\..\src\auth_helper.c" />
<ClCompile Include="..\..\..\src\belle_sdpLexer.c" />
<ClCompile Include="..\..\..\src\belle_sdpParser.c" />
<ClCompile Include="..\..\..\src\belle_sdp_impl.c" />
<ClCompile Include="..\..\..\src\belle_sip_headers_impl.c" />
<ClCompile Include="..\..\..\src\belle_sip_loop.c" />
<ClCompile Include="..\..\..\src\belle_sip_messageLexer.c" />
<ClCompile Include="..\..\..\src\belle_sip_messageParser.c" />
<ClCompile Include="..\..\..\src\belle_sip_object.c" />
<ClCompile Include="..\..\..\src\belle_sip_parameters.c" />
<ClCompile Include="..\..\..\src\belle_sip_resolver.c" />
<ClCompile Include="..\..\..\src\belle_sip_uri_impl.c" />
<ClCompile Include="..\..\..\src\belle_sip_utils.c" />
<ClCompile Include="..\..\..\src\channel.c" />
<ClCompile Include="..\..\..\src\dialog.c" />
<ClCompile Include="..\..\..\src\dns.c" />
<ClCompile Include="..\..\..\src\ict.c" />
<ClCompile Include="..\..\..\src\ist.c" />
<ClCompile Include="..\..\..\src\listeningpoint.c" />
<ClCompile Include="..\..\..\src\md5.c" />
<ClCompile Include="..\..\..\src\message.c" />
<ClCompile Include="..\..\..\src\nict.c" />
<ClCompile Include="..\..\..\src\nist.c" />
<ClCompile Include="..\..\..\src\port.c" />
<ClCompile Include="..\..\..\src\provider.c" />
<ClCompile Include="..\..\..\src\refresher.c" />
<ClCompile Include="..\..\..\src\siplistener.c" />
<ClCompile Include="..\..\..\src\sipstack.c" />
<ClCompile Include="..\..\..\src\transaction.c" />
<ClCompile Include="..\..\..\src\transports\stream_channel.c" />
<ClCompile Include="..\..\..\src\transports\stream_listeningpoint.c" />
<ClCompile Include="..\..\..\src\transports\tls_channel.c" />
<ClCompile Include="..\..\..\src\transports\tls_listeningpoint.c" />
<ClCompile Include="..\..\..\src\transports\udp_channel.c" />
<ClCompile Include="..\..\..\src\transports\udp_listeningpoint.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="pch.h" />
<ClInclude Include="targetver.h" />
<ClInclude Include="..\..\..\include\belle-sip\auth-helper.h" />
<ClInclude Include="..\..\..\include\belle-sip\belle-sdp.h" />
<ClInclude Include="..\..\..\include\belle-sip\belle-sip.h" />
<ClInclude Include="..\..\..\include\belle-sip\dialog.h" />
<ClInclude Include="..\..\..\include\belle-sip\headers.h" />
<ClInclude Include="..\..\..\include\belle-sip\list.h" />
<ClInclude Include="..\..\..\include\belle-sip\listener.h" />
<ClInclude Include="..\..\..\include\belle-sip\listeningpoint.h" />
<ClInclude Include="..\..\..\include\belle-sip\mainloop.h" />
<ClInclude Include="..\..\..\include\belle-sip\message.h" />
<ClInclude Include="..\..\..\include\belle-sip\object.h" />
<ClInclude Include="..\..\..\include\belle-sip\parameters.h" />
<ClInclude Include="..\..\..\include\belle-sip\provider.h" />
<ClInclude Include="..\..\..\include\belle-sip\refresher-helper.h" />
<ClInclude Include="..\..\..\include\belle-sip\sipstack.h" />
<ClInclude Include="..\..\..\include\belle-sip\transaction.h" />
<ClInclude Include="..\..\..\include\belle-sip\uri.h" />
<ClInclude Include="..\..\..\include\belle-sip\utils.h" />
<ClInclude Include="..\..\..\src\belle_sdpLexer.h" />
<ClInclude Include="..\..\..\src\belle_sdpParser.h" />
<ClInclude Include="..\..\..\src\belle_sip_internal.h" />
<ClInclude Include="..\..\..\src\belle_sip_messageLexer.h" />
<ClInclude Include="..\..\..\src\belle_sip_messageParser.h" />
<ClInclude Include="..\..\..\src\belle_sip_resolver.h" />
<ClInclude Include="..\..\..\src\channel.h" />
<ClInclude Include="..\..\..\src\dns.h" />
<ClInclude Include="..\..\..\src\listeningpoint_internal.h" />
<ClInclude Include="..\..\..\src\md5.h" />
<ClInclude Include="..\..\..\src\port.h" />
</ItemGroup>
<ItemGroup>
<CustomBuild Include="..\..\..\src\belle_sdp.g" />
<CustomBuild Include="..\..\..\src\belle_sip_message.g" />
</ItemGroup>
</Project>
\ No newline at end of file
// dllmain.cpp : Defines the entry point for the DLL application.
#include "pch.h"
BOOL APIENTRY DllMain(HMODULE /* hModule */, DWORD ul_reason_for_call, LPVOID /* lpReserved */)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
//
// pch.cpp
// Include the standard header and generate the precompiled header.
//
#include "pch.h"
//
// pch.h
// Header for standard system include files.
//
#pragma once
#include "targetver.h"
// Windows Header Files:
#include <windows.h>
#pragma once
// Including SDKDDKVer.h defines the highest available Windows platform.
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
#include <SDKDDKVer.h>
......@@ -68,7 +68,7 @@
#if _WIN32
#ifndef FD_SETSIZE
#define FD_SETSIZE 512
#define FD_SETSIZE 2048
#endif
#include <winsock2.h>
#include <ws2tcpip.h>
......
......@@ -39,6 +39,66 @@ extern int belle_sip_dialog_test_suite();
extern int belle_sip_refresher_test_suite();
extern int belle_sip_resolver_test_suite();
int belle_sip_tester_run_tests(char *suite_name, char *test_name) {
/* initialize the CUnit test registry */
if (CUE_SUCCESS != CU_initialize_registry())
return CU_get_error();
belle_sip_uri_test_suite();
belle_sip_headers_test_suite ();
belle_sip_message_test_suite();
belle_sdp_test_suite();
belle_sip_cast_test_suite();
belle_sip_authentication_helper_suite();
belle_sip_register_test_suite();
belle_sip_dialog_test_suite ();
belle_sip_refresher_test_suite();
belle_sip_resolver_test_suite();
#if HAVE_CU_GET_SUITE
if (suite_name){
CU_pSuite suite;
CU_basic_set_mode(CU_BRM_VERBOSE);
suite=CU_get_suite(suite_name);
if (test_name) {
CU_pTest test=CU_get_test_by_name(test_name, suite);
CU_basic_run_test(suite, test);
} else
CU_basic_run_suite(suite);
} else
#endif
{
#if HAVE_CU_CURSES
if (curses) {
/* Run tests using the CUnit curses interface */
CU_curses_run_tests();
}
else
#endif
{
/* Run all tests using the CUnit Basic interface */
CU_basic_set_mode(CU_BRM_VERBOSE);
CU_basic_run_tests();
}
}
CU_cleanup_registry();
return CU_get_error();
}
#if !WINAPI_FAMILY_APP
int main (int argc, char *argv[]) {
int i;
#if HAVE_CU_GET_SUITE
......@@ -95,58 +155,6 @@ int main (int argc, char *argv[]) {
#endif
}
/* initialize the CUnit test registry */
if (CUE_SUCCESS != CU_initialize_registry())
return CU_get_error();
belle_sip_uri_test_suite();
belle_sip_headers_test_suite ();
belle_sip_message_test_suite();
belle_sdp_test_suite();
belle_sip_cast_test_suite();
belle_sip_authentication_helper_suite();
belle_sip_register_test_suite();
belle_sip_dialog_test_suite ();
belle_sip_refresher_test_suite();
belle_sip_resolver_test_suite();
#if HAVE_CU_GET_SUITE
if (suite_name){
CU_pSuite suite;
CU_basic_set_mode(CU_BRM_VERBOSE);
suite=CU_get_suite(suite_name);
if (test_name) {
CU_pTest test=CU_get_test_by_name(test_name, suite);
CU_basic_run_test(suite, test);
} else
CU_basic_run_suite(suite);
} else
#endif
{
#if HAVE_CU_CURSES
if (curses) {
/* Run tests using the CUnit curses interface */
CU_curses_run_tests();
}
else
#endif
{
/* Run all tests using the CUnit Basic interface */
CU_basic_set_mode(CU_BRM_VERBOSE);
CU_basic_run_tests();
}
}
CU_cleanup_registry();
return CU_get_error();
return belle_sip_tester_run_tests(suite_name, test_name);
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment