Pieter De Baets afbab66a44 Define rn_xplat_cxx_library for OSS builds
Reviewed By: bestander

Differential Revision: D5044673

fbshipit-source-id: 41c9fe4b2ae128eed6f299dd8ea9dbfc4ca75917
2017-05-12 02:45:19 -07:00

62 lines
1.3 KiB
Python

include_defs("//ReactCommon/DEFS")
EXPORTED_HEADERS = [
"InspectorInterfaces.h",
"JavaScriptCore.h",
"JSCHelpers.h",
"JSCWrapper.h",
"noncopyable.h",
"Unicode.h",
"Value.h",
]
rn_xplat_cxx_library(
name = "jscinternalhelpers",
srcs = glob(
["*.cpp"],
excludes = ["systemJSCWrapper.cpp"],
),
compiler_flags = [
"-Wall",
"-fexceptions",
"-fvisibility=hidden",
"-std=c++1y",
],
exported_headers = EXPORTED_HEADERS,
fbobjc_header_path_prefix = "jschelpers",
fbobjc_inherited_buck_flags = STATIC_LIBRARY_IOS_FLAGS,
force_static = True,
header_namespace = "jschelpers",
headers = glob(
["*.h"],
excludes = EXPORTED_HEADERS,
),
visibility = [
"PUBLIC",
],
deps = JSC_INTERNAL_DEPS + [
"//xplat/folly:molly",
],
)
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_inherited_buck_flags = STATIC_LIBRARY_IOS_FLAGS,
fbobjc_srcs = ["systemJSCWrapper.cpp"],
force_static = True,
visibility = [
"PUBLIC",
],
deps = [":jscinternalhelpers"],
)