Skip to content

Commit

Permalink
Add VS2019 project and correction for x64 platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jsgonsette committed Mar 11, 2022
1 parent ebd1eb3 commit 2089046
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 3 deletions.
28 changes: 28 additions & 0 deletions Projects/VS2019/Wizium.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libWizium", "libWizium.vcxproj", "{2B879E23-9AA3-4B66-8F5F-6DC5CC4452A0}"
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
{2B879E23-9AA3-4B66-8F5F-6DC5CC4452A0}.Debug|x64.ActiveCfg = Debug|x64
{2B879E23-9AA3-4B66-8F5F-6DC5CC4452A0}.Debug|x64.Build.0 = Debug|x64
{2B879E23-9AA3-4B66-8F5F-6DC5CC4452A0}.Debug|x86.ActiveCfg = Debug|Win32
{2B879E23-9AA3-4B66-8F5F-6DC5CC4452A0}.Debug|x86.Build.0 = Debug|Win32
{2B879E23-9AA3-4B66-8F5F-6DC5CC4452A0}.Release|x64.ActiveCfg = Release|x64
{2B879E23-9AA3-4B66-8F5F-6DC5CC4452A0}.Release|x64.Build.0 = Release|x64
{2B879E23-9AA3-4B66-8F5F-6DC5CC4452A0}.Release|x86.ActiveCfg = Release|Win32
{2B879E23-9AA3-4B66-8F5F-6DC5CC4452A0}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
185 changes: 185 additions & 0 deletions Projects/VS2019/libWizium.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
<?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>
<PropertyGroup Label="Globals">
<ProjectGuid>{2B879E23-9AA3-4B66-8F5F-6DC5CC4452A0}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>libWizium</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</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>
<CodeAnalysisRuleSet>MixedRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\Binaries\Windows\</OutDir>
<TargetName>$(ProjectName)_$(PlatformTarget)</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\Binaries\Windows\</OutDir>
<TargetName>$(ProjectName)_$(PlatformTarget)</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBWIZIUM_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>.\..\..\Sources</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;LIBWIZIUM_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>.\..\..\Sources</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</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>WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBWIZIUM_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>.\..\..\Sources</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</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>NDEBUG;_WINDOWS;_USRDLL;LIBWIZIUM_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>.\..\..\Sources</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\Sources\Dictionary\Dictionary.cpp" />
<ClCompile Include="..\..\Sources\Grid\Box.cpp" />
<ClCompile Include="..\..\Sources\Grid\Grid.cpp" />
<ClCompile Include="..\..\Sources\library.cpp" />
<ClCompile Include="..\..\Sources\library.Module.cpp" />
<ClCompile Include="..\..\Sources\libWizium.cpp" />
<ClCompile Include="..\..\Sources\Solvers\SolverDynamic.cpp" />
<ClCompile Include="..\..\Sources\Solvers\SolverDynamic.DynamicItem.cpp" />
<ClCompile Include="..\..\Sources\Solvers\SolverStatic.StaticItem.cpp" />
<ClCompile Include="..\..\Sources\Solvers\SolverStatic.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\Sources\Dictionary\Dictionary.h" />
<ClInclude Include="..\..\Sources\Grid\Box.h" />
<ClInclude Include="..\..\Sources\Grid\Grid.h" />
<ClInclude Include="..\..\Sources\library.h" />
<ClInclude Include="..\..\Sources\library.Module.h" />
<ClInclude Include="..\..\Sources\libWizium.h" />
<ClInclude Include="..\..\Sources\Solvers\ISolver.h" />
<ClInclude Include="..\..\Sources\Solvers\SolverDynamic.DynamicItem.h" />
<ClInclude Include="..\..\Sources\Solvers\SolverDynamic.h" />
<ClInclude Include="..\..\Sources\Solvers\SolverStatic.StaticItem.h" />
<ClInclude Include="..\..\Sources\Solvers\SolverStatic.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
6 changes: 3 additions & 3 deletions Sources/libWizium.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ constexpr auto VER_RELEASE = 1;
//
// ###########################################################################

#if defined(WIN32)
#define PL_WIN32 ///< Windows
#if defined(_WIN64) || defined (_WIN32)
#define PL_WINDOWS ///< Windows
#elif defined(__linux__)
#define PL_LINUX ///< Linux
#endif
Expand All @@ -48,7 +48,7 @@ constexpr auto VER_RELEASE = 1;
# define EXTERN_C extern
#endif

#ifndef PL_WIN32
#ifndef PL_WINDOWS
#define LIB_API
#else
#ifdef LIBWIZIUM_EXPORTS
Expand Down

0 comments on commit 2089046

Please sign in to comment.