diff options
| author | Prashant Chahar <[email protected]> | 2024-02-08 08:48:47 -0800 |
|---|---|---|
| committer | Prashant Chahar <[email protected]> | 2024-02-08 08:48:47 -0800 |
| commit | fafe833e5913211fe387b1091f23959563c81483 (patch) | |
| tree | bc9c7c01c37454e21bd93278fd45a56e6240b0ca /wmi/wmisamp/WmiSamp.vcxproj | |
| parent | d7005d71bbf981bb6ef7e7a7b79d7829b4404875 (diff) | |
Changed the way mofcomp is getting called as a target, this is not recmonded way however this is how it can be supported right now with NuGet, EWDK and WDKuser/pc_load_letter4
Diffstat (limited to 'wmi/wmisamp/WmiSamp.vcxproj')
| -rw-r--r-- | wmi/wmisamp/WmiSamp.vcxproj | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/wmi/wmisamp/WmiSamp.vcxproj b/wmi/wmisamp/WmiSamp.vcxproj index d4b3ff34..9f59c06e 100644 --- a/wmi/wmisamp/WmiSamp.vcxproj +++ b/wmi/wmisamp/WmiSamp.vcxproj @@ -76,10 +76,6 @@ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" /> </ImportGroup> <ItemGroup Label="WrappedTaskItems"> - <MofComp Include="wmisamp.mof"> - <WmiSyntaxCheck>true</WmiSyntaxCheck> - <CreateBinaryMofFile>.\$(IntDir)\wmisamp.bmf</CreateBinaryMofFile> - </MofComp> <Wmimofck Include=".\$(IntDir)\wmisamp.bmf"> <GenerateStructureDefinitionsForMethodParameters>true</GenerateStructureDefinitionsForMethodParameters> <HeaderOutputFile>.\$(IntDir)\wmidata.h</HeaderOutputFile> @@ -87,7 +83,6 @@ <HexdumpOutputFile>.\$(IntDir)\wmisamp.x</HexdumpOutputFile> <HtmlOutputDirectory>.\$(IntDir)\htm</HtmlOutputDirectory> <HtmlUIOutputDirectory>true</HtmlUIOutputDirectory> - <ToolPath>$(WmimofckToolPath)</ToolPath> </Wmimofck> </ItemGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> @@ -142,7 +137,17 @@ <ClCompile Include="WmiHandler.c" /> <ClCompile Include="WmiSamp.c" /> <ResourceCompile Include="WmiSamp.rc" /> + <MofComp Include="wmisamp.mof" /> </ItemGroup> + <Target Name="Custom Build Target 0" BeforeTargets="BeforeClCompile"> + <ItemGroup> + <CustomBuildTarget0Input Include=".\$(IntDir)\wmisamp.mof" /> + </ItemGroup> + <Exec Command="if not exist "%(CustomBuildTarget0Input.Identity)" copy ".\%(CustomBuildTarget0Input.Filename)%(CustomBuildTarget0Input.Extension)" "%(CustomBuildTarget0Input.Identity)"" WorkingDirectory="$(MSBuildProjectDirectory)" /> + <Exec Command="mofcomp -Amendment:ms_409 -MFL:$(IntDir)\MFL.MFL -MOF:$(IntDir)\MOF.MOF "%(CustomBuildTarget0Input.Identity)"" WorkingDirectory="$(MSBuildProjectDirectory)" /> + <Exec Command=""$(WmimofckToolPath)\wmimofck.exe" -y$(IntDir)\MOF.MOF -z$(IntDir)\MFL.MFL $(IntDir)\MOFMFL.MOF" WorkingDirectory="$(MSBuildProjectDirectory)" /> + <Exec Command="mofcomp -B:".\$(IntDir)\wmisamp.bmf" $(IntDir)\MOFMFL.MOF" WorkingDirectory="$(MSBuildProjectDirectory)" /> + </Target> <ItemGroup> <Inf Exclude="@(Inf)" Include="*.inx" /> <FilesToPackage Include="$(TargetPath)" Condition="'$(ConfigurationType)'=='Driver' or '$(ConfigurationType)'=='DynamicLibrary'" /> |
