2020-10-23 03:07:03 +03:00
|
|
|
load("//tools/build_defs/oss:rn_defs.bzl", "APPLE", "IOS", "MACOSX", "react_native_xplat_dep", "rn_xplat_cxx_library")
|
2018-10-18 10:47:02 +03:00
|
|
|
|
|
|
|
rn_xplat_cxx_library(
|
|
|
|
name = "jsi",
|
|
|
|
srcs = [
|
2019-04-09 21:36:42 +03:00
|
|
|
"jsi/jsi.cpp",
|
2018-10-18 10:47:02 +03:00
|
|
|
],
|
2019-04-09 21:36:42 +03:00
|
|
|
header_namespace = "",
|
2018-10-18 10:47:02 +03:00
|
|
|
exported_headers = [
|
2019-04-09 21:36:42 +03:00
|
|
|
"jsi/instrumentation.h",
|
|
|
|
"jsi/jsi.h",
|
|
|
|
"jsi/jsi-inl.h",
|
|
|
|
"jsi/jsilib.h",
|
2018-10-18 10:47:02 +03:00
|
|
|
],
|
|
|
|
compiler_flags = [
|
|
|
|
"-O3",
|
|
|
|
"-Wextra",
|
|
|
|
"-Wcast-qual",
|
|
|
|
"-Wdelete-non-virtual-dtor",
|
|
|
|
"-Wwrite-strings",
|
|
|
|
],
|
|
|
|
cxx_compiler_flags = [
|
|
|
|
"-Wglobal-constructors",
|
|
|
|
"-Wmissing-prototypes",
|
|
|
|
],
|
|
|
|
fbobjc_compiler_flags = [
|
|
|
|
"-Wglobal-constructors",
|
|
|
|
"-Wmissing-prototypes",
|
|
|
|
],
|
2020-05-16 07:51:56 +03:00
|
|
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
2018-10-18 10:47:02 +03:00
|
|
|
visibility = ["PUBLIC"],
|
|
|
|
)
|
|
|
|
|
|
|
|
rn_xplat_cxx_library(
|
|
|
|
name = "JSIDynamic",
|
|
|
|
srcs = [
|
2019-04-09 21:36:42 +03:00
|
|
|
"jsi/JSIDynamic.cpp",
|
2018-10-18 10:47:02 +03:00
|
|
|
],
|
2019-04-09 21:36:42 +03:00
|
|
|
header_namespace = "",
|
2018-10-18 10:47:02 +03:00
|
|
|
exported_headers = [
|
2019-04-09 21:36:42 +03:00
|
|
|
"jsi/JSIDynamic.h",
|
2018-10-18 10:47:02 +03:00
|
|
|
],
|
|
|
|
fbobjc_force_static = True,
|
2020-05-16 07:51:56 +03:00
|
|
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
2018-10-18 10:47:02 +03:00
|
|
|
visibility = [
|
|
|
|
"PUBLIC",
|
|
|
|
],
|
|
|
|
xcode_public_headers_symlinks = True,
|
|
|
|
deps = [
|
2020-03-26 07:51:33 +03:00
|
|
|
"//xplat/folly:molly",
|
2018-10-18 10:47:02 +03:00
|
|
|
react_native_xplat_dep("jsi:jsi"),
|
|
|
|
],
|
|
|
|
)
|
2018-10-18 10:47:03 +03:00
|
|
|
|
|
|
|
rn_xplat_cxx_library(
|
|
|
|
name = "JSCRuntime",
|
|
|
|
srcs = [
|
|
|
|
"JSCRuntime.cpp",
|
|
|
|
],
|
|
|
|
header_namespace = "jsi",
|
|
|
|
exported_headers = [
|
|
|
|
"JSCRuntime.h",
|
|
|
|
],
|
2020-02-25 06:12:22 +03:00
|
|
|
apple_sdks = (IOS, MACOSX),
|
2018-10-18 10:47:03 +03:00
|
|
|
fbobjc_compiler_flags = [
|
|
|
|
"-Os",
|
|
|
|
],
|
|
|
|
fbobjc_frameworks = [
|
|
|
|
"$SDKROOT/System/Library/Frameworks/JavaScriptCore.framework",
|
|
|
|
],
|
2020-05-16 07:51:56 +03:00
|
|
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
2020-02-25 06:12:22 +03:00
|
|
|
platforms = APPLE,
|
2018-10-18 10:47:03 +03:00
|
|
|
visibility = ["PUBLIC"],
|
|
|
|
xplat_mangled_args = {
|
|
|
|
"soname": "libjscjsi.$(ext)",
|
|
|
|
},
|
|
|
|
exported_deps = [
|
|
|
|
react_native_xplat_dep("jsi:jsi"),
|
|
|
|
],
|
|
|
|
)
|