mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-29 18:07:08 +03:00
Merge changes from PR #47 related to windows platform support. Add full windows platform support including correct error checking and working regression tests and examples. Remove need to build applications using libcoap with -DWITH_POSIX and to include coap_config.h. This applies to the examples as well.
243 lines
10 KiB
XML
243 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<ItemGroup Label="ProjectConfigurations">
|
|
<ProjectConfiguration Include="Debug|Win32">
|
|
<Configuration>Debug</Configuration>
|
|
<Platform>Win32</Platform>
|
|
</ProjectConfiguration>
|
|
<ProjectConfiguration Include="Release|Win32">
|
|
<Configuration>Release</Configuration>
|
|
<Platform>Win32</Platform>
|
|
</ProjectConfiguration>
|
|
<ProjectConfiguration Include="Debug|x64">
|
|
<Configuration>Debug</Configuration>
|
|
<Platform>x64</Platform>
|
|
</ProjectConfiguration>
|
|
<ProjectConfiguration Include="Release|x64">
|
|
<Configuration>Release</Configuration>
|
|
<Platform>x64</Platform>
|
|
</ProjectConfiguration>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClCompile Include="..\src\address.c" />
|
|
<ClCompile Include="..\src\async.c" />
|
|
<ClCompile Include="..\src\block.c" />
|
|
<ClCompile Include="..\src\coap_io.c" />
|
|
<ClCompile Include="..\src\coap_time.c" />
|
|
<ClCompile Include="..\src\debug.c" />
|
|
<ClCompile Include="..\src\encode.c" />
|
|
<ClCompile Include="..\src\hashkey.c" />
|
|
<ClCompile Include="..\src\mem.c" />
|
|
<ClCompile Include="..\src\net.c" />
|
|
<ClCompile Include="..\src\option.c" />
|
|
<ClCompile Include="..\src\pdu.c" />
|
|
<ClCompile Include="..\src\resource.c" />
|
|
<ClCompile Include="..\src\str.c" />
|
|
<ClCompile Include="..\src\subscribe.c" />
|
|
<ClCompile Include="..\src\uri.c" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClInclude Include="..\coap_config.h" />
|
|
<ClInclude Include="..\include\coap\address.h" />
|
|
<ClInclude Include="..\include\coap\async.h" />
|
|
<ClInclude Include="..\include\coap\bits.h" />
|
|
<ClInclude Include="..\include\coap\block.h" />
|
|
<ClInclude Include="..\include\coap\coap.h" />
|
|
<ClInclude Include="..\include\coap\coap_io.h" />
|
|
<ClInclude Include="..\include\coap\coap_time.h" />
|
|
<ClInclude Include="..\include\coap\debug.h" />
|
|
<ClInclude Include="..\include\coap\encode.h" />
|
|
<ClInclude Include="..\include\coap\hashkey.h" />
|
|
<ClInclude Include="..\include\coap\libcoap.h" />
|
|
<ClInclude Include="..\include\coap\mem.h" />
|
|
<ClInclude Include="..\include\coap\net.h" />
|
|
<ClInclude Include="..\include\coap\option.h" />
|
|
<ClInclude Include="..\include\coap\pdu.h" />
|
|
<ClInclude Include="..\include\coap\prng.h" />
|
|
<ClInclude Include="..\include\coap\resource.h" />
|
|
<ClInclude Include="..\include\coap\str.h" />
|
|
<ClInclude Include="..\include\coap\subscribe.h" />
|
|
<ClInclude Include="..\include\coap\uri.h" />
|
|
<ClInclude Include="..\include\coap\uthash.h" />
|
|
<ClInclude Include="..\include\coap\utlist.h" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Text Include="..\Merge.txt" />
|
|
</ItemGroup>
|
|
<PropertyGroup Label="Globals">
|
|
<ProjectGuid>{96A98759-36B3-4246-A265-CAFCEEC0F2F2}</ProjectGuid>
|
|
<Keyword>Win32Proj</Keyword>
|
|
<RootNamespace>libcoap</RootNamespace>
|
|
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
|
</PropertyGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
|
<UseDebugLibraries>true</UseDebugLibraries>
|
|
<PlatformToolset>v140</PlatformToolset>
|
|
<CharacterSet>MultiByte</CharacterSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
|
<UseDebugLibraries>false</UseDebugLibraries>
|
|
<PlatformToolset>v140</PlatformToolset>
|
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
<CharacterSet>MultiByte</CharacterSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
|
<UseDebugLibraries>true</UseDebugLibraries>
|
|
<PlatformToolset>v140</PlatformToolset>
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
|
<UseDebugLibraries>false</UseDebugLibraries>
|
|
<PlatformToolset>v140</PlatformToolset>
|
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
</PropertyGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
<ImportGroup Label="ExtensionSettings">
|
|
</ImportGroup>
|
|
<ImportGroup Label="Shared">
|
|
</ImportGroup>
|
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
</ImportGroup>
|
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
</ImportGroup>
|
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
</ImportGroup>
|
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
</ImportGroup>
|
|
<PropertyGroup Label="UserMacros" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
<TargetName>$(ProjectName)d</TargetName>
|
|
<CustomBuildBeforeTargets>
|
|
</CustomBuildBeforeTargets>
|
|
<CustomBuildAfterTargets>
|
|
</CustomBuildAfterTargets>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
<CustomBuildBeforeTargets>
|
|
</CustomBuildBeforeTargets>
|
|
<CustomBuildAfterTargets>
|
|
</CustomBuildAfterTargets>
|
|
</PropertyGroup>
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
|
<ClCompile>
|
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<Optimization>Disabled</Optimization>
|
|
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
|
<AdditionalIncludeDirectories>../include/coap;..</AdditionalIncludeDirectories>
|
|
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
|
<MinimalRebuild>false</MinimalRebuild>
|
|
<CompileAs>CompileAsC</CompileAs>
|
|
</ClCompile>
|
|
<Link>
|
|
<SubSystem>Windows</SubSystem>
|
|
</Link>
|
|
<PreBuildEvent>
|
|
<Command>copy /Y ..\coap_config.h.windows ..\coap_config.h
|
|
copy /Y ..\include\coap\coap.h.windows ..\include\coap\coap.h</Command>
|
|
</PreBuildEvent>
|
|
<PreBuildEvent>
|
|
<Message>Copying config files for windows</Message>
|
|
</PreBuildEvent>
|
|
<CustomBuildStep>
|
|
<Command>
|
|
</Command>
|
|
</CustomBuildStep>
|
|
<CustomBuildStep>
|
|
<Message>
|
|
</Message>
|
|
</CustomBuildStep>
|
|
<CustomBuildStep>
|
|
<Outputs>
|
|
</Outputs>
|
|
</CustomBuildStep>
|
|
<CustomBuildStep>
|
|
<Inputs>
|
|
</Inputs>
|
|
</CustomBuildStep>
|
|
</ItemDefinitionGroup>
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
<ClCompile>
|
|
<PrecompiledHeader>
|
|
</PrecompiledHeader>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<Optimization>Disabled</Optimization>
|
|
<PreprocessorDefinitions>_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
|
</ClCompile>
|
|
<Link>
|
|
<SubSystem>Windows</SubSystem>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
|
<ClCompile>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
|
<Optimization>MaxSpeed</Optimization>
|
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<AdditionalIncludeDirectories>../include/coap;..</AdditionalIncludeDirectories>
|
|
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
|
<CompileAs>CompileAsC</CompileAs>
|
|
</ClCompile>
|
|
<Link>
|
|
<SubSystem>Windows</SubSystem>
|
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
<OptimizeReferences>true</OptimizeReferences>
|
|
</Link>
|
|
<PreBuildEvent>
|
|
<Command>copy /Y ..\coap_config.h.windows ..\coap_config.h
|
|
copy /Y ..\include\coap\coap.h.windows ..\include\coap\coap.h</Command>
|
|
</PreBuildEvent>
|
|
<PreBuildEvent>
|
|
<Message>Copying config files for windows</Message>
|
|
</PreBuildEvent>
|
|
<CustomBuildStep>
|
|
<Command>
|
|
</Command>
|
|
</CustomBuildStep>
|
|
<CustomBuildStep>
|
|
<Message>
|
|
</Message>
|
|
</CustomBuildStep>
|
|
<CustomBuildStep>
|
|
<Outputs>
|
|
</Outputs>
|
|
</CustomBuildStep>
|
|
<CustomBuildStep>
|
|
<Inputs>
|
|
</Inputs>
|
|
</CustomBuildStep>
|
|
</ItemDefinitionGroup>
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
<ClCompile>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<PrecompiledHeader>
|
|
</PrecompiledHeader>
|
|
<Optimization>MaxSpeed</Optimization>
|
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
<PreprocessorDefinitions>NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
</ClCompile>
|
|
<Link>
|
|
<SubSystem>Windows</SubSystem>
|
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
<OptimizeReferences>true</OptimizeReferences>
|
|
</Link>
|
|
</ItemDefinitionGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
<ImportGroup Label="ExtensionTargets">
|
|
</ImportGroup>
|
|
</Project> |