Skip to content

Commit

Permalink
Load and use fb_xplat_cxx_test
Browse files Browse the repository at this point in the history
Reviewed By: mzlee

Differential Revision: D7854278

fbshipit-source-id: 2a4c4fc27fc665a192fc04a8c8fae19f7f221566
  • Loading branch information
Jonathan Kim authored and facebook-github-bot committed May 3, 2018
1 parent b63015d commit 255b97d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions ReactCommon/cxxreact/tests/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ TEST_SRCS = [
]

if not IS_OSS_BUILD:
load("@xplat//build_defs:fb_xplat_cxx_test.bzl", "cxx_test")
load("@xplat//build_defs:fb_xplat_cxx_test.bzl", "fb_xplat_cxx_test")
load("@xplat//configurations/buck/android:jni_instrumentation_test", "jni_instrumentation_test_lib")
load("@xplat//configurations/buck:default_platform_defs.bzl", "APPLE")
jni_instrumentation_test_lib(
Expand All @@ -34,7 +34,7 @@ if not IS_OSS_BUILD:
],
)

cxx_test(
fb_xplat_cxx_test(
name = 'tests',
srcs = TEST_SRCS,
compiler_flags = [
Expand Down
6 changes: 3 additions & 3 deletions ReactCommon/fabric/core/BUCK
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "get_apple_inspector_flags")
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "get_apple_inspector_flags", "APPLE")

APPLE_COMPILER_FLAGS = []

Expand Down Expand Up @@ -58,9 +58,9 @@ rn_xplat_cxx_library(
)

if not IS_OSS_BUILD:
load("@xplat//configurations/buck:default_platform_defs.bzl", "APPLE")
load("@xplat//build_defs:fb_xplat_cxx_test.bzl", "fb_xplat_cxx_test")

cxx_test(
fb_xplat_cxx_test(
name = "tests",
srcs = glob(["tests/**/*.cpp"]),
headers = glob(["tests/**/*.h"]),
Expand Down
6 changes: 3 additions & 3 deletions ReactCommon/fabric/debug/BUCK
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@xplat//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "get_apple_inspector_flags")
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "get_apple_inspector_flags", "APPLE")

APPLE_COMPILER_FLAGS = []

Expand Down Expand Up @@ -49,9 +49,9 @@ rn_xplat_cxx_library(
)

if not IS_OSS_BUILD:
load("@xplat//configurations/buck:default_platform_defs.bzl", "APPLE")
load("@xplat//build_defs:fb_xplat_cxx_test.bzl", "fb_xplat_cxx_test")

cxx_test(
fb_xplat_cxx_test(
name = "tests",
srcs = glob(["tests/**/*.cpp"]),
headers = glob(["tests/**/*.h"]),
Expand Down
6 changes: 3 additions & 3 deletions ReactCommon/fabric/graphics/BUCK
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "get_apple_inspector_flags")
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "get_apple_inspector_flags", "APPLE")

APPLE_COMPILER_FLAGS = []

Expand Down Expand Up @@ -53,9 +53,9 @@ rn_xplat_cxx_library(
)

if not IS_OSS_BUILD:
load("@xplat//configurations/buck:default_platform_defs.bzl", "APPLE")
load("@xplat//build_defs:fb_xplat_cxx_test.bzl", "fb_xplat_cxx_test")

cxx_test(
fb_xplat_cxx_test(
name = "tests",
srcs = glob(["tests/**/*.cpp"]),
headers = glob(["tests/**/*.h"]),
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/fabric/uimanager/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ rn_xplat_cxx_library(

if not IS_OSS_BUILD:
load("@xplat//build_defs:fb_xplat_cxx_test.bzl", "fb_xplat_cxx_test")

fb_xplat_cxx_test(
name = "tests",
srcs = glob(["tests/**/*.cpp"]),
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/fabric/view/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ rn_xplat_cxx_library(

if not IS_OSS_BUILD:
load("@xplat//build_defs:fb_xplat_cxx_test.bzl", "fb_xplat_cxx_test")

fb_xplat_cxx_test(
name = "tests",
srcs = glob(["tests/**/*.cpp"]),
Expand Down

0 comments on commit 255b97d

Please sign in to comment.