| # 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") |
| |
| group("wayland") { |
| deps = [ ":starnix_wayland" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| # TODO(fxbug.dev/91954): Reenable after switching this test to flatland. |
| # deps = [ ":starnix_wayland_test" ] |
| } |
| |
| resource("demo_bin") { |
| sources = [ |
| "//prebuilt/starnix/tests/syscalls/linux-amd64/wayland_demo/wayland_demo", |
| ] |
| outputs = [ "data/bin/wayland_demo" ] |
| } |
| |
| fuchsia_package("starnix_wayland") { |
| package_name = "starnix_wayland" |
| deps = [ ":component" ] |
| |
| disable_elf_binaries_checks = true |
| } |
| |
| fuchsia_component("component") { |
| component_name = "wayland_demo" |
| manifest = "meta/wayland_demo.cml" |
| |
| deps = [ ":demo_bin" ] |
| } |
| |
| resource("test_bin") { |
| sources = [ |
| "//prebuilt/starnix/tests/syscalls/linux-amd64/wayland_demo/wayland_test", |
| ] |
| outputs = [ "data/tests/wayland_test" ] |
| } |
| |
| fuchsia_test_component("test_component") { |
| component_name = "wayland_test" |
| manifest = "meta/wayland_test.cml" |
| |
| deps = [ ":test_bin" ] |
| } |
| |
| fuchsia_test_package("starnix_wayland_test") { |
| package_name = "starnix_wayland_test" |
| test_components = [ ":test_component" ] |
| |
| disable_elf_binaries_checks = true |
| } |