Skip to content

Commit

Permalink
gtest vcxproj fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex0vSky committed Sep 12, 2023
1 parent a888f3d commit 60d29f7
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 49 deletions.
68 changes: 35 additions & 33 deletions qa/UnitTest/GTest1/GTest1.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,75 +69,77 @@
<ItemGroup>
<ClInclude Include="stdafx.h" />
</ItemGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PreprocessorDefinitions>A0S_HWH_YOUROWN_ENTRY;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include; ..\..\..\resource;..\..\..;..\..\..\src; ..\..\..\src\_pch; ..\..\..\ThirdParty; ..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\EditorSubsystem;..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\Engine;..\..\..\include\Engine\Source\Runtime\Engine\Public;..\..\..\include\Engine\Source\Editor\EditorSubsystem\Public; ..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\GameProjectGeneration;..\..\..\include\Engine\Source;..\..\..\include\Engine\Source\Editor\AddContentDialog\Public; ..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\AddContentDialog; ..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\SlateCore;..\..\..\include\Engine\Source\Runtime\SlateCore\Public;..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\InputCore;..\..\..\include\Engine\Source\Runtime\InputCore\Classes; ..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\HardwareTargeting;..\..\..\include\Engine\Source\Runtime\Core\Public;..\..\..\include\Engine\Source\Runtime\ApplicationCore\Public;..\..\..\include\Engine\Source\Editor\HardwareTargeting\Public;..\..\..\include\Engine\Source\Runtime\Json\Public;..\..\..\include\Engine\Source\Runtime\Projects\Public;..\..\..\include\Engine\Source\Runtime\CoreUObject\Public;..\..\..\include\Engine\Source\Runtime\Slate\Public;..\..\..\include\Engine\Source\Runtime\TraceLog\Public; %(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp17</LanguageStandard>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<Optimization>Disabled</Optimization>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<AdditionalLibraryDirectories>..\..\..\..\HelloWinHlsl\lib\$(PlatformTarget)\$(Configuration);</AdditionalLibraryDirectories>
<AdditionalDependencies>HelloWinHlsl.lib;</AdditionalDependencies>
<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
<AdditionalOptions>/ignore:4099</AdditionalOptions>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PreprocessorDefinitions>A0S_HWH_YOUROWN_ENTRY;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<AdditionalIncludeDirectories>..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include; ..\..\..\resource;..\..\..\src;..\..\..\src\_pch;..\..\..\ThirdParty; </AdditionalIncludeDirectories>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard>stdcpp17</LanguageStandard>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<Optimization>Disabled</Optimization>
<RemoveUnreferencedCodeData>false</RemoveUnreferencedCodeData>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<AdditionalLibraryDirectories>..\..\..\..\HelloWinHlsl\lib\$(PlatformTarget)\$(Configuration);</AdditionalLibraryDirectories>
<AdditionalDependencies>HelloWinHlsl.lib;</AdditionalDependencies>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
<AdditionalOptions>/ignore:4099</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>A0S_HWH_YOUROWN_ENTRY;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include; ..\..\..\resource;..\..\..;..\..\..\src; ..\..\..\src\_pch; ..\..\..\ThirdParty; ..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\EditorSubsystem;..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\Engine;..\..\..\include\Engine\Source\Runtime\Engine\Public;..\..\..\include\Engine\Source\Editor\EditorSubsystem\Public; ..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\GameProjectGeneration;..\..\..\include\Engine\Source;..\..\..\include\Engine\Source\Editor\AddContentDialog\Public; ..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\AddContentDialog; ..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\SlateCore;..\..\..\include\Engine\Source\Runtime\SlateCore\Public;..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\InputCore;..\..\..\include\Engine\Source\Runtime\InputCore\Classes; ..\..\..\include\Engine\Intermediate\Build\Win64\UE4Editor\Inc\HardwareTargeting;..\..\..\include\Engine\Source\Runtime\Core\Public;..\..\..\include\Engine\Source\Runtime\ApplicationCore\Public;..\..\..\include\Engine\Source\Editor\HardwareTargeting\Public;..\..\..\include\Engine\Source\Runtime\Json\Public;..\..\..\include\Engine\Source\Runtime\Projects\Public;..\..\..\include\Engine\Source\Runtime\CoreUObject\Public;..\..\..\include\Engine\Source\Runtime\Slate\Public;..\..\..\include\Engine\Source\Runtime\TraceLog\Public; %(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard>stdcpp17</LanguageStandard>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<Optimization>Disabled</Optimization>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalOptions>
Delayimp.lib
/delayload:UE4Editor-Core.dll
/delayload:UE4Editor-ApplicationCore.dll
/delayload:UE4Editor-GameProjectGeneration.dll
/delayload:UE4Editor-CoreUObject.dll
/delayload:UE4Editor-AddContentDialog.dll
/delayload:UE4Editor-Slate.dll
..\..\..\lib\UE4Editor-Core.lib
..\..\..\lib\UE4Editor-ApplicationCore.lib
..\..\..\lib\UE4Editor-GameProjectGeneration.lib
..\..\..\lib\UE4Editor-CoreUObject.lib
..\..\..\lib\UE4Editor-AddContentDialog.lib
..\..\..\lib\UE4Editor-Slate.lib
%(AdditionalOptions)</AdditionalOptions>
<AdditionalLibraryDirectories>..\..\..\..\HelloWinHlsl\lib\$(PlatformTarget)\$(Configuration);</AdditionalLibraryDirectories>
<AdditionalDependencies>HelloWinHlsl.lib;</AdditionalDependencies>
<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
<AdditionalOptions>/ignore:4099</AdditionalOptions>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<PrecompiledHeader>Use</PrecompiledHeader>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>None</DebugInformationFormat>
<PreprocessorDefinitions>A0S_HWH_YOUROWN_ENTRY;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include; ..\..\..\resource;..\..\..\src;..\..\..\src\_pch;..\..\..\ThirdParty; </AdditionalIncludeDirectories>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard>stdcpp17</LanguageStandard>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<Optimization>Disabled</Optimization>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<AdditionalLibraryDirectories>..\..\..\..\HelloWinHlsl\lib\$(PlatformTarget)\$(Configuration);</AdditionalLibraryDirectories>
<AdditionalDependencies>HelloWinHlsl.lib;</AdditionalDependencies>
<GenerateDebugInformation>false</GenerateDebugInformation>
<EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
<AdditionalOptions>/ignore:4099</AdditionalOptions>
</Link>
</ItemDefinitionGroup>
</Project>
5 changes: 1 addition & 4 deletions qa/UnitTest/GTest1/stdafx.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#pragma once
// TODO:
//#include "HelloWinHlsl.h"
#include "stdafx_sys.h"
#include "Main.h"
#include "HelloWinHlsl.h"
#include "gtest\gtest.h"
#include "gmock\gmock.h"

Expand Down
23 changes: 11 additions & 12 deletions qa/UnitTest/StaticLibrary/StaticLibrary.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<AdditionalIncludeDirectories>..\..\..\ThirdParty\SynCOMAPIv1_0\Include;..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include;..\..\..\resource;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include;..\..\..\resource;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard>stdcpp17</LanguageStandard>
<Optimization>Disabled</Optimization>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand All @@ -75,14 +74,13 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>X64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<AdditionalIncludeDirectories>..\..\..\ThirdParty\SynCOMAPIv1_0\Include;..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include;..\..\..\resource;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include;..\..\..\resource;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard>stdcpp17</LanguageStandard>
<Optimization>Disabled</Optimization>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
Expand All @@ -93,9 +91,10 @@
<ClCompile>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<AdditionalIncludeDirectories>..\..\..\ThirdParty\SynCOMAPIv1_0\Include;..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include;..\..\..\resource;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include;..\..\..\resource;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard>stdcpp17</LanguageStandard>
<Optimization>Disabled</Optimization>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -105,10 +104,10 @@
<ClCompile>
<PreprocessorDefinitions>X64;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<AdditionalIncludeDirectories>..\..\..\ThirdParty\SynCOMAPIv1_0\Include;..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include;..\..\..\resource;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\ThirdParty\googletest\gmock\include;..\ThirdParty\gmock-win32\include;..\..\..\resource;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard>stdcpp17</LanguageStandard>
<Optimization>Disabled</Optimization>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down

0 comments on commit 60d29f7

Please sign in to comment.