blob: 20d4861ded9e2b9c33fedd6c7b884cf0e56c0e8c [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 built in
# debug mode for the x64 architecture: https://github.com/flutter/engine
load(
"@rules_fuchsia//fuchsia:defs.bzl",
"fuchsia_package_resource",
)
# 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.so 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",
src = ":libflutter_engine.so",
dest = "lib/libflutter_engine.so",
visibility = ["//visibility:public"],
)