mirror of
https://github.com/zer0condition/GoodmansKernel/
synced 2026-08-19 01:14:35 +00:00
125 lines
6.1 KiB
XML
125 lines
6.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" ToolsVersion="Current" 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">
|
|
<ProjectGuid>{6D9E2A50-1F1A-4B4E-8D9F-1B0C0D0A0001}</ProjectGuid>
|
|
<TemplateGuid>{497e31cb-056b-4f31-abb8-447fd55ee5a5}</TemplateGuid>
|
|
<TemplateVersion>10.0.26100.0</TemplateVersion>
|
|
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
|
|
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
|
|
<Platform Condition="'$(Platform)' == ''">x64</Platform>
|
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
|
<RootNamespace>Goodmans</RootNamespace>
|
|
<WindowsTargetPlatformVersion>10.0.26100.0</WindowsTargetPlatformVersion>
|
|
</PropertyGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
|
<PropertyGroup Label="Configuration">
|
|
<TargetVersion>Windows10</TargetVersion>
|
|
<UseDebugLibraries Condition="'$(Configuration)'=='Debug'">true</UseDebugLibraries>
|
|
<UseDebugLibraries Condition="'$(Configuration)'=='Release'">false</UseDebugLibraries>
|
|
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
|
<ConfigurationType>Driver</ConfigurationType>
|
|
<DriverType>WDM</DriverType>
|
|
<DriverTargetPlatform>Universal</DriverTargetPlatform>
|
|
<SpectreMitigation>false</SpectreMitigation>
|
|
</PropertyGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
<ImportGroup Label="ExtensionSettings" />
|
|
<ImportGroup Label="PropertySheets">
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
</ImportGroup>
|
|
<PropertyGroup />
|
|
<ItemDefinitionGroup>
|
|
<ClCompile>
|
|
<TreatWarningAsError>false</TreatWarningAsError>
|
|
<WarningLevel>Level3</WarningLevel>
|
|
<AdditionalIncludeDirectories>$(ProjectDir);$(ProjectDir)kshim;$(ProjectDir)wasm3;$(ProjectDir)inc;$(ProjectDir)..\shared;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
|
<PreprocessorDefinitions>_KERNEL_MODE;d_m3HasFloat=0;d_m3RecordBacktraces=0;d_m3LogTimestamps=0;d_m3VerboseErrorMessages=0;d_m3EnableValidation=0;d_m3SkipStackCheck=1;d_m3SkipMemoryBoundsCheck=1;d_m3CascadedOpcodes=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
<ExceptionHandling>false</ExceptionHandling>
|
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
|
<DisableSpecificWarnings>4100;4127;4152;4189;4201;4204;4214;4245;4267;4310;4459;4505;4706;4996;4055;4131;4132;4244;4324;4456;4457;4090</DisableSpecificWarnings>
|
|
<ForcedIncludeFiles>
|
|
</ForcedIncludeFiles>
|
|
</ClCompile>
|
|
<Link>
|
|
<SubSystem>Native</SubSystem>
|
|
<!-- /INTEGRITYCHECK sets IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY.
|
|
required for PsSetCreateProcessNotifyRoutineEx to succeed. -->
|
|
<AdditionalOptions>/INTEGRITYCHECK %(AdditionalOptions)</AdditionalOptions>
|
|
</Link>
|
|
<Inf>
|
|
<TimeStamp>*</TimeStamp>
|
|
</Inf>
|
|
<DriverSign>
|
|
<FileDigestAlgorithm>sha256</FileDigestAlgorithm>
|
|
</DriverSign>
|
|
</ItemDefinitionGroup>
|
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
|
<EnableInf2cat>false</EnableInf2cat>
|
|
<SignMode>Off</SignMode>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
|
<EnableInf2cat>false</EnableInf2cat>
|
|
<SignMode>Off</SignMode>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<ClCompile Include="driver.c" />
|
|
<ClCompile Include="ioctl_handler.c" />
|
|
<ClCompile Include="module_table.c" />
|
|
<ClCompile Include="host_imports.c" />
|
|
<ClCompile Include="wasm_call.c" />
|
|
<ClCompile Include="log_ring.c" />
|
|
<ClCompile Include="trace_ring.c" />
|
|
<ClCompile Include="watchdog.c" />
|
|
<ClCompile Include="ih.c" />
|
|
<ClCompile Include="kshim\kshim.c" />
|
|
<ClCompile Include="wasm3\m3_bind.c" />
|
|
<ClCompile Include="wasm3\m3_code.c" />
|
|
<ClCompile Include="wasm3\m3_compile.c" />
|
|
<ClCompile Include="wasm3\m3_core.c" />
|
|
<ClCompile Include="wasm3\m3_env.c" />
|
|
<ClCompile Include="wasm3\m3_exec.c" />
|
|
<ClCompile Include="wasm3\m3_function.c" />
|
|
<ClCompile Include="wasm3\m3_info.c" />
|
|
<ClCompile Include="wasm3\m3_module.c" />
|
|
<ClCompile Include="wasm3\m3_parse.c" />
|
|
<ClCompile Include="wasm3\m3_validate.c" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ClInclude Include="inc\gvm.h" />
|
|
<ClInclude Include="kshim\kshim.h" />
|
|
<ClInclude Include="kshim\stdio.h" />
|
|
<ClInclude Include="kshim\stdlib.h" />
|
|
<ClInclude Include="kshim\malloc.h" />
|
|
<ClInclude Include="kshim\corecrt.h" />
|
|
<ClInclude Include="..\shared\goodmans_ioctl.h" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<FilesToPackage Include="$(TargetPath)" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Inf Include="Goodmans.inf" />
|
|
</ItemGroup>
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
<ImportGroup Label="ExtensionTargets" />
|
|
<Target Name="StageToDeploy" AfterTargets="Build">
|
|
<PropertyGroup>
|
|
<DeployDir>$(SolutionDir)deploy</DeployDir>
|
|
<SignedSys>$(OutDir)Goodmans.sys</SignedSys>
|
|
</PropertyGroup>
|
|
<Message Text="[deploy] staging driver -> $(DeployDir)" Importance="high" />
|
|
<Exec Command="if exist "$(DeployDir)\GoodmansTest.pfx" for /f "delims=" %%s in ('where signtool 2^>nul') do "%%s" sign /fd sha256 /f "$(DeployDir)\GoodmansTest.pfx" /p goodmans "$(SignedSys)"" IgnoreExitCode="true" ContinueOnError="true" />
|
|
<Copy SourceFiles="$(SignedSys)" DestinationFolder="$(DeployDir)" SkipUnchangedFiles="true" ContinueOnError="true" Retries="1" RetryDelayMilliseconds="200" />
|
|
<Copy SourceFiles="$(MSBuildProjectDirectory)\Goodmans.inf" DestinationFolder="$(DeployDir)" SkipUnchangedFiles="true" ContinueOnError="true" Retries="1" RetryDelayMilliseconds="200" />
|
|
</Target>
|
|
</Project>
|