| # 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. |
| # |
| # Package for the Flutter embedder for Fuchsia. |
| |
| load( |
| "@rules_fuchsia//fuchsia:defs.bzl", |
| "fuchsia_cc_binary", |
| "fuchsia_component_manifest", |
| ) |
| |
| # ELF binary that takes the path to Flutter app assets as an argument |
| # and runs the Flutter app defined by those assets. |
| fuchsia_cc_binary( |
| name = "embedder", |
| srcs = [ |
| "embedder_state.h", |
| "flatland_connection.cc", |
| "flatland_connection.h", |
| "flatland_ids.h", |
| "flatland_view_provider.h", |
| "fuchsia_logger.cc", |
| "fuchsia_logger.h", |
| "keyboard.cc", |
| "keyboard.h", |
| "logging.h", |
| "main.cc", |
| "mouse_delegate.cc", |
| "mouse_delegate.h", |
| "platform_message_channels.h", |
| "pointer_utility.h", |
| "software_surface.cc", |
| "software_surface.h", |
| "text_delegate.cc", |
| "text_delegate.h", |
| "touch_delegate.cc", |
| "touch_delegate.h", |
| "accessibility_bridge.cc", |
| "accessibility_bridge.h", |
| "root_inspect_node.cc", |
| "root_inspect_node.h", |
| "standard_message_codec/byte_buffer_streams.h", |
| "standard_message_codec/byte_streams.h", |
| "standard_message_codec/encodable_value.h", |
| "standard_message_codec/message_codec.h", |
| "standard_message_codec/method_call.h", |
| "standard_message_codec/method_codec.h", |
| "standard_message_codec/method_result.h", |
| "standard_message_codec/standard_codec_serializer.h", |
| "standard_message_codec/standard_message_codec.cc", |
| "standard_message_codec/standard_message_codec.h", |
| "standard_message_codec/standard_method_codec.h" |
| ], |
| visibility = ["//visibility:public"], |
| deps = [ |
| "//src/embedder/engine:embedder_header", |
| "//src/embedder/engine:libflutter_engine_for_platform", |
| "@rapidjson", |
| "@fuchsia_sdk//fidl/fuchsia.fonts:fuchsia.fonts_cc", |
| "@fuchsia_sdk//fidl/fuchsia.sysmem:fuchsia.sysmem_cc", |
| "@fuchsia_sdk//fidl/fuchsia.ui.app:fuchsia.ui.app_cc", |
| "@fuchsia_sdk//fidl/fuchsia.ui.composition:fuchsia.ui.composition_cc", |
| "@fuchsia_sdk//fidl/fuchsia.accessibility.semantics:fuchsia.accessibility.semantics_cc", |
| "@fuchsia_sdk//pkg/sys_inspect_cpp", |
| "@fuchsia_sdk//pkg/async-loop-default", |
| "@fuchsia_sdk//pkg/async-loop-cpp", |
| "@fuchsia_sdk//pkg/fit", |
| "@fuchsia_sdk//pkg/scenic_cpp", |
| "@fuchsia_sdk//pkg/sys_cpp", |
| "@fuchsia_sdk//pkg/syslog", |
| "@fuchsia_sdk//pkg/trace", |
| "@fuchsia_sdk//pkg/trace-engine", |
| "@fuchsia_sdk//pkg/trace-provider-so", |
| ], |
| ) |
| |
| fuchsia_component_manifest( |
| name = "embedder_manifest", |
| src = "meta/embedder.cml", |
| includes = [ |
| "@fuchsia_sdk//pkg/syslog:client", |
| "@fuchsia_sdk//pkg/vulkan:client", |
| ], |
| visibility = ["//visibility:public"], |
| ) |