Summary: Several of dependencies and tests in repository are missing (e.g. because we don't support building certain library for MacOSX). Clean up those mistakes. Differential Revision: D7618360 fbshipit-source-id: 421834892519998ad088a138b3fc3d96afe34d79
46 lines
1.1 KiB
Python
46 lines
1.1 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.
|
|
|
|
load("//:yoga_defs.bzl", "yoga_prebuilt_cxx_library", "yoga_cxx_library", "YOGA_ROOTS", "FBJNI_JAVA_TARGET", "JNI_TARGET")
|
|
|
|
yoga_prebuilt_cxx_library(
|
|
name = "ndklog",
|
|
exported_platform_linker_flags = [
|
|
(
|
|
"^android.*",
|
|
["-llog"],
|
|
),
|
|
],
|
|
header_only = True,
|
|
visibility = YOGA_ROOTS,
|
|
)
|
|
|
|
yoga_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",
|
|
],
|
|
platforms = (ANDROID,),
|
|
visibility = ["PUBLIC"],
|
|
deps = [
|
|
":ndklog",
|
|
FBJNI_JAVA_TARGET,
|
|
JNI_TARGET,
|
|
],
|
|
)
|