blob: b480b94ce09ef2011385ca6116847d0d8ce41a05 [file] [log] [blame] [edit]
# Copyright 2020 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.
##########################################
# Though under //zircon, this build file #
# is meant to be used in the Fuchsia GN #
# build. #
# See fxbug.dev/36139. #
##########################################
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
import("//build/test.gni")
import("//build/testing/bootfs_test.gni")
import("//src/sys/build/components.gni")
test("framebuffer-test") {
output_name = "framebuffer-test"
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
deps = [
"//sdk/banjo/ddk.protocol.display.controller",
"//sdk/fidl/fuchsia.hardware.display:fuchsia.hardware.display_llcpp",
"//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_llcpp",
"//sdk/lib/fdio",
"//src/lib/framebuffer",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fidl-async:fidl-async-cpp",
"//zircon/system/ulib/image-format:image-format-llcpp",
]
sources = [ "framebuffer-test.cc" ]
}
group("test") {
testonly = true
deps = [ ":framebuffer-test" ]
}
bootfs_test("framebuffer-test-bootfs-test") {
name = "framebuffer-test"
deps = [ ":framebuffer-test" ]
}
fuchsia_component("framebuffer-test-component") {
component_name = "framebuffer-test"
testonly = true
manifest = "meta/framebuffer-test.cmx"
deps = [ ":framebuffer-test" ]
}
fuchsia_test_package("framebuffer-test-package") {
package_name = "framebuffer-test"
test_components = [ ":framebuffer-test-component" ]
}