2018-09-11 15:27:47 -07:00
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
2016-08-31 05:04:02 -07:00
|
|
|
#
|
2018-02-16 18:24:55 -08:00
|
|
|
# This source code is licensed under the MIT license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree.
|
2018-08-28 21:54:41 -07:00
|
|
|
load("//tools/build_defs/oss:yoga_defs.bzl", "ANDROID", "FBJNI_JAVA_TARGET", "JNI_TARGET", "YOGA_ROOTS", "subdir_glob", "yoga_cxx_library", "yoga_prebuilt_cxx_library")
|
2016-08-31 05:04:02 -07:00
|
|
|
|
2018-04-14 12:39:23 -07:00
|
|
|
yoga_prebuilt_cxx_library(
|
2017-02-24 21:40:45 -08:00
|
|
|
name = "ndklog",
|
|
|
|
exported_platform_linker_flags = [
|
|
|
|
(
|
|
|
|
"^android.*",
|
|
|
|
["-llog"],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
header_only = True,
|
2017-03-16 10:40:58 -07:00
|
|
|
visibility = YOGA_ROOTS,
|
2016-08-31 05:04:02 -07:00
|
|
|
)
|
|
|
|
|
2018-04-14 12:39:23 -07:00
|
|
|
yoga_cxx_library(
|
2017-02-24 21:40:45 -08:00
|
|
|
name = "fbjni",
|
2017-04-19 11:28:14 -07:00
|
|
|
srcs = glob(["src/main/cpp/**/*.cpp"]),
|
2017-09-22 13:14:42 -07:00
|
|
|
header_namespace = "",
|
|
|
|
exported_headers = subdir_glob([("src/main/cpp/include", "**/*.h")]),
|
2017-02-24 21:40:45 -08:00
|
|
|
compiler_flags = [
|
|
|
|
"-DLOG_TAG=\"libfb\"",
|
|
|
|
"-DDISABLE_CPUCAP",
|
|
|
|
"-DDISABLE_XPLAT",
|
|
|
|
"-DHAVE_POSIX_CLOCKS",
|
|
|
|
"-fno-omit-frame-pointer",
|
|
|
|
"-fexceptions",
|
|
|
|
"-frtti",
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
"-Wno-unused-parameter",
|
2019-03-16 02:21:26 -07:00
|
|
|
"-std=c++14",
|
2017-02-24 21:40:45 -08:00
|
|
|
],
|
2018-04-14 13:04:28 -07:00
|
|
|
platforms = (ANDROID,),
|
2017-02-24 21:40:45 -08:00
|
|
|
visibility = ["PUBLIC"],
|
|
|
|
deps = [
|
|
|
|
":ndklog",
|
2017-04-26 07:29:50 -07:00
|
|
|
FBJNI_JAVA_TARGET,
|
2017-02-24 21:40:45 -08:00
|
|
|
JNI_TARGET,
|
|
|
|
],
|
2016-08-31 05:04:02 -07:00
|
|
|
)
|