diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-07-14 03:06:20 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-07-15 01:45:26 -0400 |
| commit | 6096dc5f94bf69cb73b0fc89d36bf125f7ff6467 (patch) | |
| tree | 9fd47a9ae9ea9f73f9ca2b24867cdf6fc0450ec2 /std/os/windows/bits.zig | |
| parent | 7d9ee5d6d53011e9edc7ca10b76d64af807a833f (diff) | |
| download | zig-6096dc5f94bf69cb73b0fc89d36bf125f7ff6467.tar.gz zig-6096dc5f94bf69cb73b0fc89d36bf125f7ff6467.zip | |
move some of the installation from cmake to zig build
This moves the installation of shipped source files from large
CMakeLists.txt lists to zig build recursive directory installation.
On my computer a cmake `make install` takes 2.4 seconds even when it has
to do nothing, and prints a lot of unnecessary lines to stdout that say
"up-to-date: [some file it is installing]".
After this commit, the default output of `make` is down to 1
second, and it does not print any junk to stdout. Further, a `make
install` is no longer required and `make` is sufficient.
This closes #2874.
It also closes #2585. `make` now always invokes `zig build` for
installing files and libuserland.a, and zig's own caching system makes
that go fast.
Diffstat (limited to 'std/os/windows/bits.zig')
| -rw-r--r-- | std/os/windows/bits.zig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/std/os/windows/bits.zig b/std/os/windows/bits.zig index fe72a710eb..338e47a467 100644 --- a/std/os/windows/bits.zig +++ b/std/os/windows/bits.zig @@ -104,6 +104,19 @@ pub const FileIdInfo = 18; pub const FileIdExtdDirectoryInfo = 19; pub const FileIdExtdDirectoryRestartInfo = 20; +pub const BY_HANDLE_FILE_INFORMATION = extern struct { + dwFileAttributes: DWORD, + ftCreationTime: FILETIME, + ftLastAccessTime: FILETIME, + ftLastWriteTime: FILETIME, + dwVolumeSerialNumber: DWORD, + nFileSizeHigh: DWORD, + nFileSizeLow: DWORD, + nNumberOfLinks: DWORD, + nFileIndexHigh: DWORD, + nFileIndexLow: DWORD, +}; + pub const FILE_NAME_INFO = extern struct { FileNameLength: DWORD, FileName: [1]WCHAR, |
