2016-11-01 18:38:43 +00:00
|
|
|
EXPORTED_HEADERS = [
|
2016-11-22 14:05:36 +00:00
|
|
|
'JavaScriptCore.h',
|
2016-11-01 18:38:43 +00:00
|
|
|
'JSCHelpers.h',
|
2016-11-22 14:05:36 +00:00
|
|
|
'JSCWrapper.h',
|
2016-11-01 18:38:43 +00:00
|
|
|
'noncopyable.h',
|
|
|
|
'Unicode.h',
|
2016-11-22 14:05:36 +00:00
|
|
|
'Value.h',
|
2016-11-01 18:38:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if THIS_IS_FBANDROID:
|
|
|
|
include_defs('//ReactAndroid/DEFS')
|
|
|
|
|
|
|
|
cxx_library(
|
|
|
|
name = 'jschelpers',
|
|
|
|
force_static = True,
|
|
|
|
compiler_flags = [
|
|
|
|
'-Wall',
|
|
|
|
'-fexceptions',
|
|
|
|
'-fvisibility=hidden',
|
|
|
|
'-std=c++1y',
|
|
|
|
],
|
|
|
|
exported_headers = EXPORTED_HEADERS,
|
|
|
|
headers = glob(['*.h'], excludes=EXPORTED_HEADERS),
|
|
|
|
header_namespace = 'jschelpers',
|
|
|
|
srcs = glob(['*.cpp']),
|
|
|
|
deps = JSC_DEPS + [
|
|
|
|
'//xplat/folly:molly',
|
|
|
|
],
|
|
|
|
visibility = [
|
|
|
|
'PUBLIC',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
elif THIS_IS_FBOBJC:
|
2016-11-22 14:05:36 +00:00
|
|
|
ios_library(
|
|
|
|
name = 'jschelpers',
|
|
|
|
inherited_buck_flags = STATIC_LIBRARY_IOS_FLAGS,
|
|
|
|
compiler_flags = [
|
|
|
|
'-Wall',
|
|
|
|
'-fexceptions',
|
|
|
|
'-fvisibility=hidden',
|
|
|
|
'-std=c++1y',
|
|
|
|
],
|
|
|
|
exported_headers = EXPORTED_HEADERS,
|
|
|
|
headers = glob(['*.h'], excludes=EXPORTED_HEADERS),
|
|
|
|
header_namespace = 'jschelpers',
|
|
|
|
srcs = glob(['*.cpp']),
|
|
|
|
frameworks = [
|
|
|
|
'$SDKROOT/System/Library/Frameworks/JavaScriptCore.framework',
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
'//xplat/folly:molly',
|
|
|
|
],
|
|
|
|
visibility = [
|
|
|
|
'PUBLIC',
|
|
|
|
],
|
|
|
|
)
|