Reformat BUCK files

Summary: Reformat BUCK files to better conform with style.

Reviewed By: zertosh

Differential Revision: D5901515

fbshipit-source-id: 93e8c56450f65b691af9017d880e6cf2a2cdb7af
This commit is contained in:
Michael Lee
2017-09-25 10:10:19 -07:00
committed by Facebook Github Bot
parent 969f055f47
commit fc6c85996e
6 changed files with 9 additions and 9 deletions

4
BUCK
View File

@@ -21,9 +21,9 @@ TEST_COMPILER_FLAGS = BASE_COMPILER_FLAGS + GMOCK_OVERRIDE_FLAGS + ["-std=c++11"
cxx_library( cxx_library(
name = "yoga", name = "yoga",
srcs = glob(["yoga/*.c"]), srcs = glob(["yoga/*.c"]),
compiler_flags = COMPILER_FLAGS,
exported_headers = subdir_glob([("", "yoga/*.h")]),
header_namespace = "", header_namespace = "",
exported_headers = subdir_glob([("", "yoga/*.h")]),
compiler_flags = COMPILER_FLAGS,
soname = "libyogacore.$(ext)", soname = "libyogacore.$(ext)",
tests = [":YogaTests"], tests = [":YogaTests"],
visibility = ["PUBLIC"], visibility = ["PUBLIC"],

View File

@@ -30,8 +30,8 @@ COMPILER_FLAGS = [
apple_library( apple_library(
name = "YogaKit", name = "YogaKit",
srcs = glob(["Source/**/*.m"]), srcs = glob(["Source/**/*.m"]),
compiler_flags = COMPILER_FLAGS,
exported_headers = glob(["Source/**/*.h"]), exported_headers = glob(["Source/**/*.h"]),
compiler_flags = COMPILER_FLAGS,
frameworks = [ frameworks = [
"$SDKROOT/System/Library/Frameworks/Foundation.framework", "$SDKROOT/System/Library/Frameworks/Foundation.framework",
"$SDKROOT/System/Library/Frameworks/UIKit.framework", "$SDKROOT/System/Library/Frameworks/UIKit.framework",

View File

@@ -10,6 +10,8 @@ include_defs("//YOGA_DEFS")
cxx_binary( cxx_binary(
name = "benchmark", name = "benchmark",
srcs = glob(["*.c"]), srcs = glob(["*.c"]),
headers = subdir_glob([("", "*.h")]),
header_namespace = "",
compiler_flags = [ compiler_flags = [
"-fno-omit-frame-pointer", "-fno-omit-frame-pointer",
"-fexceptions", "-fexceptions",
@@ -18,8 +20,6 @@ cxx_binary(
"-O3", "-O3",
"-std=c11", "-std=c11",
], ],
header_namespace = "",
headers = subdir_glob([("", "*.h")]),
visibility = ["PUBLIC"], visibility = ["PUBLIC"],
deps = [ deps = [
yoga_dep(":yoga"), yoga_dep(":yoga"),

View File

@@ -10,6 +10,7 @@ include_defs("//YOGA_DEFS")
cxx_library( cxx_library(
name = "jni", name = "jni",
srcs = glob(["jni/*.cpp"]), srcs = glob(["jni/*.cpp"]),
header_namespace = "",
compiler_flags = [ compiler_flags = [
"-fno-omit-frame-pointer", "-fno-omit-frame-pointer",
"-fexceptions", "-fexceptions",
@@ -19,7 +20,6 @@ cxx_library(
"-O3", "-O3",
"-std=c++11", "-std=c++11",
], ],
header_namespace = "",
soname = "libyoga.$(ext)", soname = "libyoga.$(ext)",
visibility = ["PUBLIC"], visibility = ["PUBLIC"],
deps = [ deps = [

View File

@@ -15,13 +15,13 @@ COMPILER_FLAGS = [
cxx_library( cxx_library(
name = "gtest", name = "gtest",
srcs = glob(["googletest/googletest/src/*.cc"]), srcs = glob(["googletest/googletest/src/*.cc"]),
compiler_flags = COMPILER_FLAGS, header_namespace = "",
exported_headers = subdir_glob([ exported_headers = subdir_glob([
("googletest/googletest/include", "**/*.h"), ("googletest/googletest/include", "**/*.h"),
("googletest/googletest", "src/*.h"), ("googletest/googletest", "src/*.h"),
("googletest/googletest", "src/*.cc"), ("googletest/googletest", "src/*.cc"),
]), ]),
header_namespace = "", compiler_flags = COMPILER_FLAGS,
visibility = YOGA_ROOTS, visibility = YOGA_ROOTS,
deps = [], deps = [],
) )

View File

@@ -7,11 +7,11 @@
cxx_library( cxx_library(
name = "jni", name = "jni",
header_namespace = "",
exported_headers = [ exported_headers = [
"jni.h", "jni.h",
"real/jni.h", "real/jni.h",
], ],
force_static = True, force_static = True,
header_namespace = "",
visibility = ["PUBLIC"], visibility = ["PUBLIC"],
) )