WinGetYamlFuzzing.vcxproj (7727B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 <Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.props')" /> 4 <ItemGroup Label="ProjectConfigurations"> 5 <ProjectConfiguration Include="Fuzzing|x64"> 6 <Configuration>Fuzzing</Configuration> 7 <Platform>x64</Platform> 8 </ProjectConfiguration> 9 <ProjectConfiguration Include="Fuzzing|Win32"> 10 <Configuration>Fuzzing</Configuration> 11 <Platform>Win32</Platform> 12 </ProjectConfiguration> 13 </ItemGroup> 14 <PropertyGroup Label="Globals"> 15 <VCProjectVersion>16.0</VCProjectVersion> 16 <Keyword>Win32Proj</Keyword> 17 <ProjectGuid>{1622da16-914f-4f57-a259-d5169003cc8c}</ProjectGuid> 18 <RootNamespace>WinGetYamlFuzzing</RootNamespace> 19 <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> 20 </PropertyGroup> 21 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> 22 <PropertyGroup Condition="'$(Configuration)'=='Fuzzing'" Label="Configuration"> 23 <ConfigurationType>Application</ConfigurationType> 24 <UseDebugLibraries>false</UseDebugLibraries> 25 <PlatformToolset>v142</PlatformToolset> 26 <PlatformToolset Condition="'$(VisualStudioVersion)' == '17.0'">v143</PlatformToolset> 27 <WholeProgramOptimization>false</WholeProgramOptimization> 28 <CharacterSet>Unicode</CharacterSet> 29 <EnableASAN>true</EnableASAN> 30 <EnableFuzzer>true</EnableFuzzer> 31 </PropertyGroup> 32 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> 33 <ImportGroup Label="ExtensionSettings"> 34 </ImportGroup> 35 <ImportGroup Label="Shared"> 36 <Import Project="..\ManifestSchema\ManifestSchema.vcxitems" Label="Shared" /> 37 </ImportGroup> 38 <ImportGroup Label="PropertySheets"> 39 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 40 </ImportGroup> 41 <PropertyGroup Label="UserMacros" /> 42 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Fuzzing|x64'"> 43 <LinkIncremental>false</LinkIncremental> 44 <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\$(ProjectName)\</OutDir> 45 </PropertyGroup> 46 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Fuzzing|Win32'"> 47 <LinkIncremental>false</LinkIncremental> 48 <OutDir>$(SolutionDir)x86\$(Configuration)\$(ProjectName)\</OutDir> 49 </PropertyGroup> 50 <Import Project="$(ProjectDir)\..\vcpkg.props" /> 51 <ItemDefinitionGroup Condition="'$(Configuration)'=='Fuzzing'"> 52 <ClCompile> 53 <WarningLevel>Level3</WarningLevel> 54 <FunctionLevelLinking>true</FunctionLevelLinking> 55 <IntrinsicFunctions>true</IntrinsicFunctions> 56 <SDLCheck>true</SDLCheck> 57 <PreprocessorDefinitions>NDEBUG;_CONSOLE;WINGET_DISABLE_FOR_FUZZING;%(PreprocessorDefinitions);_DISABLE_VECTOR_ANNOTATION;_DISABLE_STRING_ANNOTATION</PreprocessorDefinitions> 58 <ConformanceMode>true</ConformanceMode> 59 <LanguageStandard>stdcpp17</LanguageStandard> 60 <AdditionalIncludeDirectories>$(ProjectDir)..\AppInstallerCommonCore\Public;$(ProjectDir)..\AppInstallerSharedLib\Public;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 61 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 62 <AdditionalOptions>/fsanitize=address /fsanitize-coverage=inline-8bit-counters /fsanitize-coverage=edge /fsanitize-coverage=trace-cmp /fsanitize-coverage=trace-div %(AdditionalOptions)</AdditionalOptions> 63 </ClCompile> 64 <Link> 65 <SubSystem>Console</SubSystem> 66 <EnableCOMDATFolding>true</EnableCOMDATFolding> 67 <OptimizeReferences>true</OptimizeReferences> 68 <GenerateDebugInformation>true</GenerateDebugInformation> 69 <AdditionalDependencies>legacy_stdio_definitions.lib;libsancov.lib;icuuc.lib;icuin.lib;urlmon.lib;Bcrypt.lib;wininet.lib;shlwapi.lib;Crypt32.lib;%(AdditionalDependencies)</AdditionalDependencies> 70 </Link> 71 <PostBuildEvent Condition="'$(Configuration)|$(Platform)'=='Fuzzing|x64'"> 72 <Command>xcopy /y "$(VCToolsInstallDir)bin\Hostx64\x64\clang_rt.asan_dynamic-x86_64.dll" "$(OutDir)"</Command> 73 <Message>Copy the required ASan runtime DLL to the output directory.</Message> 74 </PostBuildEvent> 75 <PostBuildEvent Condition="'$(Configuration)|$(Platform)'=='Fuzzing|Win32'"> 76 <Command>xcopy /y "$(VCToolsInstallDir)bin\Hostx64\x86\clang_rt.asan_dynamic-i386.dll" "$(OutDir)"</Command> 77 <Message>Copy the required ASan runtime DLL to the output directory.</Message> 78 </PostBuildEvent> 79 </ItemDefinitionGroup> 80 <ItemGroup> 81 <ClCompile Include="WinGetYamlFuzzing.cpp" /> 82 </ItemGroup> 83 <ItemGroup> 84 <ProjectReference Include="..\AppInstallerSharedLib\AppInstallerSharedLib.vcxproj"> 85 <Project>{f3f6e699-bc5d-4950-8a05-e49dd9eb0d51}</Project> 86 </ProjectReference> 87 <ProjectReference Include="..\AppInstallerCommonCore\AppInstallerCommonCore.vcxproj"> 88 <Project>{5890d6ed-7c3b-40f3-b436-b54f640d9e65}</Project> 89 </ProjectReference> 90 </ItemGroup> 91 <ItemGroup> 92 <None Include="packages.config" /> 93 <None Include="README.md" /> 94 </ItemGroup> 95 <ItemGroup> 96 <Text Include="dictionary.txt" /> 97 </ItemGroup> 98 <ItemGroup> 99 <CopyFileToFolders Include="OneFuzzConfig.json" Condition="'$(Configuration)'=='Fuzzing'" /> 100 </ItemGroup> 101 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 102 <ImportGroup Label="ExtensionTargets"> 103 <Import Project="$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.231028.1\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.231028.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" /> 104 <Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.targets')" /> 105 </ImportGroup> 106 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> 107 <PropertyGroup> 108 <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> 109 </PropertyGroup> 110 <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.231028.1\build\native\Microsoft.Windows.ImplementationLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.ImplementationLibrary.1.0.231028.1\build\native\Microsoft.Windows.ImplementationLibrary.targets'))" /> 111 <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.props'))" /> 112 <Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.targets'))" /> 113 </Target> 114 </Project>