Skip to content

Commit

Permalink
Use vcpkg & drop OTClient SDK for windows
Browse files Browse the repository at this point in the history
additionaly, the project has been updated to Visual Studio 2019!
  • Loading branch information
slavidodo committed May 7, 2020
1 parent 714c6b8 commit e3caaac
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 109 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ config.otml
!.gitignore
otclient.map
otclient.layout
otclient.exp
otclient.lib
LOCALTODO
tags
Thumbs.db
Expand Down
1 change: 0 additions & 1 deletion vc14/arch32.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<PropertyGroup Label="UserMacros" />
<ItemDefinitionGroup>
<Link>
<AdditionalLibraryDirectories>$(OTCLIENT_LIBS)</AdditionalLibraryDirectories>
<LargeAddressAware>true</LargeAddressAware>
</Link>
</ItemDefinitionGroup>
Expand Down
3 changes: 0 additions & 3 deletions vc14/arch64.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
<FloatingPointModel>Fast</FloatingPointModel>
</ClCompile>
<Link>
<AdditionalLibraryDirectories>$(OTCLIENT_LIBS64)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemGroup />
</Project>
19 changes: 10 additions & 9 deletions vc14/otclient.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,53 +22,50 @@
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{17A8F78F-1FFB-4128-A3B3-59CC6C19D89A}</ProjectGuid>
<RootNamespace>otclient</RootNamespace>
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.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>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<Import Project="settings.props" />
<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" />
<Import Project="settings.props" />
<Import Project="arch32.props" />
<Import Project="debug.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="settings.props" />
<Import Project="arch64.props" />
<Import Project="debug.props" />
</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" />
<Import Project="settings.props" />
<Import Project="arch32.props" />
<Import Project="release.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="settings.props" />
<Import Project="arch64.props" />
<Import Project="release.props" />
</ImportGroup>
Expand All @@ -92,6 +89,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<Optimization>Disabled</Optimization>
<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
<AdditionalIncludeDirectories>$(VcpkgRoot)include\luajit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<TargetMachine>MachineX86</TargetMachine>
Expand All @@ -103,6 +101,7 @@
<PreprocessorDefinitions>$(PREPROCESSOR_DEFS);_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>
<AdditionalIncludeDirectories>$(VcpkgRoot)include\luajit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand All @@ -116,6 +115,7 @@
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<AdditionalIncludeDirectories>$(VcpkgRoot)include\luajit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<TargetMachine>MachineX86</TargetMachine>
Expand All @@ -134,6 +134,7 @@
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<AdditionalIncludeDirectories>$(VcpkgRoot)include\luajit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand Down
98 changes: 2 additions & 96 deletions vc14/settings.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros">
<LUA_DIR>$(OTCLIENTSDKDir)\LuaJIT-2.1.0\</LUA_DIR>
<GLEW_DIR>$(OTCLIENTSDKDir)\glew-2.0.0\</GLEW_DIR>
<LIBOGG_DIR>$(OTCLIENTSDKDir)\libogg-1.3.2\</LIBOGG_DIR>
<LIBVORBIS_DIR>$(OTCLIENTSDKDir)\libvorbis-1.3.5\</LIBVORBIS_DIR>
<OPEN_AL_DIR>$(OTCLIENTSDKDir)\OpenAL-1.15.1\</OPEN_AL_DIR>
<OPEN_SSL_DIR>$(OTCLIENTSDKDir)\OpenSSL-1.0.2j\</OPEN_SSL_DIR>
<PHYSFS_DIR>$(OTCLIENTSDKDir)\physfs-2.0.3.1\</PHYSFS_DIR>
<ZLIB_DIR>$(OTCLIENTSDKDir)\zlib-1.2.8.8\</ZLIB_DIR>

<PREPROCESSOR_DEFS>
WIN32;
_CRT_SECURE_NO_WARNINGS;
Expand All @@ -28,47 +19,10 @@
VERSION="0.6.6";
AB
</PREPROCESSOR_DEFS>

