blob: 6b258ec07a08e125dd8a72eb63b5705a4b625f07 [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")
executable("test-bin") {
testonly = true
output_name = "agis_test"
sources = [ "test.cc" ]
deps = [
"//sdk/fidl/fuchsia.gpu.agis:fuchsia.gpu.agis_hlcpp",
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
"//sdk/lib/zxio",
"//sdk/lib/zxio:create_with_type",
"//third_party/googletest:gtest",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
}
executable("vtc-test-bin") {
output_name = "vtc_test"
sources = [ "vtc_test.cc" ]
deps = [
"//sdk/fidl/fuchsia.gpu.agis:fuchsia.gpu.agis_hlcpp",
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
"//sdk/lib/zxio",
"//sdk/lib/zxio:create_with_type",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
}
fuchsia_component("test") {
testonly = true
component_name = "agis-test"
manifest = "meta/test.cml"
deps = [ ":test-bin" ]
}
executable("agis-bin") {
output_name = "agis"
sources = [ "agis.cc" ]
deps = [
"//sdk/fidl/fuchsia.gpu.agis:fuchsia.gpu.agis_hlcpp",
"//sdk/lib/fidl/cpp",
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fbl:fbl",
]
}
fuchsia_component("vtc-test-cmp") {
component_name = "vtc-test"
manifest = "meta/vtc-test.cml"
deps = [ ":vtc-test-bin" ]
}
fuchsia_component("agis-cmp") {
component_name = "agis"
manifest = "meta/agis.cml"
deps = [ ":agis-bin" ]
}
# Instructions on how to run vtc-test can be found in vtc_test.cc.
fuchsia_package("vtc-test") {
deps = [
":vtc-test-cmp",
"//build/validate:non_production_tag",
]
}
fuchsia_test_package("agis-test") {
test_components = [ ":test" ]
deps = [
":agis-cmp",
"//build/validate:non_production_tag",
"//src/connectivity/network/netstack:component-debug",
]
}
fuchsia_package("agis") {
deps = [
":agis-cmp",
"//build/validate:non_production_tag",
]
}