Skip to content

Commit e10b9ab

Browse files
committed
visualc: Added datagram example project.
1 parent 818db89 commit e10b9ab

2 files changed

Lines changed: 257 additions & 0 deletions

File tree

VisualC/SDL_net.sln

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "echo-server", "examples\ech
1515
EndProject
1616
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "examples", "examples", "{642C114F-3ABE-4CFE-8C08-8CC5EF0D2324}"
1717
EndProject
18+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "datagram", "examples\datagram.vcxproj", "{D1A8F924-5CEE-4080-BD99-2304EFE8ED7C}"
19+
EndProject
1820
Global
1921
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2022
Debug|Win32 = Debug|Win32
@@ -63,6 +65,22 @@ Global
6365
{A01E2216-139A-480E-8458-03CB4E90FE61}.Release|Win32.Build.0 = Release|Win32
6466
{A01E2216-139A-480E-8458-03CB4E90FE61}.Release|x64.ActiveCfg = Release|x64
6567
{A01E2216-139A-480E-8458-03CB4E90FE61}.Release|x64.Build.0 = Release|x64
68+
{DFDBDF0E-87C3-4421-B6D1-90B2C5C28C2B}.Debug|Win32.ActiveCfg = Debug|Win32
69+
{DFDBDF0E-87C3-4421-B6D1-90B2C5C28C2B}.Debug|Win32.Build.0 = Debug|Win32
70+
{DFDBDF0E-87C3-4421-B6D1-90B2C5C28C2B}.Debug|x64.ActiveCfg = Debug|x64
71+
{DFDBDF0E-87C3-4421-B6D1-90B2C5C28C2B}.Debug|x64.Build.0 = Debug|x64
72+
{DFDBDF0E-87C3-4421-B6D1-90B2C5C28C2B}.Release|Win32.ActiveCfg = Release|Win32
73+
{DFDBDF0E-87C3-4421-B6D1-90B2C5C28C2B}.Release|Win32.Build.0 = Release|Win32
74+
{DFDBDF0E-87C3-4421-B6D1-90B2C5C28C2B}.Release|x64.ActiveCfg = Release|x64
75+
{DFDBDF0E-87C3-4421-B6D1-90B2C5C28C2B}.Release|x64.Build.0 = Release|x64
76+
{D1A8F924-5CEE-4080-BD99-2304EFE8ED7C}.Debug|Win32.ActiveCfg = Debug|Win32
77+
{D1A8F924-5CEE-4080-BD99-2304EFE8ED7C}.Debug|Win32.Build.0 = Debug|Win32
78+
{D1A8F924-5CEE-4080-BD99-2304EFE8ED7C}.Debug|x64.ActiveCfg = Debug|x64
79+
{D1A8F924-5CEE-4080-BD99-2304EFE8ED7C}.Debug|x64.Build.0 = Debug|x64
80+
{D1A8F924-5CEE-4080-BD99-2304EFE8ED7C}.Release|Win32.ActiveCfg = Release|Win32
81+
{D1A8F924-5CEE-4080-BD99-2304EFE8ED7C}.Release|Win32.Build.0 = Release|Win32
82+
{D1A8F924-5CEE-4080-BD99-2304EFE8ED7C}.Release|x64.ActiveCfg = Release|x64
83+
{D1A8F924-5CEE-4080-BD99-2304EFE8ED7C}.Release|x64.Build.0 = Release|x64
6684
EndGlobalSection
6785
GlobalSection(SolutionProperties) = preSolution
6886
HideSolutionNode = FALSE
@@ -73,6 +91,7 @@ Global
7391
{35F14669-ED09-4105-A035-7984B94FDFBC} = {642C114F-3ABE-4CFE-8C08-8CC5EF0D2324}
7492
{A01E2216-139A-480E-8458-03CB4E90FE61} = {642C114F-3ABE-4CFE-8C08-8CC5EF0D2324}
7593
{DFDBDF0E-87C3-4421-B6D1-90B2C5C28C2B} = {642C114F-3ABE-4CFE-8C08-8CC5EF0D2324}
94+
{D1A8F924-5CEE-4080-BD99-2304EFE8ED7C} = {642C114F-3ABE-4CFE-8C08-8CC5EF0D2324}
7695
EndGlobalSection
7796
GlobalSection(ExtensibilityGlobals) = postSolution
7897
SolutionGuid = {F2325A01-6A77-410B-B0DA-E0F6B9313F15}

