-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fetch rust-driver-makefile.toml from wdk-build
- Loading branch information
Showing
6 changed files
with
30 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
target/ | ||
DriverCertificate.cer | ||
.cargo-make-loadscripts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
extend = ".cargo-make-loadscripts/rust-driver-makefile.toml" | ||
extend = "target/rust-driver-makefile.toml" | ||
|
||
[env] | ||
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true | ||
WDK_BUILD_ADDITIONAL_INFVERIF_FLAGS = "/msft" | ||
|
||
[config] | ||
load_script = """ | ||
pwsh.exe -Command "\ | ||
if ($env:CARGO_MAKE_CRATE_IS_WORKSPACE) { return };\ | ||
$cargoMakeURI = 'https://raw.githubusercontent.com/microsoft/windows-drivers-rs/main/rust-driver-makefile.toml';\ | ||
New-Item -ItemType Directory .cargo-make-loadscripts -Force;\ | ||
Invoke-RestMethod -Method GET -Uri $CargoMakeURI -OutFile $env:CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY/.cargo-make-loadscripts/rust-driver-makefile.toml\ | ||
" | ||
""" | ||
load_script = ''' | ||
#!@rust | ||
//! ```cargo | ||
//! [dependencies] | ||
//! wdk-build = "0.2.0" | ||
//! ``` | ||
#![allow(unused_doc_comments)] | ||
wdk_build::cargo_make::load_rust_driver_makefile()? | ||
''' | ||
|
||
[tasks.default] | ||
# Since this worspace contains both driver and non-driver crates, we need to explicitly specify `build` so that non-driver crates are still compiled | ||
clear = true | ||
dependencies = ["build", "package-driver-flow"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.