mirror of
https://github.com/nefarius/WDF-Utils.git
synced 2024-11-22 06:54:54 +01:00
Added UDE
This commit is contained in:
parent
d51b5d4dce
commit
9f5e875226
13
UDE/README.md
Normal file
13
UDE/README.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# USB Device Emulation (UDE)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
To include and link against [UDE](https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/usb-emulated-device--ude--architecture) simply add the following snippet to your driver project:
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<ImportGroup Label="PropertySheets">
|
||||||
|
<Import Project="UDE.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
```
|
||||||
|
|
||||||
|
Drop the provided `UDE.props` into the project directory and all include and linker settings will be available. Works for `KMDF` only.
|
17
UDE/UDE.props
Normal file
17
UDE/UDE.props
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?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>USB Device Emulation</_PropertySheetDisplayName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>$(DDK_INC_PATH)ucx\1.5;$(DDK_INC_PATH)ude\1.1;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies Condition="'$(DriverType)'=='KMDF'">$(DDK_LIB_PATH)ucx\1.5\ucxstub.lib;$(DDK_LIB_PATH)\ude\1.1\udecxstub.lib;%(AdditionalDependencies);</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup />
|
||||||
|
</Project>
|
Loading…
Reference in New Issue
Block a user