blob: 22620111b3215d8bbc120030b649cc47c0ea79a6 [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 = "2021"
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:assert_matches",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
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",
]
}
source_set("simple_present") {
sources = [
"src/simple_present.cc",
"src/simple_present.h",
]
public_deps = [
"//sdk/fidl/fuchsia.ui.composition",
"//sdk/lib/fidl/cpp",
"//sdk/lib/sys/cpp:cpp",
"//sdk/lib/syslog/cpp:cpp",
]
}
fuchsia_unittest_package("flatland-frame-scheduling-lib-tests") {
deps = [ ":flatland-frame-scheduling-lib_test" ]
}
group("tests") {
testonly = true
deps = [ ":flatland-frame-scheduling-lib-tests" ]
}