windows: run build.rs on winapi
parent
f0f4cd5b96
commit
ab417a239d
|
@ -69,3 +69,6 @@ gen_buildrs = true
|
|||
|
||||
[workspace.metadata.raze.crates.maybe-uninit.'2.0.0']
|
||||
gen_buildrs = true
|
||||
|
||||
[workspace.metadata.raze.crates.winapi.'0.3.9']
|
||||
gen_buildrs = true
|
||||
|
|
|
@ -29,8 +29,67 @@ licenses([
|
|||
])
|
||||
|
||||
# Generated Targets
|
||||
# buildifier: disable=load-on-top
|
||||
load(
|
||||
"@io_bazel_rules_rust//cargo:cargo_build_script.bzl",
|
||||
"cargo_build_script",
|
||||
)
|
||||
|
||||
# Unsupported target "build-script-build" with type "custom-build" omitted
|
||||
cargo_build_script(
|
||||
name = "winapi_build_script",
|
||||
srcs = glob(["**/*.rs"]),
|
||||
build_script_env = {
|
||||
},
|
||||
crate_features = [
|
||||
"combaseapi",
|
||||
"commctrl",
|
||||
"consoleapi",
|
||||
"dwmapi",
|
||||
"errhandlingapi",
|
||||
"fileapi",
|
||||
"handleapi",
|
||||
"hidusage",
|
||||
"imm",
|
||||
"libloaderapi",
|
||||
"minwinbase",
|
||||
"minwindef",
|
||||
"ntstatus",
|
||||
"objbase",
|
||||
"ole2",
|
||||
"processenv",
|
||||
"processthreadsapi",
|
||||
"shellapi",
|
||||
"shellscalingapi",
|
||||
"shobjidl_core",
|
||||
"std",
|
||||
"unknwnbase",
|
||||
"winbase",
|
||||
"wincon",
|
||||
"windowsx",
|
||||
"winerror",
|
||||
"wingdi",
|
||||
"winnt",
|
||||
"winsock2",
|
||||
"winuser",
|
||||
"ws2def",
|
||||
"ws2ipdef",
|
||||
"ws2tcpip",
|
||||
],
|
||||
crate_root = "build.rs",
|
||||
data = glob(["**"]),
|
||||
edition = "2015",
|
||||
rustc_flags = [
|
||||
"--cap-lints=allow",
|
||||
],
|
||||
tags = [
|
||||
"cargo-raze",
|
||||
"manual",
|
||||
],
|
||||
version = "0.3.9",
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
],
|
||||
)
|
||||
|
||||
rust_library(
|
||||
name = "winapi",
|
||||
|
@ -84,5 +143,6 @@ rust_library(
|
|||
version = "0.3.9",
|
||||
# buildifier: leave-alone
|
||||
deps = [
|
||||
":winapi_build_script",
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue