Files
yoga/lib/jni/BUCK
David Aurelio 6e46eec58f Adapt methods for fast calls
Summary:
Changes all possible native JNI methods to critical methods.

For now, this only changes Android up and including v7. In order to be prepared for the `CriticalNative` annotation in Android v8, the following restrictions apply:

- Qualifying methods must be static (this is also enforced for Dalvik / Android v4)
- Method implementations can only consume primitive JNI types (`boolean`, jchar`, etc.)

Reviewed By: priteshrnandgaonkar

Differential Revision: D9943868

fbshipit-source-id: 728817eb37822b717fd3daf94cd9f02b42c17db6
2018-09-25 16:03:16 -07:00

19 lines
490 B
Python

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
load("//tools/build_defs/oss:yoga_defs.bzl", "yoga_cxx_library")
yoga_cxx_library(
name = "jni",
header_namespace = "",
exported_headers = [
"jni.h",
"real/jni.h",
],
force_static = True,
preprocessor_flags = ["-fmacro-backtrace-limit=0"],
visibility = ["PUBLIC"],
)