blob: fe3f73e1cff72e0ff0dcfbe2ca6be895955c70fd [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.
#
# Artifacts from the Flutter Engine repository: https://github.com/flutter/engine
load(
"@rules_fuchsia//fuchsia:defs.bzl",
"fuchsia_package_resource",
)
# ABI-stable interface for the Flutter embedder platform. Copied from the Flutter Engine.
cc_library(
name = "embedder_header",
hdrs = ["embedder.h"],
visibility = ["//src/embedder:__pkg__"],
)
# Shared library implementing the embedder.h header.
#
# TODO(akbiggs): This should come from a CIPD bucket instead.
cc_library(
name = "libflutter_engine",
srcs = ["libflutter_engine.so"],
visibility = ["//src/embedder:__pkg__"],
deps = [
"@fuchsia_sdk//pkg/memfs",
"@fuchsia_sdk//pkg/vulkan",
]
)
# Package resource to include libflutter_engine into a Fuchsia package's
# libraries.
# You must include this in your package's dependencies if your package's binary
# has a dependency on `:libflutter_engine`.
fuchsia_package_resource(
name = "libflutter_engine_pkg_resource",
visibility = ["//visibility:public"],
src = ":libflutter_engine.so",
dest = "lib/libflutter_engine.so",
)