Alexander Blom ddb8cb7cf0 Move JSCHelpers.h and Value.h into separate package
Reviewed By: javache

Differential Revision: D3950748

fbshipit-source-id: 6315ea07f3217b485aeb4374b5f6e36333957848
2016-11-01 11:44:10 -07:00

58 lines
1.3 KiB
Python

EXPORTED_HEADERS = [
'JSCHelpers.h',
'Value.h',
'noncopyable.h',
'Unicode.h',
]
if THIS_IS_FBANDROID:
include_defs('//ReactAndroid/DEFS')
cxx_library(
name = 'jschelpers',
force_static = True,
# We depend on JSC, support the same platforms
supported_platforms_regex = '^android-(armv7|x86)$',
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:
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',
],
)