amis-rpc-design/node_modules/react-native/ReactCommon/jsiexecutor/BUCK
2023-10-07 19:42:30 +08:00

46 lines
1.4 KiB
Python

load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "cxx_library", "react_native_xplat_dep", "react_native_xplat_target")
cxx_library(
name = "jsiexecutor",
srcs = [
"jsireact/JSIExecutor.cpp",
"jsireact/JSINativeModules.cpp",
],
header_namespace = "",
exported_headers = {
"jsireact/JSIExecutor.h": "jsireact/JSIExecutor.h",
"jsireact/JSINativeModules.h": "jsireact/JSINativeModules.h",
},
compiler_flags = [
"-fexceptions",
"-frtti",
],
fbandroid_deps = [
"//third-party/glog:glog",
"//xplat/folly:json",
"//xplat/third-party/linker_lib:atomic",
],
fbobjc_force_static = True,
fbobjc_header_path_prefix = "",
labels = [
"pfh:ReactNative_CommonInfrastructurePlaceholder",
],
platforms = (ANDROID, APPLE),
preprocessor_flags = [
"-DLOG_TAG=\"ReactNative\"",
"-DWITH_FBSYSTRACE=1",
],
visibility = [
"PUBLIC",
],
xcode_public_headers_symlinks = True,
deps = [
"//xplat/fbsystrace:fbsystrace",
react_native_xplat_dep("jsi:jsi"),
react_native_xplat_dep("jsi:JSIDynamic"),
react_native_xplat_target("cxxreact:bridge"),
react_native_xplat_target("cxxreact:jsbigstring"),
react_native_xplat_target("reactperflogger:reactperflogger"),
],
)