147 lines
8.5 KiB
XML
147 lines
8.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<ItemGroup Label="ProjectConfigurations">
|
|
<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">
|
|
<VCProjectVersion>17.0</VCProjectVersion>
|
|
<ProjectGuid>{2F8B5F4C-7E8D-4A9B-8C6D-1E3F5A7B9C2D}</ProjectGuid>
|
|
<Keyword>Win32Proj</Keyword>
|
|
<RootNamespace>Vav2UnitTest</RootNamespace>
|
|
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
|
<ProjectSubType>NativeUnitTestProject</ProjectSubType>
|
|
</PropertyGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
<UseDebugLibraries>true</UseDebugLibraries>
|
|
<PlatformToolset>v143</PlatformToolset>
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
<UseOfMfc>false</UseOfMfc>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
|
<UseDebugLibraries>false</UseDebugLibraries>
|
|
<PlatformToolset>v143</PlatformToolset>
|
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
|
<CharacterSet>Unicode</CharacterSet>
|
|
<UseOfMfc>false</UseOfMfc>
|
|
</PropertyGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
<ImportGroup Label="ExtensionSettings">
|
|
</ImportGroup>
|
|
<ImportGroup Label="Shared">
|
|
</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|x64'">
|
|
<LinkIncremental>true</LinkIncremental>
|
|
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\UnitTest\</OutDir>
|
|
<IntDir>$(Platform)\$(Configuration)\UnitTest\</IntDir>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
<PostBuildEventUseInBuild>true</PostBuildEventUseInBuild>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
<LinkIncremental>false</LinkIncremental>
|
|
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\UnitTest\</OutDir>
|
|
<IntDir>$(Platform)\$(Configuration)\UnitTest\</IntDir>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
<PostBuildEventUseInBuild>true</PostBuildEventUseInBuild>
|
|
</PropertyGroup>
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
<ClCompile>
|
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<SDLCheck>true</SDLCheck>
|
|
<AdditionalIncludeDirectories>$(ProjectDir)tests;$(ProjectDir)..\..\..\vavcore\include;$(ProjectDir)..\..\..\vavcore\src;$(ProjectDir)..\..\..\applications\vav2player\Vav2Player\src;$(ProjectDir)..\..\..\..\..\include\libwebm;$(ProjectDir)..\..\..\..\..\include\dav1d;$(ProjectDir)..\..\..\..\..\oss\nvidia-video-codec\Interface;$(CUDA_PATH_V13_0)\include;$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
<PreprocessorDefinitions>WIN32;_DEBUG;UNIT_TEST_BUILD;VAVCORE_STATIC_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<UseFullPaths>true</UseFullPaths>
|
|
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
|
|
<LanguageStandard>stdcpp20</LanguageStandard>
|
|
</ClCompile>
|
|
<Link>
|
|
<SubSystem>Windows</SubSystem>
|
|
<AdditionalLibraryDirectories>$(ProjectDir)..\..\..\vavcore\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
<AdditionalDependencies>VavCore-debug.lib;mfplat.lib;mfuuid.lib;d3d12.lib;d3d11.lib;dxgi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
</Link>
|
|
<PostBuildEvent>
|
|
<Command>echo Copying VavCore Debug DLL for Unit Tests...
|
|
copy "$(ProjectDir)..\..\..\vavcore\lib\VavCore-debug.dll" "$(TargetDir)VavCore-debug.dll"
|
|
echo VavCore Debug DLL copy completed.</Command>
|
|
</PostBuildEvent>
|
|
</ItemDefinitionGroup>
|
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
<ClCompile>
|
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
|
<SDLCheck>true</SDLCheck>
|
|
<AdditionalIncludeDirectories>$(ProjectDir)tests;$(ProjectDir)..\..\..\vavcore\include;$(ProjectDir)..\..\..\vavcore\src;$(ProjectDir)..\..\..\applications\vav2player\Vav2Player\src;$(ProjectDir)..\..\..\..\..\include\libwebm;$(ProjectDir)..\..\..\..\..\include\dav1d;$(ProjectDir)..\..\..\..\..\oss\nvidia-video-codec\Interface;$(CUDA_PATH_V13_0)\include;$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
<PreprocessorDefinitions>WIN32;NDEBUG;UNIT_TEST_BUILD;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<UseFullPaths>true</UseFullPaths>
|
|
<PrecompiledHeaderOutputFile>$(IntDir)pch.pch</PrecompiledHeaderOutputFile>
|
|
<LanguageStandard>stdcpp20</LanguageStandard>
|
|
</ClCompile>
|
|
<Link>
|
|
<SubSystem>Windows</SubSystem>
|
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
|
<OptimizeReferences>true</OptimizeReferences>
|
|
<AdditionalLibraryDirectories>$(ProjectDir)..\..\..\vavcore\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
|
<AdditionalDependencies>VavCore.lib;mfplat.lib;mfuuid.lib;d3d12.lib;d3d11.lib;dxgi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
|
</Link>
|
|
<PostBuildEvent>
|
|
<Command>echo Copying VavCore Release DLL for Unit Tests...
|
|
copy "$(ProjectDir)..\..\..\vavcore\lib\VavCore.dll" "$(TargetDir)VavCore.dll"
|
|
echo VavCore Release DLL copy completed.</Command>
|
|
</PostBuildEvent>
|
|
</ItemDefinitionGroup>
|
|
<ItemGroup>
|
|
<ClInclude Include="tests\pch.h" />
|
|
<ClInclude Include="tests\MockLogManager.h" />
|
|
<!-- Temporarily excluding Mock classes until they're updated -->
|
|
<!-- <ClInclude Include="tests\MockWebMFileReader.h" /> -->
|
|
<!-- <ClInclude Include="tests\MockVideoRenderer.h" /> -->
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClCompile Include="tests\pch.cpp">
|
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
|
</ClCompile>
|
|
<!-- Basic tests that work with VavCore internal API -->
|
|
<ClCompile Include="tests\VideoTypesTest.cpp" />
|
|
<ClCompile Include="tests\VavCoreTest.cpp" />
|
|
<ClCompile Include="tests\LogManagerTest.cpp" />
|
|
<!-- Logger implementation files needed for LogManagerTest -->
|
|
<ClCompile Include="..\..\..\applications\vav2player\Vav2Player\src\Logger\LogManager.cpp" />
|
|
<ClCompile Include="..\..\..\applications\vav2player\Vav2Player\src\Logger\LogOutputs.cpp" />
|
|
<!-- Temporarily excluding complex tests until Mock classes are updated -->
|
|
<!-- <ClCompile Include="tests\MockWebMFileReader.cpp" /> -->
|
|
<!-- <ClCompile Include="tests\MockVideoRenderer.cpp" /> -->
|
|
<!-- <ClCompile Include="tests\WebMFileReaderTest.cpp" /> -->
|
|
<!-- <ClCompile Include="tests\AV1DecoderTest.cpp" /> -->
|
|
<!-- <ClCompile Include="tests\VideoRendererTest.cpp" /> -->
|
|
<!-- <ClCompile Include="tests\VideoPlayerControlTest.cpp" /> -->
|
|
</ItemGroup>
|
|
<!-- Common source files (shared with main project) -->
|
|
<!-- Include files needed for Unit Testing -->
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
<ImportGroup Label="ExtensionTargets">
|
|
</ImportGroup>
|
|
</Project> |