Skip to content

Commit

Permalink
Trying to get automated Windows building to work...
Browse files Browse the repository at this point in the history
  • Loading branch information
vhelin committed Mar 2, 2020
1 parent 76e7172 commit 4a2c374
Show file tree
Hide file tree
Showing 7 changed files with 704 additions and 0 deletions.
163 changes: 163 additions & 0 deletions windows/GEN-TABLES-6502/GEN-TABLES-6502.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
<?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|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="..\..\opcodes_6502.c" />
<ClCompile Include="..\..\opcode_table_generator\main.c" />
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
<ProjectGuid>{55C5F650-1F69-49DC-BC08-AD8C4C775D2B}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>GENTABLES6502</RootNamespace>
<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</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)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>MCS6502;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PostBuildEvent>
<Command>$(OutDir)\GEN-TABLES-6502.exe opcodes_6502_tables.c</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
25 changes: 25 additions & 0 deletions windows/GEN-TABLES-6502/GEN-TABLES-6502.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<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="..\..\opcode_table_generator\main.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\opcodes_6502.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
54 changes: 54 additions & 0 deletions windows/WLA DX.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.960
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GEN-TABLES-6502", "GEN-TABLES-6502\GEN-TABLES-6502.vcxproj", "{55C5F650-1F69-49DC-BC08-AD8C4C775D2B}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WLA-6502", "WLA-6502\WLA-6502.vcxproj", "{1DCD98F3-D5D9-49C2-AC69-E7491714CB3F}"
ProjectSection(ProjectDependencies) = postProject
{55C5F650-1F69-49DC-BC08-AD8C4C775D2B} = {55C5F650-1F69-49DC-BC08-AD8C4C775D2B}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WLALINK", "WLALINK\WLALINK.vcxproj", "{BB7C84A2-C7D2-48D4-BDD1-76E1CA82401D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{55C5F650-1F69-49DC-BC08-AD8C4C775D2B}.Debug|x64.ActiveCfg = Debug|x64
{55C5F650-1F69-49DC-BC08-AD8C4C775D2B}.Debug|x64.Build.0 = Debug|x64
{55C5F650-1F69-49DC-BC08-AD8C4C775D2B}.Debug|x86.ActiveCfg = Debug|Win32
{55C5F650-1F69-49DC-BC08-AD8C4C775D2B}.Debug|x86.Build.0 = Debug|Win32
{55C5F650-1F69-49DC-BC08-AD8C4C775D2B}.Release|x64.ActiveCfg = Release|x64
{55C5F650-1F69-49DC-BC08-AD8C4C775D2B}.Release|x64.Build.0 = Release|x64
{55C5F650-1F69-49DC-BC08-AD8C4C775D2B}.Release|x86.ActiveCfg = Release|Win32
{55C5F650-1F69-49DC-BC08-AD8C4C775D2B}.Release|x86.Build.0 = Release|Win32
{1DCD98F3-D5D9-49C2-AC69-E7491714CB3F}.Debug|x64.ActiveCfg = Debug|x64
{1DCD98F3-D5D9-49C2-AC69-E7491714CB3F}.Debug|x64.Build.0 = Debug|x64
{1DCD98F3-D5D9-49C2-AC69-E7491714CB3F}.Debug|x86.ActiveCfg = Debug|Win32
{1DCD98F3-D5D9-49C2-AC69-E7491714CB3F}.Debug|x86.Build.0 = Debug|Win32
{1DCD98F3-D5D9-49C2-AC69-E7491714CB3F}.Release|x64.ActiveCfg = Release|x64
{1DCD98F3-D5D9-49C2-AC69-E7491714CB3F}.Release|x64.Build.0 = Release|x64
{1DCD98F3-D5D9-49C2-AC69-E7491714CB3F}.Release|x86.ActiveCfg = Release|Win32
{1DCD98F3-D5D9-49C2-AC69-E7491714CB3F}.Release|x86.Build.0 = Release|Win32
{BB7C84A2-C7D2-48D4-BDD1-76E1CA82401D}.Debug|x64.ActiveCfg = Debug|x64
{BB7C84A2-C7D2-48D4-BDD1-76E1CA82401D}.Debug|x64.Build.0 = Debug|x64
{BB7C84A2-C7D2-48D4-BDD1-76E1CA82401D}.Debug|x86.ActiveCfg = Debug|Win32
{BB7C84A2-C7D2-48D4-BDD1-76E1CA82401D}.Debug|x86.Build.0 = Debug|Win32
{BB7C84A2-C7D2-48D4-BDD1-76E1CA82401D}.Release|x64.ActiveCfg = Release|x64
{BB7C84A2-C7D2-48D4-BDD1-76E1CA82401D}.Release|x64.Build.0 = Release|x64
{BB7C84A2-C7D2-48D4-BDD1-76E1CA82401D}.Release|x86.ActiveCfg = Release|Win32
{BB7C84A2-C7D2-48D4-BDD1-76E1CA82401D}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {38F63F54-BA7A-4CC7-A114-5434D21C2227}
EndGlobalSection
EndGlobal

3 comments on commit 4a2c374

@Neui
Copy link
Contributor

@Neui Neui commented on 4a2c374 Mar 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use CMake? It can generate VS files and you don't have to maintain yet another build system

@cr1901
Copy link
Collaborator

@cr1901 cr1901 commented on 4a2c374 Mar 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would also be my suggestion. cmake -G "NMake Makefiles" .

@vhelin
Copy link
Owner Author

@vhelin vhelin commented on 4a2c374 Mar 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to admit that I don't know what NMake is and what it is used for. :) And that you could get a solution file out of CMake... Anyway, I can maintain the Visual Studio solution as well, not a big deal. It's convenient for me as I don't have to fight any more with Azure and the automated builds. And I'm sure many people without NMake and CMake will find the solution file useful.

Please sign in to comment.