Skip to content

Commit

Permalink
fix: solution compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Oct 28, 2024
1 parent 90c303e commit 615f458
Showing 1 changed file with 28 additions and 32 deletions.
60 changes: 28 additions & 32 deletions vc17/otclient.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<ProjectGuid>{17A8F78F-1FFB-4128-A3B3-59CC6C19D89A}</ProjectGuid>
<RootNamespace>otclient</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<SourcePath>$(OutDirFullPath)../src/</SourcePath>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
Expand Down Expand Up @@ -106,12 +107,10 @@
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);../src;</IncludePath>
<SourcePath>$(VC_SourcePath);$(ProjectDir)../src;</SourcePath>
<TargetName>$(ProjectName)-dbg</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);../src;</IncludePath>
<SourcePath>$(VC_SourcePath);$(ProjectDir)../src;</SourcePath>
<TargetName>$(ProjectName)_x64-dbg</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='OpenGL|Win32'">
Expand All @@ -135,6 +134,7 @@
</VcpkgHostTriplet>
<VcpkgTriplet>x86-windows-static</VcpkgTriplet>
<VcpkgConfiguration>Release</VcpkgConfiguration>
<VcpkgInstalledDir>vcpkg_installed</VcpkgInstalledDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DirectX|Win32'" Label="Vcpkg">
<VcpkgHostTriplet />
Expand All @@ -154,9 +154,11 @@
<PropertyGroup Label="Vcpkg">
<VcpkgEnableManifest>true</VcpkgEnableManifest>
<VcpkgAutoLink>true</VcpkgAutoLink>
<VcpkgInstalledDir>vcpkg_installed</VcpkgInstalledDir>
</PropertyGroup>
<PropertyGroup Label="Vcpkg" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<VcpkgTriplet>x86-windows</VcpkgTriplet>
<VcpkgInstalledDir>vcpkg_installed</VcpkgInstalledDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Vcpkg">
<VcpkgTriplet>x64-windows</VcpkgTriplet>
Expand All @@ -167,7 +169,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<Optimization>Disabled</Optimization>
<EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp20</LanguageStandard>
<DisableSpecificWarnings>4244;4251;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<CombineFilesOnlyFromTheSameFolder>true</CombineFilesOnlyFromTheSameFolder>
Expand All @@ -184,7 +186,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<Optimization>Disabled</Optimization>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp20</LanguageStandard>
<DisableSpecificWarnings>4244;4251;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<CombineFilesOnlyFromTheSameFolder>true</CombineFilesOnlyFromTheSameFolder>
Expand All @@ -201,7 +203,7 @@
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp20</LanguageStandard>
<LanguageStandard_C>Default</LanguageStandard_C>
<DisableSpecificWarnings>4244;4251;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
Expand All @@ -224,7 +226,7 @@
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp20</LanguageStandard>
<LanguageStandard_C>Default</LanguageStandard_C>
<DisableSpecificWarnings>4244;4251;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
Expand All @@ -248,7 +250,7 @@
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp20</LanguageStandard>
<LanguageStandard_C>Default</LanguageStandard_C>
<DisableSpecificWarnings>4244;4251;4996;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
Expand All @@ -270,7 +272,7 @@
<Optimization>MaxSpeed</Optimization>
<IntrinsicFunctions>true</IntrinsicFunctions>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(VcpkgRoot)\installed\$(VcpkgTriplet)\include\luajit;generated;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp20</LanguageStandard>
<LanguageStandard_C>Default</LanguageStandard_C>
<DisableSpecificWarnings>4244;4251;4996;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
Expand Down Expand Up @@ -439,7 +441,6 @@
<ClCompile Include="..\src\framework\ui\uiwidgettext.cpp" />
<ClCompile Include="..\src\framework\util\color.cpp" />
<ClCompile Include="..\src\framework\util\crypt.cpp" />
<ClCompile Include="..\src\protobuf\appearances.pb.cc" />
<ClCompile Include="..\src\main.cpp" />
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -626,41 +627,36 @@
<ItemGroup>
<ResourceCompile Include="..\src\otcicon.rc" />
</ItemGroup>
<Target Name="EnsureGeneratedDirectoryExists" BeforeTargets="ProtoCompile">
<MakeDir Directories="generated" />
</Target>
<PropertyGroup>
<RunProtoCompile>true</RunProtoCompile>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_WORKSPACE)' != ''">
<RunProtoCompile>false</RunProtoCompile>
<RunProtoCompile>false</RunProtoCompile>
</PropertyGroup>
<Target Name="DisplayRunProtoCompileValue" BeforeTargets="ProtoCompile">
<Message Text="RunProtoCompile value: $(RunProtoCompile)" Importance="high" />
</Target>
<PropertyGroup Condition="'$(RunProtoCompile)'=='true'">
<ProtocPath>$(ProjectDir)vcpkg_installed\$(VcpkgTriplet)\tools\protobuf\protoc</ProtocPath>
<ProtoPath>..\$(SourcePath)\protobuf</ProtoPath>
<ProtocPath>$(ProjectDir)vcpkg_installed\$(VcpkgTriplet)\tools\protobuf\protoc</ProtocPath>
<ProtoPath>$(SourcePath)protobuf</ProtoPath>
</PropertyGroup>
<PropertyGroup Condition="'$(RunProtoCompile)'=='false'">
<ProtocPath>$(ProjectDir)vcpkg_installed\$(VcpkgTriplet)\tools\protobuf\protoc</ProtocPath>
<ProtoPath>$(GITHUB_WORKSPACE)\src\protobuf</ProtoPath>
<ProtocPath>$(ProjectDir)vcpkg_installed\$(VcpkgTriplet)\tools\protobuf\protoc</ProtocPath>
<ProtoPath>$(GITHUB_WORKSPACE)\src\protobuf</ProtoPath>
</PropertyGroup>
<ItemGroup>
<ProtoFiles Include="$(ProtoPath)\*.proto" />
<ProtoFiles Include="$(ProtoPath)\*.proto" />
</ItemGroup>
<Target Name="ProtoCompile" BeforeTargets="PrepareForBuild" DependsOnTargets="VcpkgInstallManifestDependencies">
<Exec Command="$(ProtocPath) --proto_path=$(ProtoPath) --cpp_out=generated %(ProtoFiles.Identity)" />
<ItemGroup>
<ClCompile Include="generated\%(ProtoFiles.Filename).pb.cc">
<IncludeInUnityFile>false</IncludeInUnityFile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
</ClCompile>
<ClInclude Include="generated\%(ProtoFiles.Filename).pb.h">
<IncludeInUnityFile>false</IncludeInUnityFile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
</ClInclude>
</ItemGroup>
<MakeDir Directories="$(ProjectDir)generated" />
<Exec Command="$(ProtocPath) --proto_path=$(ProtoPath) --cpp_out=generated @(ProtoFiles)" />
<ItemGroup>
<ClCompile Include="generated\%(ProtoFiles.Filename).pb.cc">
<IncludeInUnityFile>false</IncludeInUnityFile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
</ClCompile>
<ClInclude Include="generated\%(ProtoFiles.Filename).pb.h">
<IncludeInUnityFile>false</IncludeInUnityFile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
</ClInclude>
</ItemGroup>
</Target>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down

0 comments on commit 615f458

Please sign in to comment.