From fc6c85996e8587bd6845cc1f02b81a8d23e7863e Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Mon, 25 Sep 2017 10:10:19 -0700 Subject: [PATCH] Reformat BUCK files Summary: Reformat BUCK files to better conform with style. Reviewed By: zertosh Differential Revision: D5901515 fbshipit-source-id: 93e8c56450f65b691af9017d880e6cf2a2cdb7af --- BUCK | 4 ++-- YogaKit/BUCK | 2 +- benchmark/BUCK | 4 ++-- java/BUCK | 2 +- lib/gtest/BUCK | 4 ++-- lib/jni/BUCK | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/BUCK b/BUCK index 61f90d87..1fce6884 100644 --- a/BUCK +++ b/BUCK @@ -21,9 +21,9 @@ TEST_COMPILER_FLAGS = BASE_COMPILER_FLAGS + GMOCK_OVERRIDE_FLAGS + ["-std=c++11" cxx_library( name = "yoga", srcs = glob(["yoga/*.c"]), - compiler_flags = COMPILER_FLAGS, - exported_headers = subdir_glob([("", "yoga/*.h")]), header_namespace = "", + exported_headers = subdir_glob([("", "yoga/*.h")]), + compiler_flags = COMPILER_FLAGS, soname = "libyogacore.$(ext)", tests = [":YogaTests"], visibility = ["PUBLIC"], diff --git a/YogaKit/BUCK b/YogaKit/BUCK index 65651021..7ca2d47e 100644 --- a/YogaKit/BUCK +++ b/YogaKit/BUCK @@ -30,8 +30,8 @@ COMPILER_FLAGS = [ apple_library( name = "YogaKit", srcs = glob(["Source/**/*.m"]), - compiler_flags = COMPILER_FLAGS, exported_headers = glob(["Source/**/*.h"]), + compiler_flags = COMPILER_FLAGS, frameworks = [ "$SDKROOT/System/Library/Frameworks/Foundation.framework", "$SDKROOT/System/Library/Frameworks/UIKit.framework", diff --git a/benchmark/BUCK b/benchmark/BUCK index 0b9ae77f..7cae0891 100644 --- a/benchmark/BUCK +++ b/benchmark/BUCK @@ -10,6 +10,8 @@ include_defs("//YOGA_DEFS") cxx_binary( name = "benchmark", srcs = glob(["*.c"]), + headers = subdir_glob([("", "*.h")]), + header_namespace = "", compiler_flags = [ "-fno-omit-frame-pointer", "-fexceptions", @@ -18,8 +20,6 @@ cxx_binary( "-O3", "-std=c11", ], - header_namespace = "", - headers = subdir_glob([("", "*.h")]), visibility = ["PUBLIC"], deps = [ yoga_dep(":yoga"), diff --git a/java/BUCK b/java/BUCK index 967110c1..0ff18607 100644 --- a/java/BUCK +++ b/java/BUCK @@ -10,6 +10,7 @@ include_defs("//YOGA_DEFS") cxx_library( name = "jni", srcs = glob(["jni/*.cpp"]), + header_namespace = "", compiler_flags = [ "-fno-omit-frame-pointer", "-fexceptions", @@ -19,7 +20,6 @@ cxx_library( "-O3", "-std=c++11", ], - header_namespace = "", soname = "libyoga.$(ext)", visibility = ["PUBLIC"], deps = [ diff --git a/lib/gtest/BUCK b/lib/gtest/BUCK index c09f2da9..9f5cce6c 100644 --- a/lib/gtest/BUCK +++ b/lib/gtest/BUCK @@ -15,13 +15,13 @@ COMPILER_FLAGS = [ cxx_library( name = "gtest", srcs = glob(["googletest/googletest/src/*.cc"]), - compiler_flags = COMPILER_FLAGS, + header_namespace = "", exported_headers = subdir_glob([ ("googletest/googletest/include", "**/*.h"), ("googletest/googletest", "src/*.h"), ("googletest/googletest", "src/*.cc"), ]), - header_namespace = "", + compiler_flags = COMPILER_FLAGS, visibility = YOGA_ROOTS, deps = [], ) diff --git a/lib/jni/BUCK b/lib/jni/BUCK index cbd4edc8..a0612ddd 100644 --- a/lib/jni/BUCK +++ b/lib/jni/BUCK @@ -7,11 +7,11 @@ cxx_library( name = "jni", + header_namespace = "", exported_headers = [ "jni.h", "real/jni.h", ], force_static = True, - header_namespace = "", visibility = ["PUBLIC"], )