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