2017-05-11 13:32:41 +00:00
|
|
|
include_defs("//ReactCommon/DEFS")
|
|
|
|
|
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-05-12 09:36:06 +00:00
|
|
|
rn_xplat_cxx_library(
|
2017-03-10 17:08:05 +00:00
|
|
|
name = "jscinternalhelpers",
|
2017-05-11 13:32:41 +00:00
|
|
|
srcs = glob(
|
|
|
|
["*.cpp"],
|
|
|
|
excludes = ["systemJSCWrapper.cpp"],
|
|
|
|
),
|
2016-11-01 18:38:43 +00:00
|
|
|
compiler_flags = [
|
2017-05-11 13:32:41 +00:00
|
|
|
"-Wall",
|
|
|
|
"-fexceptions",
|
|
|
|
"-fvisibility=hidden",
|
|
|
|
"-std=c++1y",
|
2016-11-01 18:38:43 +00:00
|
|
|
],
|
|
|
|
exported_headers = EXPORTED_HEADERS,
|
2017-05-11 13:32:41 +00:00
|
|
|
fbobjc_header_path_prefix = "jschelpers",
|
|
|
|
fbobjc_inherited_buck_flags = STATIC_LIBRARY_IOS_FLAGS,
|
2017-03-10 17:08:05 +00:00
|
|
|
force_static = True,
|
|
|
|
header_namespace = "jschelpers",
|
2017-05-11 13:32:41 +00:00
|
|
|
headers = glob(
|
|
|
|
["*.h"],
|
|
|
|
excludes = EXPORTED_HEADERS,
|
|
|
|
),
|
2017-03-10 17:08:05 +00:00
|
|
|
visibility = [
|
2017-05-11 13:32:41 +00:00
|
|
|
"PUBLIC",
|
|
|
|
],
|
|
|
|
deps = JSC_INTERNAL_DEPS + [
|
|
|
|
"//xplat/folly:molly",
|
2017-03-10 17:08:05 +00:00
|
|
|
],
|
2017-05-11 13:32:41 +00:00
|
|
|
)
|
2017-03-10 17:08:05 +00:00
|
|
|
|
2017-05-12 09:36:06 +00:00
|
|
|
rn_xplat_cxx_library(
|
2017-03-10 17:08:05 +00:00
|
|
|
name = "jschelpers",
|
2017-05-11 13:32:41 +00:00
|
|
|
srcs = [],
|
2017-03-10 17:08:05 +00:00
|
|
|
compiler_flags = [
|
2017-05-11 13:32:41 +00:00
|
|
|
"-Wall",
|
|
|
|
"-fexceptions",
|
|
|
|
"-fvisibility=hidden",
|
|
|
|
"-std=c++1y",
|
2017-03-10 17:08:05 +00:00
|
|
|
],
|
2017-05-11 13:32:41 +00:00
|
|
|
fbobjc_frameworks = [
|
|
|
|
"$SDKROOT/System/Library/Frameworks/JavaScriptCore.framework",
|
2016-11-22 14:05:36 +00:00
|
|
|
],
|
2017-05-11 13:32:41 +00:00
|
|
|
fbobjc_inherited_buck_flags = STATIC_LIBRARY_IOS_FLAGS,
|
|
|
|
fbobjc_srcs = ["systemJSCWrapper.cpp"],
|
|
|
|
force_static = True,
|
2016-11-22 14:05:36 +00:00
|
|
|
visibility = [
|
2017-05-11 13:32:41 +00:00
|
|
|
"PUBLIC",
|
2016-11-22 14:05:36 +00:00
|
|
|
],
|
2017-05-11 13:32:41 +00:00
|
|
|
deps = [":jscinternalhelpers"],
|
|
|
|
)
|