Apply auto-formatter for BUCK files in fbandroid.
Summary: For more background, see: https://fb.facebook.com/groups/303159406399348/permalink/1334977403217538/ https://fburl.com/auto-format-build-files D4527873 fbshipit-source-id: 278ce6f67f5df830b2218e3aca69be103d3c56a6
This commit is contained in:
committed by
Facebook Github Bot
parent
d6d4dcb141
commit
47d8d9d22b
54
BUCK
54
BUCK
@@ -5,38 +5,42 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
GMOCK_OVERRIDE_FLAGS = [
|
GMOCK_OVERRIDE_FLAGS = [
|
||||||
# gmock does not mark mocked methods as override, ignore the warnings in tests
|
# gmock does not mark mocked methods as override, ignore the warnings in tests
|
||||||
'-Wno-inconsistent-missing-override',
|
"-Wno-inconsistent-missing-override",
|
||||||
]
|
]
|
||||||
|
|
||||||
COMPILER_FLAGS = BASE_COMPILER_FLAGS + ['-std=c11', '-fPIC']
|
COMPILER_FLAGS = BASE_COMPILER_FLAGS + [
|
||||||
TEST_COMPILER_FLAGS = BASE_COMPILER_FLAGS + GMOCK_OVERRIDE_FLAGS + ['-std=c++11']
|
"-std=c11",
|
||||||
|
"-fPIC",
|
||||||
|
]
|
||||||
|
|
||||||
|
TEST_COMPILER_FLAGS = BASE_COMPILER_FLAGS + GMOCK_OVERRIDE_FLAGS + ["-std=c++11"]
|
||||||
|
|
||||||
cxx_library(
|
cxx_library(
|
||||||
name = 'yoga',
|
name = "yoga",
|
||||||
soname = 'libyogacore.$(ext)',
|
srcs = glob(["yoga/*.c"]),
|
||||||
srcs = glob(['yoga/*.c']),
|
compiler_flags = COMPILER_FLAGS,
|
||||||
tests=[':YogaTests'],
|
exported_headers = subdir_glob([("", "yoga/*.h")]),
|
||||||
exported_headers = subdir_glob([('', 'yoga/*.h')]),
|
header_namespace = "",
|
||||||
header_namespace = '',
|
soname = "libyogacore.$(ext)",
|
||||||
compiler_flags = COMPILER_FLAGS,
|
tests = [":YogaTests"],
|
||||||
deps = [] if THIS_IS_FBOBJC else [
|
visibility = ["PUBLIC"],
|
||||||
yoga_dep('lib/fb:ndklog'),
|
deps = [] if THIS_IS_FBOBJC else [
|
||||||
],
|
yoga_dep("lib/fb:ndklog"),
|
||||||
visibility = ['PUBLIC'],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
cxx_test(
|
cxx_test(
|
||||||
name = 'YogaTests',
|
name = "YogaTests",
|
||||||
contacts = ['emilsj@fb.com'],
|
srcs = glob(["tests/*.cpp"]),
|
||||||
srcs = glob(['tests/*.cpp']),
|
compiler_flags = TEST_COMPILER_FLAGS,
|
||||||
compiler_flags = TEST_COMPILER_FLAGS,
|
contacts = ["emilsj@fb.com"],
|
||||||
deps = [
|
visibility = ["PUBLIC"],
|
||||||
':yoga',
|
deps = [
|
||||||
GTEST_TARGET,
|
":yoga",
|
||||||
],
|
GTEST_TARGET,
|
||||||
visibility = ['PUBLIC'],
|
],
|
||||||
)
|
)
|
||||||
|
84
YogaKit/BUCK
84
YogaKit/BUCK
@@ -5,54 +5,54 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
COMPILER_FLAGS = [
|
COMPILER_FLAGS = [
|
||||||
'-fobjc-arc',
|
"-fobjc-arc",
|
||||||
'-Wconditional-uninitialized',
|
"-Wconditional-uninitialized",
|
||||||
'-Wdangling-else',
|
"-Wdangling-else",
|
||||||
'-Wdeprecated-declarations',
|
"-Wdeprecated-declarations",
|
||||||
'-Wimplicit-retain-self',
|
"-Wimplicit-retain-self",
|
||||||
'-Wincomplete-implementation',
|
"-Wincomplete-implementation",
|
||||||
'-Wobjc-method-access',
|
"-Wobjc-method-access",
|
||||||
'-Wobjc-missing-super-calls',
|
"-Wobjc-missing-super-calls",
|
||||||
'-Wmismatched-return-types',
|
"-Wmismatched-return-types",
|
||||||
'-Wreturn-type',
|
"-Wreturn-type",
|
||||||
'-Wno-global-constructors',
|
"-Wno-global-constructors",
|
||||||
'-Wno-shadow',
|
"-Wno-shadow",
|
||||||
'-Wunused-const-variable',
|
"-Wunused-const-variable",
|
||||||
'-Wunused-function',
|
"-Wunused-function",
|
||||||
'-Wunused-property-ivar',
|
"-Wunused-property-ivar",
|
||||||
'-Wunused-result',
|
"-Wunused-result",
|
||||||
'-Wunused-value',
|
"-Wunused-value",
|
||||||
]
|
]
|
||||||
|
|
||||||
apple_library(
|
apple_library(
|
||||||
name = 'YogaKit',
|
name = "YogaKit",
|
||||||
compiler_flags = COMPILER_FLAGS,
|
srcs = glob(["Source/**/*.m"]),
|
||||||
srcs = glob(['Source/**/*.m']),
|
compiler_flags = COMPILER_FLAGS,
|
||||||
exported_headers = glob(['Source/**/*.h']),
|
exported_headers = glob(["Source/**/*.h"]),
|
||||||
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",
|
||||||
],
|
],
|
||||||
deps = [
|
visibility = ["PUBLIC"],
|
||||||
yoga_dep(':yoga'),
|
deps = [
|
||||||
],
|
yoga_dep(":yoga"),
|
||||||
visibility = ['PUBLIC'],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
apple_test(
|
apple_test(
|
||||||
name = 'YogaKitTests',
|
name = "YogaKitTests",
|
||||||
compiler_flags = COMPILER_FLAGS,
|
srcs = glob(["Tests/**/*.m"]),
|
||||||
info_plist = 'Tests/Info.plist',
|
compiler_flags = COMPILER_FLAGS,
|
||||||
srcs = glob(['Tests/**/*.m']),
|
frameworks = [
|
||||||
frameworks = [
|
"$SDKROOT/System/Library/Frameworks/CoreGraphics.framework",
|
||||||
'$SDKROOT/System/Library/Frameworks/CoreGraphics.framework',
|
"$PLATFORM_DIR/Developer/Library/Frameworks/XCTest.framework",
|
||||||
'$PLATFORM_DIR/Developer/Library/Frameworks/XCTest.framework',
|
],
|
||||||
],
|
info_plist = "Tests/Info.plist",
|
||||||
deps = [
|
visibility = ["PUBLIC"],
|
||||||
':YogaKit',
|
deps = [
|
||||||
],
|
":YogaKit",
|
||||||
visibility = ['PUBLIC'],
|
],
|
||||||
)
|
)
|
||||||
|
40
android/BUCK
40
android/BUCK
@@ -5,32 +5,32 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
android_aar(
|
android_aar(
|
||||||
name = 'android',
|
name = "android",
|
||||||
manifest_skeleton = 'src/main/AndroidManifest.xml',
|
manifest_skeleton = "src/main/AndroidManifest.xml",
|
||||||
deps = [
|
visibility = [
|
||||||
ANDROID_JAVA_TARGET,
|
"PUBLIC",
|
||||||
ANDROID_RES_TARGET,
|
],
|
||||||
INFER_ANNOTATIONS_TARGET,
|
deps = [
|
||||||
JAVA_TARGET,
|
ANDROID_JAVA_TARGET,
|
||||||
PROGRUARD_ANNOTATIONS_TARGET,
|
ANDROID_RES_TARGET,
|
||||||
],
|
INFER_ANNOTATIONS_TARGET,
|
||||||
visibility = [
|
JAVA_TARGET,
|
||||||
'PUBLIC',
|
PROGRUARD_ANNOTATIONS_TARGET,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
android_resource(
|
android_resource(
|
||||||
name = 'res',
|
name = "res",
|
||||||
res = 'src/main/res',
|
package = "com.facebook.yoga.android",
|
||||||
package = 'com.facebook.yoga.android',
|
res = "src/main/res",
|
||||||
visibility = [
|
visibility = [
|
||||||
'PUBLIC',
|
"PUBLIC",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
project_config(
|
project_config(
|
||||||
src_target = ':android',
|
src_target = ":android",
|
||||||
)
|
)
|
||||||
|
@@ -4,36 +4,36 @@
|
|||||||
# This source code is licensed under the license found in the
|
# This source code is licensed under the license found in the
|
||||||
# LICENSE-examples file in the root directory of this source tree.
|
# LICENSE-examples file in the root directory of this source tree.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
android_binary(
|
android_binary(
|
||||||
name = 'sample',
|
name = "sample",
|
||||||
manifest = 'AndroidManifest.xml',
|
keystore = ":debug_keystore",
|
||||||
keystore = ':debug_keystore',
|
manifest = "AndroidManifest.xml",
|
||||||
deps = [
|
deps = [
|
||||||
ANDROID_SAMPLE_JAVA_TARGET,
|
ANDROID_SAMPLE_JAVA_TARGET,
|
||||||
ANDROID_SAMPLE_RES_TARGET,
|
ANDROID_SAMPLE_RES_TARGET,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
android_resource(
|
android_resource(
|
||||||
name = 'res',
|
name = "res",
|
||||||
res = 'res',
|
package = "com.facebook.samples.yoga",
|
||||||
package = 'com.facebook.samples.yoga',
|
res = "res",
|
||||||
deps = [
|
visibility = [
|
||||||
ANDROID_RES_TARGET,
|
"PUBLIC",
|
||||||
],
|
],
|
||||||
visibility = [
|
deps = [
|
||||||
'PUBLIC',
|
ANDROID_RES_TARGET,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
keystore(
|
keystore(
|
||||||
name='debug_keystore',
|
name = "debug_keystore",
|
||||||
store='debug.keystore',
|
properties = "debug.keystore.properties",
|
||||||
properties='debug.keystore.properties',
|
store = "debug.keystore",
|
||||||
)
|
)
|
||||||
|
|
||||||
project_config(
|
project_config(
|
||||||
src_target = ':sample',
|
src_target = ":sample",
|
||||||
)
|
)
|
||||||
|
@@ -5,19 +5,19 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
android_library(
|
android_library(
|
||||||
name = 'yoga',
|
name = "yoga",
|
||||||
srcs = glob(['**/*.java']),
|
srcs = glob(["**/*.java"]),
|
||||||
deps = [
|
visibility = [
|
||||||
ANDROID_JAVA_TARGET,
|
"PUBLIC",
|
||||||
ANDROID_SAMPLE_RES_TARGET,
|
],
|
||||||
ANDROID_SUPPORT_TARGET,
|
deps = [
|
||||||
APPCOMPAT_TARGET,
|
ANDROID_JAVA_TARGET,
|
||||||
SOLOADER_TARGET,
|
ANDROID_SAMPLE_RES_TARGET,
|
||||||
],
|
ANDROID_SUPPORT_TARGET,
|
||||||
visibility = [
|
APPCOMPAT_TARGET,
|
||||||
'PUBLIC',
|
SOLOADER_TARGET,
|
||||||
]
|
],
|
||||||
)
|
)
|
||||||
|
@@ -5,19 +5,19 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
android_library(
|
android_library(
|
||||||
name = 'android',
|
name = "android",
|
||||||
srcs = glob(['**/*.java']),
|
srcs = glob(["**/*.java"]),
|
||||||
deps = [
|
visibility = [
|
||||||
ANDROID_RES_TARGET,
|
"PUBLIC",
|
||||||
INFER_ANNOTATIONS_TARGET,
|
],
|
||||||
JAVA_TARGET,
|
deps = [
|
||||||
JSR_305_TARGET,
|
ANDROID_RES_TARGET,
|
||||||
SOLOADER_TARGET,
|
INFER_ANNOTATIONS_TARGET,
|
||||||
],
|
JAVA_TARGET,
|
||||||
visibility = [
|
JSR_305_TARGET,
|
||||||
'PUBLIC',
|
SOLOADER_TARGET,
|
||||||
]
|
],
|
||||||
)
|
)
|
||||||
|
@@ -5,23 +5,23 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
cxx_binary(
|
cxx_binary(
|
||||||
name = 'benchmark',
|
name = "benchmark",
|
||||||
srcs = glob(['*.c']),
|
srcs = glob(["*.c"]),
|
||||||
headers = subdir_glob([('', '*.h')]),
|
compiler_flags = [
|
||||||
header_namespace = '',
|
"-fno-omit-frame-pointer",
|
||||||
compiler_flags = [
|
"-fexceptions",
|
||||||
'-fno-omit-frame-pointer',
|
"-Wall",
|
||||||
'-fexceptions',
|
"-Werror",
|
||||||
'-Wall',
|
"-O3",
|
||||||
'-Werror',
|
"-std=c11",
|
||||||
'-O3',
|
],
|
||||||
'-std=c11',
|
header_namespace = "",
|
||||||
],
|
headers = subdir_glob([("", "*.h")]),
|
||||||
deps = [
|
visibility = ["PUBLIC"],
|
||||||
yoga_dep(':yoga'),
|
deps = [
|
||||||
],
|
yoga_dep(":yoga"),
|
||||||
visibility = ['PUBLIC'],
|
],
|
||||||
)
|
)
|
||||||
|
36
csharp/BUCK
36
csharp/BUCK
@@ -5,33 +5,33 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
COMPILER_FLAGS = BASE_COMPILER_FLAGS + ['-std=c++11']
|
COMPILER_FLAGS = BASE_COMPILER_FLAGS + ["-std=c++11"]
|
||||||
|
|
||||||
csharp_library(
|
csharp_library(
|
||||||
name = 'yogalibnet46',
|
name = "yogalibnet46",
|
||||||
dll_name = 'Facebook.Yoga.dll',
|
srcs = glob(["**/*.cs"]),
|
||||||
framework_ver = 'net46',
|
dll_name = "Facebook.Yoga.dll",
|
||||||
srcs = glob(['**/*.cs']),
|
framework_ver = "net46",
|
||||||
)
|
)
|
||||||
|
|
||||||
csharp_library(
|
csharp_library(
|
||||||
name = 'yogalibnet45',
|
name = "yogalibnet45",
|
||||||
dll_name = 'Facebook.Yoga.dll',
|
srcs = glob(["**/*.cs"]),
|
||||||
framework_ver = 'net45',
|
dll_name = "Facebook.Yoga.dll",
|
||||||
srcs = glob(['**/*.cs']),
|
framework_ver = "net45",
|
||||||
)
|
)
|
||||||
|
|
||||||
cxx_library(
|
cxx_library(
|
||||||
name = 'yoganet',
|
name = "yoganet",
|
||||||
soname = 'libyoga.$(ext)',
|
srcs = glob(["Yoga/YGInterop.cpp"]),
|
||||||
srcs = glob(['Yoga/YGInterop.cpp']),
|
compiler_flags = COMPILER_FLAGS,
|
||||||
compiler_flags = COMPILER_FLAGS,
|
link_style = "static",
|
||||||
link_style = 'static',
|
link_whole = True,
|
||||||
link_whole = True,
|
soname = "libyoga.$(ext)",
|
||||||
deps = [yoga_dep(':yoga')],
|
visibility = ["PUBLIC"],
|
||||||
visibility = ['PUBLIC'],
|
deps = [yoga_dep(":yoga")],
|
||||||
)
|
)
|
||||||
|
|
||||||
if isdir('/Applications/Xcode.app'):
|
if isdir('/Applications/Xcode.app'):
|
||||||
|
88
java/BUCK
88
java/BUCK
@@ -5,56 +5,56 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
cxx_library(
|
cxx_library(
|
||||||
name = 'jni',
|
name = "jni",
|
||||||
soname = 'libyoga.$(ext)',
|
srcs = glob(["jni/*.cpp"]),
|
||||||
srcs = glob(['jni/*.cpp']),
|
compiler_flags = [
|
||||||
header_namespace = '',
|
"-fno-omit-frame-pointer",
|
||||||
compiler_flags = [
|
"-fexceptions",
|
||||||
'-fno-omit-frame-pointer',
|
"-fPIC",
|
||||||
'-fexceptions',
|
"-Wall",
|
||||||
'-fPIC',
|
"-Werror",
|
||||||
'-Wall',
|
"-O3",
|
||||||
'-Werror',
|
"-std=c++11",
|
||||||
'-O3',
|
],
|
||||||
'-std=c++11',
|
header_namespace = "",
|
||||||
],
|
soname = "libyoga.$(ext)",
|
||||||
deps = [
|
visibility = ["PUBLIC"],
|
||||||
FBJNI_TARGET,
|
deps = [
|
||||||
JNI_TARGET,
|
FBJNI_TARGET,
|
||||||
yoga_dep(':yoga'),
|
JNI_TARGET,
|
||||||
],
|
yoga_dep(":yoga"),
|
||||||
visibility = ['PUBLIC'],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = 'java',
|
name = "java",
|
||||||
srcs = glob(['com/facebook/yoga/*.java']),
|
srcs = glob(["com/facebook/yoga/*.java"]),
|
||||||
tests=[
|
source = "1.7",
|
||||||
yoga_dep('java:tests'),
|
target = "1.7",
|
||||||
],
|
tests = [
|
||||||
source = '1.7',
|
yoga_dep("java:tests"),
|
||||||
target = '1.7',
|
],
|
||||||
deps = [
|
visibility = ["PUBLIC"],
|
||||||
':jni',
|
deps = [
|
||||||
INFER_ANNOTATIONS_TARGET,
|
":jni",
|
||||||
JSR_305_TARGET,
|
INFER_ANNOTATIONS_TARGET,
|
||||||
PROGRUARD_ANNOTATIONS_TARGET,
|
JSR_305_TARGET,
|
||||||
SOLOADER_TARGET,
|
PROGRUARD_ANNOTATIONS_TARGET,
|
||||||
],
|
SOLOADER_TARGET,
|
||||||
visibility = ['PUBLIC'],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
java_test(
|
java_test(
|
||||||
name = 'tests',
|
name = "tests",
|
||||||
srcs = glob(['tests/**/*.java']),
|
srcs = glob(["tests/**/*.java"]),
|
||||||
use_cxx_libraries = True,
|
cxx_library_whitelist = CXX_LIBRARY_WHITELIST,
|
||||||
cxx_library_whitelist = CXX_LIBRARY_WHITELIST,
|
use_cxx_libraries = True,
|
||||||
deps = [
|
visibility = ["PUBLIC"],
|
||||||
':java',
|
deps = [
|
||||||
JUNIT_TARGET,
|
":java",
|
||||||
],
|
JUNIT_TARGET,
|
||||||
visibility = ['PUBLIC'],
|
],
|
||||||
)
|
)
|
||||||
|
@@ -5,13 +5,13 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = 'annotations',
|
name = "annotations",
|
||||||
srcs = glob(['*.java']),
|
srcs = glob(["*.java"]),
|
||||||
source = '1.7',
|
source = "1.7",
|
||||||
target = '1.7',
|
target = "1.7",
|
||||||
deps = [],
|
visibility = [YOGA_ROOT],
|
||||||
visibility = [YOGA_ROOT],
|
deps = [],
|
||||||
)
|
)
|
||||||
|
@@ -5,10 +5,10 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
prebuilt_jar(
|
prebuilt_jar(
|
||||||
name = 'android-support',
|
name = "android-support",
|
||||||
binary_jar = 'android-support-v4.jar',
|
binary_jar = "android-support-v4.jar",
|
||||||
visibility = [YOGA_ROOT],
|
visibility = [YOGA_ROOT],
|
||||||
)
|
)
|
||||||
|
@@ -5,10 +5,10 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
android_prebuilt_aar(
|
android_prebuilt_aar(
|
||||||
name = 'appcompat',
|
name = "appcompat",
|
||||||
aar = 'appcompat-v7-19.1.0.aar',
|
aar = "appcompat-v7-19.1.0.aar",
|
||||||
visibility = [YOGA_ROOT],
|
visibility = [YOGA_ROOT],
|
||||||
)
|
)
|
||||||
|
61
lib/fb/BUCK
61
lib/fb/BUCK
@@ -5,38 +5,41 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
prebuilt_cxx_library(
|
prebuilt_cxx_library(
|
||||||
name = 'ndklog',
|
name = "ndklog",
|
||||||
header_only = True,
|
exported_platform_linker_flags = [
|
||||||
exported_platform_linker_flags = [
|
(
|
||||||
('^android.*', ['-llog']),
|
"^android.*",
|
||||||
],
|
["-llog"],
|
||||||
visibility = [YOGA_ROOT],
|
),
|
||||||
|
],
|
||||||
|
header_only = True,
|
||||||
|
visibility = [YOGA_ROOT],
|
||||||
)
|
)
|
||||||
|
|
||||||
cxx_library(
|
cxx_library(
|
||||||
name = 'fbjni',
|
name = "fbjni",
|
||||||
srcs = glob(['**/*.cpp']),
|
srcs = glob(["**/*.cpp"]),
|
||||||
exported_headers = subdir_glob([('include', '**/*.h')]),
|
compiler_flags = [
|
||||||
header_namespace = '',
|
"-DLOG_TAG=\"libfb\"",
|
||||||
compiler_flags = [
|
"-DDISABLE_CPUCAP",
|
||||||
'-DLOG_TAG=\"libfb\"',
|
"-DDISABLE_XPLAT",
|
||||||
'-DDISABLE_CPUCAP',
|
"-DHAVE_POSIX_CLOCKS",
|
||||||
'-DDISABLE_XPLAT',
|
"-fno-omit-frame-pointer",
|
||||||
'-DHAVE_POSIX_CLOCKS',
|
"-fexceptions",
|
||||||
'-fno-omit-frame-pointer',
|
"-frtti",
|
||||||
'-fexceptions',
|
"-Wall",
|
||||||
'-frtti',
|
"-Werror",
|
||||||
'-Wall',
|
"-Wno-unused-parameter",
|
||||||
'-Werror',
|
"-std=c++11",
|
||||||
'-Wno-unused-parameter',
|
],
|
||||||
'-std=c++11',
|
exported_headers = subdir_glob([("include", "**/*.h")]),
|
||||||
],
|
header_namespace = "",
|
||||||
deps = [
|
visibility = ["PUBLIC"],
|
||||||
':ndklog',
|
deps = [
|
||||||
JNI_TARGET,
|
":ndklog",
|
||||||
],
|
JNI_TARGET,
|
||||||
visibility = ['PUBLIC'],
|
],
|
||||||
)
|
)
|
||||||
|
@@ -5,23 +5,23 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
COMPILER_FLAGS = [
|
COMPILER_FLAGS = [
|
||||||
'-std=c++11',
|
"-std=c++11",
|
||||||
'-Wno-missing-prototypes',
|
"-Wno-missing-prototypes",
|
||||||
]
|
]
|
||||||
|
|
||||||
cxx_library(
|
cxx_library(
|
||||||
name = 'gtest',
|
name = "gtest",
|
||||||
srcs = glob(['googletest/googletest/src/*.cc']),
|
srcs = glob(["googletest/googletest/src/*.cc"]),
|
||||||
exported_headers = subdir_glob([
|
compiler_flags = COMPILER_FLAGS,
|
||||||
('googletest/googletest/include', '**/*.h'),
|
exported_headers = subdir_glob([
|
||||||
('googletest/googletest', 'src/*.h'),
|
("googletest/googletest/include", "**/*.h"),
|
||||||
('googletest/googletest', 'src/*.cc'),
|
("googletest/googletest", "src/*.h"),
|
||||||
]),
|
("googletest/googletest", "src/*.cc"),
|
||||||
header_namespace = '',
|
]),
|
||||||
compiler_flags = COMPILER_FLAGS,
|
header_namespace = "",
|
||||||
deps = [],
|
visibility = [YOGA_ROOT],
|
||||||
visibility = [YOGA_ROOT],
|
deps = [],
|
||||||
)
|
)
|
||||||
|
@@ -5,17 +5,17 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
prebuilt_jar(
|
prebuilt_jar(
|
||||||
name = 'infer-annotations-jar',
|
name = "infer-annotations-jar",
|
||||||
binary_jar = 'infer-annotations-1.4.jar',
|
binary_jar = "infer-annotations-1.4.jar",
|
||||||
)
|
)
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = 'infer-annotations',
|
name = "infer-annotations",
|
||||||
exported_deps = [
|
exported_deps = [
|
||||||
':infer-annotations-jar',
|
":infer-annotations-jar",
|
||||||
],
|
],
|
||||||
visibility = [YOGA_ROOT],
|
visibility = [YOGA_ROOT],
|
||||||
)
|
)
|
||||||
|
16
lib/jni/BUCK
16
lib/jni/BUCK
@@ -6,12 +6,12 @@
|
|||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
cxx_library(
|
cxx_library(
|
||||||
name = 'jni',
|
name = "jni",
|
||||||
force_static = True,
|
exported_headers = [
|
||||||
header_namespace = '',
|
"jni.h",
|
||||||
exported_headers = [
|
"real/jni.h",
|
||||||
'jni.h',
|
],
|
||||||
'real/jni.h',
|
force_static = True,
|
||||||
],
|
header_namespace = "",
|
||||||
visibility = ['PUBLIC'],
|
visibility = ["PUBLIC"],
|
||||||
)
|
)
|
||||||
|
@@ -5,17 +5,17 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
prebuilt_jar(
|
prebuilt_jar(
|
||||||
name = 'jsr305-jar',
|
name = "jsr305-jar",
|
||||||
binary_jar = 'jsr305.jar',
|
binary_jar = "jsr305.jar",
|
||||||
)
|
)
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = 'jsr-305',
|
name = "jsr-305",
|
||||||
exported_deps = [
|
exported_deps = [
|
||||||
':jsr305-jar',
|
":jsr305-jar",
|
||||||
],
|
],
|
||||||
visibility = [YOGA_ROOT],
|
visibility = [YOGA_ROOT],
|
||||||
)
|
)
|
||||||
|
@@ -5,17 +5,17 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
prebuilt_jar(
|
prebuilt_jar(
|
||||||
name = 'junit-jar',
|
name = "junit-jar",
|
||||||
binary_jar = 'junit4.jar',
|
binary_jar = "junit4.jar",
|
||||||
)
|
)
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
name = 'junit',
|
name = "junit",
|
||||||
exported_deps = [
|
exported_deps = [
|
||||||
':junit-jar',
|
":junit-jar",
|
||||||
],
|
],
|
||||||
visibility = [YOGA_ROOT],
|
visibility = [YOGA_ROOT],
|
||||||
)
|
)
|
||||||
|
@@ -5,10 +5,10 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
include_defs('//YOGA_DEFS')
|
include_defs("//YOGA_DEFS")
|
||||||
|
|
||||||
android_prebuilt_aar(
|
android_prebuilt_aar(
|
||||||
name = 'soloader',
|
name = "soloader",
|
||||||
aar = 'soloader-0.1.0.aar',
|
aar = "soloader-0.1.0.aar",
|
||||||
visibility = [YOGA_ROOT],
|
visibility = [YOGA_ROOT],
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user