<OTCLIENT_INCLUDES>
$(BOOST_ROOT_OTCLIENT);
$(LUA_DIR)\include;
$(GLEW_DIR)\include;
$(LIBOGG_DIR)\include;
$(LIBVORBIS_DIR)\include;
$(OPEN_AL_DIR)\include;
$(OPEN_SSL_DIR)\include;
$(PHYSFS_DIR)\include;
$(ZLIB_DIR)\include
</OTCLIENT_INCLUDES>

<OTCLIENT_LIBS>
$(BOOST_ROOT_OTCLIENT)\lib32-msvc-14.0;
$(LUA_DIR)\lib;
$(GLEW_DIR)\lib;
$(LIBOGG_DIR)\lib;
$(LIBVORBIS_DIR)\lib;
$(OPEN_AL_DIR)\lib;
$(OPEN_SSL_DIR)\lib;
$(PHYSFS_DIR)\lib;
$(ZLIB_DIR)\lib
</OTCLIENT_LIBS>

<OTCLIENT_LIBS64>
$(BOOST_ROOT_OTCLIENT)\lib64-msvc-14.0;
$(LUA_DIR)\lib64;
$(GLEW_DIR)\lib64;
$(LIBOGG_DIR)\lib64;
$(LIBVORBIS_DIR)\lib64;
$(OPEN_AL_DIR)\lib64;
$(OPEN_SSL_DIR)\lib64;
$(PHYSFS_DIR)\lib64;
$(ZLIB_DIR)\lib64
</OTCLIENT_LIBS64>


<OTCLIENT_LIBDEPS>
glew32.lib;
zlib.lib;
libeay32.lib;
physfs.lib;
openal32.lib;
lua51.lib;
Expand All @@ -87,7 +41,7 @@
<OTCLIENT_LIBDEPS_D>
glew32d.lib;
zlibd.lib;
libeay32.lib;
zstdd.lib;
physfs.lib;
openal32.lib;
lua51.lib;
Expand All @@ -102,14 +56,12 @@
gdi32.lib;
advapi32.lib;
</OTCLIENT_LIBDEPS_D>

</PropertyGroup>
<PropertyGroup>
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>$(OTCLIENT_INCLUDES)</AdditionalIncludeDirectories>
<WarningLevel>Level3</WarningLevel>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<WholeProgramOptimization>true</WholeProgramOptimization>
Expand All @@ -118,7 +70,6 @@
<Link>
<AdditionalDependencies>$(OTCLIENT_LIBDEPS)</AdditionalDependencies>
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
<IgnoreSpecificDefaultLibraries>libcmt.lib</IgnoreSpecificDefaultLibraries>
<LargeAddressAware>true</LargeAddressAware>
<SubSystem>Windows</SubSystem>
<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
Expand All @@ -128,55 +79,10 @@
</ResourceCompile> -->
</ItemDefinitionGroup>
<ItemGroup>
<BuildMacro Include="LUA_DIR">
<Value>$(LUA_DIR)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="GLEW_DIR">
<Value>$(GLEW_DIR)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="LIBOGG_DIR">
<Value>$(LIBOGG_DIR)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="LIBVORBIS_DIR">
<Value>$(LIBVORBIS_DIR)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="OPEN_AL_DIR">
<Value>$(OPEN_AL_DIR)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="OPEN_SSL_DIR">
<Value>$(OPEN_SSL_DIR)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="PHYSFS_DIR">
<Value>$(PHYSFS_DIR)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="ZLIB_DIR">
<Value>$(ZLIB_DIR)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>

<BuildMacro Include="PREPROCESSOR_DEFS">
<Value>$(PREPROCESSOR_DEFS)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="OTCLIENT_INCLUDES">
<Value>$(OTCLIENT_INCLUDES)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="OTCLIENT_LIBS">
<Value>$(OTCLIENT_LIBS)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="OTCLIENT_LIBS64">
<Value>$(OTCLIENT_LIBS64)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
<BuildMacro Include="OTCLIENT_LIBDEPS">
<Value>$(OTCLIENT_LIBDEPS)</Value>
<EnvironmentVariable>true</EnvironmentVariable>
Expand Down

0 comments on commit e3caaac

Please sign in to comment.