blob: 10f4c0ab487d2351208cda0370eb696b4b3053aa [file] [log] [blame]
# 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",
visibility = ["//visibility:public"],
srcs = [
"embedder_state.h",
"flatland_connection.cc",
"flatland_connection.h",
"flatland_ids.h",
"flatland_view_provider.h",
"logging.h",
"main.cc",
"software_surface.cc",
"software_surface.h",
"fuchsia_logger.h",
"fuchsia_logger.cc",
],
deps = [
"//src/embedder/engine:embedder_header",
# TODO(akbiggs): Enable switching between debug and profile
# builds of libflutter_engine.so without manually editing this
# file.
"//src/embedder/engine/debug_x64:libflutter_engine",
"@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//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_component_manifest(
name = "embedder_manifest",
visibility = ["//visibility:public"],
src = "meta/embedder.cml",
includes = [
"@fuchsia_sdk//pkg/syslog:client",
"@fuchsia_sdk//pkg/vulkan:client",
],
)