mirror of
https://github.com/nefarius/WDF-Utils.git
synced 2024-11-23 07:24:53 +01:00
Updated DMF README.md
Added Bus Filter Framework section
This commit is contained in:
parent
936212d20b
commit
cf5303e27c
19
BFF/BFF.props
Normal file
19
BFF/BFF.props
Normal 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
15
BFF/README.md
Normal 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.
|
@ -1,5 +1,7 @@
|
|||||||
# Driver Module Framework (DMF)
|
# 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
|
## 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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user