2018-05-20 23:06:59 -07:00
|
|
|
load("//ReactNative:DEFS.bzl", "ANDROID", "ANDROID_JSC_INTERNAL_DEPS", "APPLE", "APPLE_JSC_INTERNAL_DEPS", "react_native_xplat_target", "rn_xplat_cxx_library")
|
2017-05-11 06:32:41 -07:00
|
|
|
|
2016-11-01 11:38:43 -07:00
|
|
|
EXPORTED_HEADERS = [
|
2017-02-24 21:40:45 -08:00
|
|
|
"JavaScriptCore.h",
|
|
|
|
"JSCHelpers.h",
|
|
|
|
"JSCWrapper.h",
|
|
|
|
"noncopyable.h",
|
|
|
|
"Unicode.h",
|
|
|
|
"Value.h",
|
2016-11-01 11:38:43 -07:00
|
|
|
]
|
|
|
|
|
2017-05-12 02:36:06 -07:00
|
|
|
rn_xplat_cxx_library(
|
2017-03-10 09:08:05 -08:00
|
|
|
name = "jscinternalhelpers",
|
2017-05-11 06:32:41 -07:00
|
|
|
srcs = glob(
|
|
|
|
["*.cpp"],
|
|
|
|
excludes = ["systemJSCWrapper.cpp"],
|
|
|
|
),
|
2017-09-05 14:59:14 -07:00
|
|
|
headers = glob(
|
|
|
|
["*.h"],
|
|
|
|
excludes = EXPORTED_HEADERS,
|
|
|
|
),
|
|
|
|
header_namespace = "",
|
2017-05-17 14:20:35 -07:00
|
|
|
exported_headers = dict([
|
|
|
|
(
|
|
|
|
"jschelpers/%s" % header,
|
|
|
|
header,
|
|
|
|
)
|
|
|
|
for header in EXPORTED_HEADERS
|
|
|
|
]),
|
2017-09-05 14:59:14 -07:00
|
|
|
compiler_flags = [
|
|
|
|
"-Wall",
|
|
|
|
"-fexceptions",
|
2017-09-18 18:35:44 -07:00
|
|
|
"-frtti",
|
2017-09-05 14:59:14 -07:00
|
|
|
"-fvisibility=hidden",
|
|
|
|
"-std=c++1y",
|
|
|
|
],
|
2018-01-21 21:54:01 -08:00
|
|
|
fbandroid_deps = ANDROID_JSC_INTERNAL_DEPS,
|
|
|
|
fbobjc_deps = APPLE_JSC_INTERNAL_DEPS,
|
2017-03-10 09:08:05 -08:00
|
|
|
force_static = True,
|
2018-04-05 15:47:03 -07:00
|
|
|
platforms = (ANDROID, APPLE),
|
2017-03-10 09:08:05 -08:00
|
|
|
visibility = [
|
2017-05-11 06:32:41 -07:00
|
|
|
"PUBLIC",
|
|
|
|
],
|
2018-01-21 21:54:01 -08:00
|
|
|
deps = [
|
2017-08-31 16:58:15 -07:00
|
|
|
"xplat//folly:molly",
|
2018-01-20 12:01:45 -08:00
|
|
|
"xplat//third-party/glog:glog",
|
|
|
|
react_native_xplat_target("privatedata:privatedata"),
|
2017-03-10 09:08:05 -08:00
|
|
|
],
|
2018-05-25 11:09:49 -07:00
|
|
|
exported_deps = [
|
|
|
|
react_native_xplat_target("privatedata:privatedata"),
|
|
|
|
],
|
2017-05-11 06:32:41 -07:00
|
|
|
)
|
2017-03-10 09:08:05 -08:00
|
|
|
|
2017-05-12 02:36:06 -07:00
|
|
|
rn_xplat_cxx_library(
|
2017-03-10 09:08:05 -08:00
|
|
|
name = "jschelpers",
|
2017-05-11 06:32:41 -07:00
|
|
|
srcs = [],
|
2017-03-10 09:08:05 -08:00
|
|
|
compiler_flags = [
|
2017-05-11 06:32:41 -07:00
|
|
|
"-Wall",
|
|
|
|
"-fexceptions",
|
|
|
|
"-fvisibility=hidden",
|
|
|
|
"-std=c++1y",
|
2017-03-10 09:08:05 -08:00
|
|
|
],
|
2017-05-11 06:32:41 -07:00
|
|
|
fbobjc_frameworks = [
|
|
|
|
"$SDKROOT/System/Library/Frameworks/JavaScriptCore.framework",
|
2016-11-22 06:05:36 -08:00
|
|
|
],
|
2017-05-11 06:32:41 -07:00
|
|
|
fbobjc_srcs = ["systemJSCWrapper.cpp"],
|
|
|
|
force_static = True,
|
2018-04-05 15:47:03 -07:00
|
|
|
platforms = (ANDROID, APPLE),
|
2016-11-22 06:05:36 -08:00
|
|
|
visibility = [
|
2017-05-11 06:32:41 -07:00
|
|
|
"PUBLIC",
|
2016-11-22 06:05:36 -08:00
|
|
|
],
|
2017-05-11 06:32:41 -07:00
|
|
|
deps = [":jscinternalhelpers"],
|
|
|
|
)
|