BUCK
1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
load("//ReactNative:DEFS.bzl", "rn_xplat_cxx_library", "react_native_xplat_target", "ANDROID_JSC_INTERNAL_DEPS", "APPLE_JSC_INTERNAL_DEPS")
EXPORTED_HEADERS = [
"JavaScriptCore.h",
"JSCHelpers.h",
"JSCWrapper.h",
"noncopyable.h",
"Unicode.h",
"Value.h",
]
rn_xplat_cxx_library(
name = "jscinternalhelpers",
srcs = glob(
["*.cpp"],
excludes = ["systemJSCWrapper.cpp"],
),
headers = glob(
["*.h"],
excludes = EXPORTED_HEADERS,
),
header_namespace = "",
exported_headers = dict([
(
"jschelpers/%s" % header,
header,
)
for header in EXPORTED_HEADERS
]),
compiler_flags = [
"-Wall",
"-fexceptions",
"-frtti",
"-fvisibility=hidden",
"-std=c++1y",
],
exported_deps = [
react_native_xplat_target("privatedata:privatedata"),
],
fbandroid_deps = ANDROID_JSC_INTERNAL_DEPS,
fbobjc_deps = APPLE_JSC_INTERNAL_DEPS,
force_static = True,
visibility = [
"PUBLIC",
],
deps = [
"xplat//folly:molly",
"xplat//third-party/glog:glog",
react_native_xplat_target("privatedata:privatedata"),
],
)
rn_xplat_cxx_library(
name = "jschelpers",
srcs = [],
compiler_flags = [
"-Wall",
"-fexceptions",
"-fvisibility=hidden",
"-std=c++1y",
],
fbobjc_frameworks = [
"$SDKROOT/System/Library/Frameworks/JavaScriptCore.framework",
],
fbobjc_srcs = ["systemJSCWrapper.cpp"],
force_static = True,
visibility = [
"PUBLIC",
],
deps = [":jscinternalhelpers"],
)