diff options
author | Bert Belder <bertbelder@gmail.com> | 2018-07-28 17:10:43 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-29 00:22:39 -0400 |
commit | 604a8a640cf1f825218fdb5b23351cd46fc56747 (patch) | |
tree | 4d7ead895751c48f444fdc6090909d504d16bfd3 | |
parent | 37a4606d2903c5d562baa4d7bef309ec66aa260a (diff) |
Add winapi crate, make 'rand' and 'tempfile' work
-rw-r--r-- | BUILD.gn | 1 | ||||
-rw-r--r-- | build_extra/rust/BUILD.gn | 44 | ||||
m--------- | third_party | 0 |
3 files changed, 45 insertions, 0 deletions
@@ -57,6 +57,7 @@ main_extern = [ "$rust_build:rand", "$rust_build:rand_core", "$rust_build:remove_dir_all", + "$rust_build:winapi", ] rust_executable("deno") { diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn index 9988ea6e7..52b89181a 100644 --- a/build_extra/rust/BUILD.gn +++ b/build_extra/rust/BUILD.gn @@ -81,6 +81,7 @@ rust_component("tempfile") { ":libc", ":rand", ":remove_dir_all", + ":winapi", ] } @@ -91,6 +92,9 @@ rust_component("rand") { ":libc", ":rand_core", ] + if (is_win) { + extern += [ ":winapi" ] + } features = [ "std", "alloc", @@ -106,4 +110,44 @@ rust_component("rand_core") { rust_component("remove_dir_all") { source_root = "$crates/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.1/src/lib.rs" + extern = [] + if (is_win) { + extern += [ ":winapi" ] + } +} + +rust_component("winapi") { + source_root = + "$crates/registry/src/github.com-1ecc6299db9ec823/winapi-0.3.5/src/lib.rs" + features = [ + "basetsd", + "cfg", + "cfgmgr32", + "errhandlingapi", + "excpt", + "fileapi", + "guiddef", + "handleapi", + "ktmtypes", + "libloaderapi", + "lsalookup", + "minwinbase", + "minwindef", + "ntdef", + "ntsecapi", + "ntstatus", + "processthreadsapi", + "profileapi", + "sspi", + "std", + "subauth", + "vadefs", + "vcruntime", + "winbase", + "wincred", + "windef", + "winerror", + "winnt", + "winreg", + ] } diff --git a/third_party b/third_party -Subproject 429da4dac5865386d5410f084a68e4cd71a94bc +Subproject 142a1b091123804afa92d03381094db521bb08b |