Summary: Includes React Native and its dependencies Fresco, Metro, and Yoga. Excludes samples/examples/docs. find: ^(?:( *)|( *(?:[\*~#]|::))( )? *)?Copyright (?:\(c\) )?(\d{4})\b.+Facebook[\s\S]+?BSD[\s\S]+?(?:this source tree|the same directory)\.$ replace: $1$2$3Copyright (c) $4-present, Facebook, Inc.\n$2\n$1$2$3This source code is licensed under the MIT license found in the\n$1$2$3LICENSE file in the root directory of this source tree. Reviewed By: TheSavior, yungsters Differential Revision: D7007050 fbshipit-source-id: 37dd6bf0ffec0923bfc99c260bb330683f35553e
45 lines
1.0 KiB
Python
45 lines
1.0 KiB
Python
# Copyright (c) 2014-present, Facebook, Inc.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
include_defs("//yoga_defs.bzl")
|
|
|
|
prebuilt_cxx_library(
|
|
name = "ndklog",
|
|
exported_platform_linker_flags = [
|
|
(
|
|
"^android.*",
|
|
["-llog"],
|
|
),
|
|
],
|
|
header_only = True,
|
|
visibility = YOGA_ROOTS,
|
|
)
|
|
|
|
cxx_library(
|
|
name = "fbjni",
|
|
srcs = glob(["src/main/cpp/**/*.cpp"]),
|
|
header_namespace = "",
|
|
exported_headers = subdir_glob([("src/main/cpp/include", "**/*.h")]),
|
|
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",
|
|
],
|
|
visibility = ["PUBLIC"],
|
|
deps = [
|
|
":ndklog",
|
|
FBJNI_JAVA_TARGET,
|
|
JNI_TARGET,
|
|
],
|
|
)
|