| # Copyright 2022 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("bin") { |
| output_name = "screen_recording" |
| |
| sources = [ |
| "main.cc", |
| "screen_capture_helper.cc", |
| "screen_capture_helper.h", |
| "view_provider.cc", |
| "view_provider.h", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_hlcpp", |
| "//sdk/fidl/fuchsia.ui.app:fuchsia.ui.app_hlcpp", |
| "//sdk/fidl/fuchsia.ui.composition:fuchsia.ui.composition_hlcpp", |
| "//sdk/fidl/fuchsia.ui.composition.internal:fuchsia.ui.composition.internal_hlcpp", |
| "//sdk/fidl/fuchsia.ui.scenic:fuchsia.ui.scenic_hlcpp", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/syslog/cpp", |
| "//sdk/lib/ui/scenic/cpp", |
| "//src/lib/fxl", |
| "//src/lib/ui/flatland-frame-scheduling:simple_present", |
| "//src/ui/scenic/lib/allocation:allocation", |
| "//src/ui/scenic/lib/flatland/buffers", |
| "//src/ui/scenic/lib/utils:utils", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/fbl", |
| "//zircon/system/ulib/trace", |
| "//zircon/system/ulib/trace-provider", |
| ] |
| } |
| |
| fuchsia_component("screen_recording_component") { |
| component_name = "screen_recording" |
| manifest = "meta/screen_recording.cml" |
| deps = [ ":bin" ] |
| } |
| |
| fuchsia_package("screen_recording") { |
| package_name = "screen_recording" |
| deps = [ ":screen_recording_component" ] |
| } |