blob: e483e91d09e45c060ae741b3bc24a2b351e58464 [file] [log] [blame]
# Copyright 2019 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/package.gni")
import("//build/test/test_package.gni")
group("tests") {
testonly = true
public_deps = [
":sched_tests",
]
}
source_set("lib") {
sources = [
"args.cc",
"sched.cc",
]
public_deps = [
"//sdk/fidl/fuchsia.sys",
"//sdk/lib/sys/cpp",
"//src/lib/fxl",
"//zircon/public/fidl/fuchsia-scheduler",
"//zircon/public/lib/async-loop-cpp",
"//zircon/public/lib/cmdline",
"//zircon/public/lib/fdio",
"//zircon/public/lib/zx",
]
}
executable("bin") {
output_name = "sched"
sources = [
"main.cc",
]
deps = [
":lib",
]
}
package("sched") {
deps = [
":bin",
]
binaries = [
{
shell = true
name = "sched"
},
]
}
executable("bin_test") {
testonly = true
output_name = "sched_tests"
sources = [
"sched_test.cc",
]
deps = [
":lib",
"//src/lib/files",
"//src/lib/fxl",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gmock",
"//zircon/public/lib/zx",
]
}
test_package("sched_tests") {
deps = [
":bin_test",
]
tests = [
{
shell = true
name = "sched_tests"
dest = "sched_tests"
environments = basic_envs
},
]
}