blob: ddf3d649246ecdff21cd9c7ce594f73a5843a6c9 [file] [log] [blame]
# Copyright 2021 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("flatland-frame-scheduling-lib") {
edition = "2018"
with_unit_tests = true
deps = [
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/syslog/rust:syslog",
"//src/lib/trace/rust:trace",
"//src/lib/trace/rust:trace-provider",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:matches",
]
sources = [
"src/frame_pacing_scheduler.rs",
"src/frame_stats_collector.rs",
"src/latency_stats_collector.rs",
"src/lib.rs",
"src/low_latency_scheduler.rs",
"src/naive_scheduler.rs",
"src/throughput_scheduler.rs",
"src/unsquashable_scheduler.rs",
]
}
fuchsia_unittest_package("flatland-frame-scheduling-lib-tests") {
deps = [ ":flatland-frame-scheduling-lib_test" ]
}
group("tests") {
testonly = true
deps = [ ":flatland-frame-scheduling-lib-tests" ]
}