VisualC/examples/datagram.vcxproj

Lines changed: 238 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Debug|x64">
9+
<Configuration>Debug</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Release|Win32">
13+
<Configuration>Release</Configuration>
14+
<Platform>Win32</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<ProjectGuid>{D1A8F924-5CEE-4080-BD99-2304EFE8ED7C}</ProjectGuid>
23+
<RootNamespace>datagram</RootNamespace>
24+
</PropertyGroup>
25+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
26+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
27+
<ConfigurationType>Application</ConfigurationType>
28+
<PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
29+
</PropertyGroup>
30+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
31+
<ConfigurationType>Application</ConfigurationType>
32+
<PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
33+
</PropertyGroup>
34+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
35+
<ConfigurationType>Application</ConfigurationType>
36+
<PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
37+
</PropertyGroup>
38+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
39+
<ConfigurationType>Application</ConfigurationType>
40+
<PlatformToolset Condition="'$(VisualStudioVersion)' != '10.0'">$(DefaultPlatformToolset)</PlatformToolset>
41+
</PropertyGroup>
42+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
43+
<ImportGroup Label="ExtensionSettings">
44+
</ImportGroup>
45+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
46+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
47+
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
48+
</ImportGroup>
49+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
50+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
51+
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
52+
</ImportGroup>
53+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
54+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
55+
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
56+
</ImportGroup>
57+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
58+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
59+
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
60+
</ImportGroup>
61+
<PropertyGroup Label="UserMacros" />
62+
<PropertyGroup>
63+
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
64+
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)\$(Platform)\$(Configuration)\</OutDir>
65+
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Platform)\$(Configuration)\</IntDir>
66+
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)\$(Platform)\$(Configuration)\</OutDir>
67+
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
68+
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)\$(Platform)\$(Configuration)\</OutDir>
69+
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Platform)\$(Configuration)\</IntDir>
70+
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)\$(Platform)\$(Configuration)\</OutDir>
71+
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
72+
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
73+
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
74+
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
75+
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
76+
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
77+
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
78+
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
79+
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
80+
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
81+
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
82+
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
83+
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
84+
</PropertyGroup>
85+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
86+
<IncludePath>$(SolutionDir)..\..\SDL\include;$(SolutionDir)..\include;$(IncludePath)</IncludePath>
87+
<LibraryPath>$(SolutionDir)..\..\SDL\VisualC\$(PlatformName)\$(Configuration);$(LibraryPath)</LibraryPath>
88+
</PropertyGroup>
89+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
90+
<IncludePath>$(SolutionDir)..\..\SDL\include;$(SolutionDir)..\include;$(IncludePath)</IncludePath>
91+
<LibraryPath>$(SolutionDir)..\..\SDL\VisualC\$(PlatformName)\$(Configuration);$(LibraryPath)</LibraryPath>
92+
</PropertyGroup>
93+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
94+
<IncludePath>$(SolutionDir)..\..\SDL\include;$(SolutionDir)..\include;$(IncludePath)</IncludePath>
95+
<LibraryPath>$(SolutionDir)..\..\SDL\VisualC\$(PlatformName)\$(Configuration);$(LibraryPath)</LibraryPath>
96+
</PropertyGroup>
97+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
98+
<IncludePath>$(SolutionDir)..\..\SDL\include;$(SolutionDir)..\include;$(IncludePath)</IncludePath>
99+
<LibraryPath>$(SolutionDir)..\..\SDL\VisualC\$(PlatformName)\$(Configuration);$(LibraryPath)</LibraryPath>
100+
</PropertyGroup>
101+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
102+
<Midl>
103+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104+
<MkTypLibCompatible>true</MkTypLibCompatible>
105+
<SuppressStartupBanner>true</SuppressStartupBanner>
106+
<TargetEnvironment>Win32</TargetEnvironment>
107+
<TypeLibraryName>.\Release/showinterfaces.tlb</TypeLibraryName>
108+
<HeaderFileName>
109+
</HeaderFileName>
110+
</Midl>
111+
<ClCompile>
112+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
113+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
114+
<WarningLevel>Level3</WarningLevel>
115+
</ClCompile>
116+
<ResourceCompile>
117+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
118+
<Culture>0x0409</Culture>
119+
</ResourceCompile>
120+
<Link>
121+
<AdditionalDependencies>SDL3.lib;%(AdditionalDependencies)</AdditionalDependencies>
122+
<SubSystem>Console</SubSystem>
123+
</Link>
124+
<PostBuildEvent>
125+
<Message>
126+
</Message>
127+
<Command>
128+
</Command>
129+
</PostBuildEvent>
130+
</ItemDefinitionGroup>
131+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
132+
<Midl>
133+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
134+
<MkTypLibCompatible>true</MkTypLibCompatible>
135+
<SuppressStartupBanner>true</SuppressStartupBanner>
136+
<TargetEnvironment>X64</TargetEnvironment>
137+
<TypeLibraryName>.\Release/showinterfaces.tlb</TypeLibraryName>
138+
<HeaderFileName>
139+
</HeaderFileName>
140+
</Midl>
141+
<ClCompile>
142+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
143+
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
144+
<WarningLevel>Level3</WarningLevel>
145+
</ClCompile>
146+
<ResourceCompile>
147+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
148+
<Culture>0x0409</Culture>
149+
</ResourceCompile>
150+
<Link>
151+
<AdditionalDependencies>SDL3.lib;%(AdditionalDependencies)</AdditionalDependencies>
152+
<SubSystem>Console</SubSystem>
153+
</Link>
154+
<PostBuildEvent>
155+
<Message>
156+
</Message>
157+
<Command>
158+
</Command>
159+
</PostBuildEvent>
160+
</ItemDefinitionGroup>
161+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
162+
<Midl>
163+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
164+
<MkTypLibCompatible>true</MkTypLibCompatible>
165+
<SuppressStartupBanner>true</SuppressStartupBanner>
166+
<TargetEnvironment>Win32</TargetEnvironment>
167+
<TypeLibraryName>.\Debug/showinterfaces.tlb</TypeLibraryName>
168+
<HeaderFileName>
169+
</HeaderFileName>
170+
</Midl>
171+
<ClCompile>
172+
<Optimization>Disabled</Optimization>
173+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
174+
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
175+
<WarningLevel>Level3</WarningLevel>
176+
<DebugInformationFormat>OldStyle</DebugInformationFormat>
177+
</ClCompile>
178+
<ResourceCompile>
179+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
180+
<Culture>0x0409</Culture>
181+
</ResourceCompile>
182+
<Link>
183+
<AdditionalDependencies>SDL3.lib;%(AdditionalDependencies)</AdditionalDependencies>
184+
<GenerateDebugInformation>true</GenerateDebugInformation>
185+
<SubSystem>Console</SubSystem>
186+
</Link>
187+
<PostBuildEvent>
188+
<Message>
189+
</Message>
190+
<Command>
191+
</Command>
192+
</PostBuildEvent>
193+
</ItemDefinitionGroup>
194+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
195+
<Midl>
196+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
197+
<MkTypLibCompatible>true</MkTypLibCompatible>
198+
<SuppressStartupBanner>true</SuppressStartupBanner>
199+
<TargetEnvironment>X64</TargetEnvironment>
200+
<TypeLibraryName>.\Debug/showinterfaces.tlb</TypeLibraryName>
201+
<HeaderFileName>
202+
</HeaderFileName>
203+
</Midl>
204+
<ClCompile>
205+
<Optimization>Disabled</Optimization>
206+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
207+
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
208+
<WarningLevel>Level3</WarningLevel>
209+
<DebugInformationFormat>OldStyle</DebugInformationFormat>
210+
</ClCompile>
211+
<ResourceCompile>
212+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
213+
<Culture>0x0409</Culture>
214+
</ResourceCompile>
215+
<Link>
216+
<AdditionalDependencies>SDL3.lib;%(AdditionalDependencies)</AdditionalDependencies>
217+
<GenerateDebugInformation>true</GenerateDebugInformation>
218+
<SubSystem>Console</SubSystem>
219+
</Link>
220+
<PostBuildEvent>
221+
<Message>
222+
</Message>
223+
<Command>
224+
</Command>
225+
</PostBuildEvent>
226+
</ItemDefinitionGroup>
227+
<ItemGroup>
228+
<ClCompile Include="..\..\examples\datagram.c" />
229+
</ItemGroup>
230+
<ItemGroup>
231+
<ProjectReference Include="..\SDL_net.vcxproj">
232+
<Project>{8ab3504f-5e58-4910-afe8-7a1e595ac3f4}</Project>
233+
</ProjectReference>
234+
</ItemGroup>
235+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
236+
<ImportGroup Label="ExtensionTargets">
237+
</ImportGroup>
238+
</Project>

0 commit comments

Comments
 (0)