Fix invalid build file syntax.

Summary: https://buckbuild.com/concept/skylark.html

Reviewed By: shergin

Differential Revision: D8878696

fbshipit-source-id: 33db539701fa84e7391be643f3eabb7e0224aa0b
This commit is contained in:
Taras Tsugrii 2018-07-17 17:18:15 -07:00 committed by Facebook Github Bot
parent 3ac86c366c
commit c68c3a53d4
1 changed files with 30 additions and 29 deletions

View File

@ -1,13 +1,17 @@
load("@xplat//tools/build_defs:glob_defs.bzl", "subdir_glob")
load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags") load("//configurations/buck/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_application_ios_flags", "get_debug_preprocessor_flags")
load("//ReactNative:DEFS.bzl", "ANDROID", "APPLE", "IS_OSS_BUILD", "get_apple_inspector_flags", "react_native_xplat_target", "rn_xplat_cxx_library") load(
"//ReactNative:DEFS.bzl",
"ANDROID",
"APPLE",
"subdir_glob",
"fb_xplat_cxx_test",
"get_apple_compiler_flags",
"get_apple_inspector_flags",
"react_native_xplat_target",
"rn_xplat_cxx_library",
)
APPLE_COMPILER_FLAGS = [] APPLE_COMPILER_FLAGS = get_apple_compiler_flags()
if not IS_OSS_BUILD:
load("@xplat//configurations/buck/apple:flag_defs.bzl", "flags", "get_static_library_ios_flags")
APPLE_COMPILER_FLAGS = flags.get_flag_value(get_static_library_ios_flags(), "compiler_flags")
rn_xplat_cxx_library( rn_xplat_cxx_library(
name = "root", name = "root",
@ -56,24 +60,21 @@ rn_xplat_cxx_library(
], ],
) )
if not IS_OSS_BUILD: fb_xplat_cxx_test(
load("@xplat//build_defs:fb_xplat_cxx_test.bzl", "fb_xplat_cxx_test") name = "tests",
srcs = glob(["tests/**/*.cpp"]),
fb_xplat_cxx_test( headers = glob(["tests/**/*.h"]),
name = "tests", compiler_flags = [
srcs = glob(["tests/**/*.cpp"]), "-fexceptions",
headers = glob(["tests/**/*.h"]), "-frtti",
contacts = ["oncall+react_native@xmail.facebook.com"], "-std=c++14",
compiler_flags = [ "-Wall",
"-fexceptions", ],
"-frtti", contacts = ["oncall+react_native@xmail.facebook.com"],
"-std=c++14", platforms = APPLE,
"-Wall", deps = [
], "xplat//folly:molly",
platforms = APPLE, "xplat//third-party/gmock:gtest",
deps = [ ":root",
"xplat//folly:molly", ],
"xplat//third-party/gmock:gtest", )
":root",
],
)