1
0
Fork 0

Updated DMF README.md

Added Bus Filter Framework section
This commit is contained in:
Benjamin Höglinger-Stelzer 2022-05-03 15:12:22 +02:00
parent 936212d20b
commit cf5303e27c
3 changed files with 36 additions and 0 deletions

19
BFF/BFF.props Normal file
View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_PropertySheetDisplayName>Bus Filter Framework</_PropertySheetDisplayName>
<!-- By default, look for BFF in parent root directory, otherwise use environment variable value -->
<BffRootPath Condition="'$(BffRootPath)' == ''">$(SolutionDir)..\bus-filter-framework</BffRootPath>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>$(BffRootPath)\bff;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<AdditionalDependencies Condition="'$(DriverType)'=='KMDF'">$(BffRootPath)\$(PlatformName)\$(Configuration)\bff.lib;%(AdditionalDependencies);</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup />
</Project>

15
BFF/README.md Normal file
View File

@ -0,0 +1,15 @@
# Bus Filter Framework
## Usage
To include and link against [BFF](https://github.com/abysdom/bus-filter-framework) simply add the following snippet to your driver project:
```xml
<ImportGroup Label="PropertySheets">
<Import Project="BFF.props" />
</ImportGroup>
```
**Important:** if a `PropertySheets` group already exists, append the Import-Node(s) to that to avoid linker issues!
Drop the provided `BFF.props` into the project directory and all include and linker settings will be available. Works for `KMDF` only.

View File

@ -1,5 +1,7 @@
# Driver Module Framework (DMF)
**Important:** this has been merged [upstream](https://github.com/Microsoft/DMF/blob/master/Dmf/Documentation/Driver%20Module%20Framework.md#simplifying-compilation-and-linking-with-dmf), yay ❤️
## Usage
To include and link against [DMF](https://github.com/microsoft/DMF) simply clone DMF to the same project parent directory **or** set the environment variable `DmfRootPath` to the DMF directory. Then add the following snippet to your driver project: