2016-11-01 18:38:43 +00:00
|
|
|
EXPORTED_HEADERS = [
|
2017-05-03 04:29:04 +00:00
|
|
|
"InspectorInterfaces.h",
|
2017-02-25 05:40:45 +00:00
|
|
|
"JavaScriptCore.h",
|
|
|
|
"JSCHelpers.h",
|
|
|
|
"JSCWrapper.h",
|
|
|
|
"noncopyable.h",
|
|
|
|
"Unicode.h",
|
|
|
|
"Value.h",
|
2016-11-01 18:38:43 +00:00
|
|
|
]
|
|
|
|
|
2017-03-10 17:08:05 +00:00
|
|
|
EXPORTED_HEADER_MAP = subdir_glob(
|
|
|
|
(("", header) for header in EXPORTED_HEADERS),
|
|
|
|
prefix = "jschelpers",
|
|
|
|
)
|
|
|
|
|
2016-11-01 18:38:43 +00:00
|
|
|
if THIS_IS_FBANDROID:
|
2017-03-10 17:08:05 +00:00
|
|
|
include_defs("//ReactAndroid/DEFS")
|
2016-11-01 18:38:43 +00:00
|
|
|
|
|
|
|
cxx_library(
|
2017-03-10 17:08:05 +00:00
|
|
|
name = "jscinternalhelpers",
|
2016-11-01 18:38:43 +00:00
|
|
|
force_static = True,
|
|
|
|
compiler_flags = [
|
2017-03-10 17:08:05 +00:00
|
|
|
"-Wall",
|
|
|
|
"-fexceptions",
|
|
|
|
"-fvisibility=hidden",
|
|
|
|
"-std=c++1y",
|
2016-11-01 18:38:43 +00:00
|
|
|
],
|
|
|
|
exported_headers = EXPORTED_HEADERS,
|
2017-03-10 17:08:05 +00:00
|
|
|
headers = glob(["*.h"], excludes=EXPORTED_HEADERS),
|
|
|
|
header_namespace = "jschelpers",
|
|
|
|
srcs = glob(["*.cpp"], excludes=["systemJSCWrapper.cpp"]),
|
|
|
|
deps = JSC_INTERNAL_DEPS + [
|
|
|
|
"//xplat/folly:molly",
|
|
|
|
],
|
|
|
|
visibility = [
|
|
|
|
"PUBLIC",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cxx_library(
|
|
|
|
name = "jschelpers",
|
|
|
|
force_static = True,
|
|
|
|
compiler_flags = [
|
|
|
|
"-Wall",
|
|
|
|
"-fexceptions",
|
|
|
|
"-fvisibility=hidden",
|
|
|
|
"-std=c++1y",
|
2016-11-01 18:38:43 +00:00
|
|
|
],
|
2017-03-10 17:08:05 +00:00
|
|
|
srcs = [],
|
|
|
|
deps = [ ":jscinternalhelpers" ],
|
2016-11-01 18:38:43 +00:00
|
|
|
visibility = [
|
2017-03-10 17:08:05 +00:00
|
|
|
"PUBLIC",
|
2016-11-01 18:38:43 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2017-02-14 06:15:40 +00:00
|
|
|
if THIS_IS_FBOBJC:
|
2017-03-10 17:08:05 +00:00
|
|
|
|
2017-03-15 14:23:23 +00:00
|
|
|
fb_apple_library(
|
2017-03-10 17:08:05 +00:00
|
|
|
name = "jscinternalhelpers",
|
2016-11-22 14:05:36 +00:00
|
|
|
inherited_buck_flags = STATIC_LIBRARY_IOS_FLAGS,
|
|
|
|
compiler_flags = [
|
2017-03-10 17:08:05 +00:00
|
|
|
"-Wall",
|
|
|
|
"-fexceptions",
|
|
|
|
"-fvisibility=hidden",
|
|
|
|
"-std=c++1y",
|
2017-03-10 13:17:45 +00:00
|
|
|
],
|
2017-03-10 17:08:05 +00:00
|
|
|
exported_headers = EXPORTED_HEADER_MAP,
|
|
|
|
headers = subdir_glob([("", "*.h")], excludes=EXPORTED_HEADERS, prefix="jschelpers"),
|
|
|
|
header_namespace = "jschelpers",
|
|
|
|
srcs = glob(["*.cpp"], excludes=["systemJSCWrapper.cpp"]),
|
2017-03-10 13:17:45 +00:00
|
|
|
deps = [
|
2017-03-10 17:08:05 +00:00
|
|
|
"//xplat/folly:molly",
|
|
|
|
],
|
|
|
|
visibility = [
|
|
|
|
"PUBLIC",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2017-03-15 14:23:23 +00:00
|
|
|
fb_apple_library(
|
2017-03-10 17:08:05 +00:00
|
|
|
name = "jschelpers",
|
|
|
|
inherited_buck_flags = STATIC_LIBRARY_IOS_FLAGS,
|
|
|
|
compiler_flags = [
|
|
|
|
"-Wall",
|
|
|
|
"-fexceptions",
|
|
|
|
"-fvisibility=hidden",
|
|
|
|
"-std=c++1y",
|
|
|
|
],
|
|
|
|
srcs = ["systemJSCWrapper.cpp"],
|
|
|
|
frameworks = [
|
|
|
|
"$SDKROOT/System/Library/Frameworks/JavaScriptCore.framework",
|
2016-11-22 14:05:36 +00:00
|
|
|
],
|
2017-03-10 17:08:05 +00:00
|
|
|
deps = [ ":jscinternalhelpers" ],
|
2016-11-22 14:05:36 +00:00
|
|
|
visibility = [
|
2017-03-10 17:08:05 +00:00
|
|
|
"PUBLIC",
|
2016-11-22 14:05:36 +00:00
|
|
|
],
|
|
|
|
)
|