Files
react-native/ReactCommon/cxxreact/tests/BUCK
T
Pieter De Baets 71e89213aa Make ReactCommon and tests compile for CXX platform
Summary:
If you don't list `Cxx` as a supported platform, we will use Android builds, even when using `buck run` for local execution.

Changelog: [Internal]

Reviewed By: derolf

Differential Revision: D37600464

fbshipit-source-id: 6ba8566cde4180524351c9d8c647ce1d4ac5279d
2022-07-05 05:56:35 -07:00

29 lines
675 B
Python

load(
"//tools/build_defs/oss:rn_defs.bzl",
"ANDROID",
"APPLE",
"CXX",
"fb_xplat_cxx_test",
"react_native_xplat_target",
)
fb_xplat_cxx_test(
name = "tests",
srcs = glob(["*.cpp"]),
compiler_flags = [
"-fexceptions",
"-frtti",
],
contacts = ["oncall+react_native@xmail.facebook.com"],
platforms = (ANDROID, APPLE, CXX),
visibility = [
react_native_xplat_target("cxxreact/..."),
],
deps = [
"//xplat/folly:init_init",
"//xplat/third-party/gmock:gtest",
react_native_xplat_target("cxxreact:bridge"),
react_native_xplat_target("cxxreact:jsbigstring"),
],
)