Skip to content

Commit

Permalink
Merge pull request #7 from kadorken/master
Browse files Browse the repository at this point in the history
Add build procedure/solution for windows and linux in visual studio 2019
  • Loading branch information
risacher authored Oct 26, 2020
2 parents 5facc0e + 0a3d05e commit 102cb41
Show file tree
Hide file tree
Showing 4 changed files with 284 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,12 @@ modules.order
Module.symvers
Mkfile.old
dkms.conf
/.vs
/Debug
/Release
/*.vcxproj.filters
/*.vcxproj.user
/obj
/x64
*.tlog

97 changes: 97 additions & 0 deletions SunwaitPi.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|ARM">
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM">
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|ARM64">
<Configuration>Debug</Configuration>
<Platform>ARM64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM64">
<Configuration>Release</Configuration>
<Platform>ARM64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{ed0a918a-2232-4894-99cb-298b5c5041f6}</ProjectGuid>
<Keyword>Linux</Keyword>
<RootNamespace>SunwaitPi</RootNamespace>
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
<ApplicationType>Linux</ApplicationType>
<ApplicationTypeRevision>1.0</ApplicationTypeRevision>
<TargetLinuxPlatform>Raspberry</TargetLinuxPlatform>
<LinuxProjectType>{8748239F-558C-44D1-944B-07B09C35B330}</LinuxProjectType>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
<UseDebugLibraries>false</UseDebugLibraries>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
<UseDebugLibraries>false</UseDebugLibraries>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings" />
<ImportGroup Label="Shared" />
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
<Link />
<RemotePostBuildEvent>
<Command>
</Command>
<Message>
</Message>
</RemotePostBuildEvent>
<ClCompile>
<PreprocessorDefinitions>__linux__;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<Link>
<LibraryDependencies>
</LibraryDependencies>
</Link>
<RemotePostBuildEvent>
<Command>
</Command>
<Message>
</Message>
</RemotePostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<None Include="LICENSE" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="print.cpp" />
<ClCompile Include="sunriset.cpp" />
<ClCompile Include="sunwait.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="print.h" />
<ClInclude Include="sunriset.h" />
<ClInclude Include="sunwait.h" />
</ItemGroup>
<ItemGroup>
<Text Include="USAGE.txt" />
</ItemGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
<ClCompile />
<ClCompile>
<PreprocessorDefinitions>__linux__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets" />
</Project>
58 changes: 58 additions & 0 deletions sunwait.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29230.47
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sunwait", "sunwait.vcxproj", "{FA29C146-4135-460F-8445-5F7CFD570B45}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SunwaitPi", "SunwaitPi.vcxproj", "{ED0A918A-2232-4894-99CB-298B5C5041F6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM = Release|ARM
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FA29C146-4135-460F-8445-5F7CFD570B45}.Debug|ARM.ActiveCfg = Debug|Win32
{FA29C146-4135-460F-8445-5F7CFD570B45}.Debug|ARM64.ActiveCfg = Debug|Win32
{FA29C146-4135-460F-8445-5F7CFD570B45}.Debug|x64.ActiveCfg = Debug|x64
{FA29C146-4135-460F-8445-5F7CFD570B45}.Debug|x64.Build.0 = Debug|x64
{FA29C146-4135-460F-8445-5F7CFD570B45}.Debug|x86.ActiveCfg = Debug|Win32
{FA29C146-4135-460F-8445-5F7CFD570B45}.Debug|x86.Build.0 = Debug|Win32
{FA29C146-4135-460F-8445-5F7CFD570B45}.Release|ARM.ActiveCfg = Release|Win32
{FA29C146-4135-460F-8445-5F7CFD570B45}.Release|ARM64.ActiveCfg = Release|Win32
{FA29C146-4135-460F-8445-5F7CFD570B45}.Release|x64.ActiveCfg = Release|x64
{FA29C146-4135-460F-8445-5F7CFD570B45}.Release|x64.Build.0 = Release|x64
{FA29C146-4135-460F-8445-5F7CFD570B45}.Release|x86.ActiveCfg = Release|Win32
{FA29C146-4135-460F-8445-5F7CFD570B45}.Release|x86.Build.0 = Release|Win32
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Debug|ARM.ActiveCfg = Debug|ARM
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Debug|ARM.Build.0 = Debug|ARM
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Debug|ARM.Deploy.0 = Debug|ARM
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Debug|ARM64.ActiveCfg = Debug|ARM64
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Debug|ARM64.Build.0 = Debug|ARM64
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Debug|ARM64.Deploy.0 = Debug|ARM64
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Debug|x64.ActiveCfg = Debug|ARM
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Debug|x64.Build.0 = Debug|ARM
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Debug|x86.ActiveCfg = Debug|ARM
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Release|ARM.ActiveCfg = Release|ARM
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Release|ARM.Build.0 = Release|ARM
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Release|ARM.Deploy.0 = Release|ARM
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Release|ARM64.ActiveCfg = Release|ARM64
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Release|ARM64.Build.0 = Release|ARM64
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Release|ARM64.Deploy.0 = Release|ARM64
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Release|x64.ActiveCfg = Release|ARM
{ED0A918A-2232-4894-99CB-298B5C5041F6}.Release|x86.ActiveCfg = Release|ARM
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {EA55FCD3-DA38-4E6A-9E2F-E95B88769266}
EndGlobalSection
EndGlobal
120 changes: 120 additions & 0 deletions sunwait.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" 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>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<ProjectGuid>{FA29C146-4135-460F-8445-5F7CFD570B45}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
</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'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<Optimization>Disabled</Optimization>
</ClCompile>
<Link>
<TargetMachine>MachineX86</TargetMachine>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<TargetMachine>MachineX86</TargetMachine>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="print.cpp" />
<ClCompile Include="sunriset.cpp" />
<ClCompile Include="sunwait.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="print.h" />
<ClInclude Include="sunriset.h" />
<ClInclude Include="sunwait.h" />
</ItemGroup>
<ItemGroup>
<Text Include="USAGE.txt" />
</ItemGroup>
<ItemGroup>
<None Include="LICENSE" />
<None Include="README.md" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

0 comments on commit 102cb41

Please sign in to comment.