mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/33413 This moves `CallbackWrapper` and `LongLivedObject` into a new "bridging" library. This library is mostly intended for use by the native module system, but can also be used separately to "bridge" native and JS interfaces through higher-level (and safer) abstractions than relying JSI alone. Changelog: Internal Reviewed By: christophpurrer Differential Revision: D34723341 fbshipit-source-id: 7ca8fa815537152f8163920513b90313540477e3
20 lines
722 B
Python
20 lines
722 B
Python
load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "CXX", "react_native_xplat_shared_library_target", "react_native_xplat_target", "rn_xplat_cxx_library")
|
|
|
|
rn_xplat_cxx_library(
|
|
name = "bridging",
|
|
srcs = glob(["*.cpp"]),
|
|
header_namespace = "react/bridging",
|
|
exported_headers = glob(["*.h"]),
|
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
|
platforms = (ANDROID, APPLE, CXX),
|
|
visibility = ["PUBLIC"],
|
|
deps = [
|
|
"//xplat/folly:headers_only",
|
|
],
|
|
exported_deps = [
|
|
react_native_xplat_target("butter:butter"),
|
|
react_native_xplat_target("callinvoker:callinvoker"),
|
|
react_native_xplat_shared_library_target("jsi:jsi"),
|
|
],
|
|
)
|