crosvm/base/build.rs
Vikram Auradkar 29818542a4 move unix/win under sys/
This brings the dir structure *somewhat* similar to that the style
guide recommends.

BUG=b:213153157
TEST=presubmit

Change-Id: Iff7c7af1cfb64be45b07e57a9929d9f2fd1fa47e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3585020
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Vikram Auradkar <auradkar@google.com>
2022-04-19 00:17:04 +00:00

14 lines
416 B
Rust

// Copyright 2022 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
fn main() {
// Skip installing dependencies when generating documents.
if std::env::var("CARGO_DOC").is_ok() {
return;
}
cc::Build::new()
.file("src/sys/windows/stdio_fileno.c")
.compile("stdio_fileno");
}