Skip to content

Commit

Permalink
tool_windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Jun 14, 2024
1 parent 5093d2b commit 5b7161e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
3 changes: 3 additions & 0 deletions crates/tools/windows/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ name = "tool_windows"
version = "0.0.0"
edition = "2021"
publish = false

[dependencies]
windows-bindgen = { path = "../../libs/bindgen" }
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--in crates/libs/bindgen/default
--out crates/libs/windows/src/lib.rs
--config package no-bindgen-comment
--config prepend:Windows.Win32.Foundation.WIN32_ERROR=#[must_use]
Expand Down
16 changes: 4 additions & 12 deletions crates/tools/windows/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
fn main() {
let mut command = std::process::Command::new("cargo");
use windows_bindgen::*;

command.args([
"run",
"-p",
"riddle",
"--",
"--etc",
"crates/tools/windows/bindings.txt",
]);

assert!(command.status().unwrap().success());
fn main() -> Result<()> {
bindgen(["--etc", "crates/tools/windows/src/bindings.txt"])?;
Ok(())
}

0 comments on commit 5b7161e

Please sign in to comment.