Permalink
Browse files

Add Visual Studio project for unit tests

  • Loading branch information...
nickdowell committed Jan 22, 2017
1 parent 4b948b8 commit c6da04f800ab25db81bdb0f654b126167796cb42
View
@@ -253,10 +253,11 @@ MidiController::clearControllerMap()
void
MidiController::loadControllerMap()
{
clearControllerMap();
#if _WIN32
return;
#endif
clearControllerMap();
std::string fname(getenv("HOME"));
fname += "/.amSynthControllersrc";
View
@@ -1,9 +1,10 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "amsynth", "amsynth_vst\amsynth_vst.vcxproj", "{F81774BB-61DE-41A4-B1D2-8BC4A6CAD926}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "amsynth_vst", "amsynth_vst\amsynth_vst.vcxproj", "{F81774BB-61DE-41A4-B1D2-8BC4A6CAD926}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "amsynth_tests", "amsynth_tests\amsynth_tests.vcxproj", "{6FEE7C75-A0AC-46F3-BD4D-93F706D43C64}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -21,6 +22,14 @@ Global
{F81774BB-61DE-41A4-B1D2-8BC4A6CAD926}.Release|x64.Build.0 = Release|x64
{F81774BB-61DE-41A4-B1D2-8BC4A6CAD926}.Release|x86.ActiveCfg = Release|Win32
{F81774BB-61DE-41A4-B1D2-8BC4A6CAD926}.Release|x86.Build.0 = Release|Win32
{6FEE7C75-A0AC-46F3-BD4D-93F706D43C64}.Debug|x64.ActiveCfg = Debug|x64
{6FEE7C75-A0AC-46F3-BD4D-93F706D43C64}.Debug|x64.Build.0 = Debug|x64
{6FEE7C75-A0AC-46F3-BD4D-93F706D43C64}.Debug|x86.ActiveCfg = Debug|Win32
{6FEE7C75-A0AC-46F3-BD4D-93F706D43C64}.Debug|x86.Build.0 = Debug|Win32
{6FEE7C75-A0AC-46F3-BD4D-93F706D43C64}.Release|x64.ActiveCfg = Release|x64
{6FEE7C75-A0AC-46F3-BD4D-93F706D43C64}.Release|x64.Build.0 = Release|x64
{6FEE7C75-A0AC-46F3-BD4D-93F706D43C64}.Release|x86.ActiveCfg = Release|Win32
{6FEE7C75-A0AC-46F3-BD4D-93F706D43C64}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -0,0 +1,198 @@
<?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>
<PropertyGroup Label="Globals">
<ProjectGuid>{6FEE7C75-A0AC-46F3-BD4D-93F706D43C64}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>amsynth_tests</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</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'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</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>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\src\Configuration.cpp" />
<ClCompile Include="..\..\src\Effects\Distortion.cc" />
<ClCompile Include="..\..\src\Effects\SoftLimiter.cc" />
<ClCompile Include="..\..\src\freeverb\allpass.cpp" />
<ClCompile Include="..\..\src\freeverb\comb.cpp" />
<ClCompile Include="..\..\src\freeverb\revmodel.cpp" />
<ClCompile Include="..\..\src\MidiController.cc" />
<ClCompile Include="..\..\src\Parameter.cc" />
<ClCompile Include="..\..\src\Preset.cc" />
<ClCompile Include="..\..\src\PresetController.cc" />
<ClCompile Include="..\..\src\Synthesizer.cpp" />
<ClCompile Include="..\..\src\tests.cpp" />
<ClCompile Include="..\..\src\TuningMap.cc" />
<ClCompile Include="..\..\src\VoiceAllocationUnit.cc" />
<ClCompile Include="..\..\src\VoiceBoard\ADSR.cc" />
<ClCompile Include="..\..\src\VoiceBoard\LowPassFilter.cc" />
<ClCompile Include="..\..\src\VoiceBoard\Oscillator.cc" />
<ClCompile Include="..\..\src\VoiceBoard\VoiceBoard.cc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\Configuration.h" />
<ClInclude Include="..\..\src\controls.h" />
<ClInclude Include="..\..\src\Effects\Distortion.h" />
<ClInclude Include="..\..\src\Effects\SoftLimiter.h" />
<ClInclude Include="..\..\src\freeverb\allpass.hpp" />
<ClInclude Include="..\..\src\freeverb\comb.hpp" />
<ClInclude Include="..\..\src\freeverb\denormals.h" />
<ClInclude Include="..\..\src\freeverb\revmodel.hpp" />
<ClInclude Include="..\..\src\freeverb\tuning.h" />
<ClInclude Include="..\..\src\main.h" />
<ClInclude Include="..\..\src\midi.h" />
<ClInclude Include="..\..\src\MidiController.h" />
<ClInclude Include="..\..\src\Parameter.h" />
<ClInclude Include="..\..\src\Preset.h" />
<ClInclude Include="..\..\src\PresetController.h" />
<ClInclude Include="..\..\src\Synthesizer.h" />
<ClInclude Include="..\..\src\TuningMap.h" />
<ClInclude Include="..\..\src\types.h" />
<ClInclude Include="..\..\src\UpdateListener.h" />
<ClInclude Include="..\..\src\VoiceAllocationUnit.h" />
<ClInclude Include="..\..\src\VoiceBoard\ADSR.h" />
<ClInclude Include="..\..\src\VoiceBoard\LowPassFilter.h" />
<ClInclude Include="..\..\src\VoiceBoard\Oscillator.h" />
<ClInclude Include="..\..\src\VoiceBoard\Synth--.h" />
<ClInclude Include="..\..\src\VoiceBoard\VoiceBoard.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
@@ -0,0 +1,150 @@
<?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;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="..\..\src\VoiceBoard\ADSR.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\freeverb\allpass.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\freeverb\comb.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\Configuration.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\Effects\Distortion.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\VoiceBoard\LowPassFilter.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\MidiController.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\VoiceBoard\Oscillator.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\Parameter.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\Preset.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\PresetController.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\freeverb\revmodel.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\Effects\SoftLimiter.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\Synthesizer.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\TuningMap.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\VoiceAllocationUnit.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\VoiceBoard\VoiceBoard.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\src\tests.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\VoiceBoard\ADSR.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\freeverb\allpass.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\freeverb\comb.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\Configuration.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\controls.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\freeverb\denormals.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\Effects\Distortion.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\VoiceBoard\LowPassFilter.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\main.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\midi.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\MidiController.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\VoiceBoard\Oscillator.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\Parameter.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\Preset.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\PresetController.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\freeverb\revmodel.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\Effects\SoftLimiter.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\VoiceBoard\Synth--.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\Synthesizer.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\freeverb\tuning.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\TuningMap.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\types.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\UpdateListener.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\VoiceAllocationUnit.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\src\VoiceBoard\VoiceBoard.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>

0 comments on commit c6da04f

Please sign in to comment.