| # 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__"], |
| ) |
| |
| fuchsia_package_resource( |
| name = "flutter_engine_pkg_resource", |
| visibility = ["//visibility:public"], |
| src = ":libflutter_engine.so", |
| dest = "lib/libflutter_engine.so", |
| ) |