mirror of
https://github.com/status-im/react-native.git
synced 2025-02-27 00:20:31 +00:00
Add jni-hack to RN OSS
Summary: See committed README.md. This is part of the migration to the jni implementation of CSSLayout. Reviewed By: emilsjolander Differential Revision: D4177009 fbshipit-source-id: f1860f5d4ffafa1375a9658227e0ac10b7df4845
This commit is contained in:
parent
72157cf991
commit
7cf27cfea6
17
ReactAndroid/src/main/jni/first-party/jni-hack/BUCK
Normal file
17
ReactAndroid/src/main/jni/first-party/jni-hack/BUCK
Normal file
@ -0,0 +1,17 @@
|
||||
# Copyright (c) 2014-present, Facebook, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD-style license found in the
|
||||
# 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.
|
||||
|
||||
cxx_library(
|
||||
name = 'jni-hack',
|
||||
force_static = True,
|
||||
header_namespace = '',
|
||||
exported_headers = [
|
||||
'jni.h',
|
||||
'real/jni.h',
|
||||
],
|
||||
visibility = ['PUBLIC'],
|
||||
)
|
1
ReactAndroid/src/main/jni/first-party/jni-hack/README.md
Normal file
1
ReactAndroid/src/main/jni/first-party/jni-hack/README.md
Normal file
@ -0,0 +1 @@
|
||||
This buck module exists so that targets that need to be built against both 1) Android (where we can and should use the Android NDK jni headers) and 2) the host platform(generally for local unit tests) can depend on a single target and get the right jni header for whatever platform they're building against automatically.
|
16
ReactAndroid/src/main/jni/first-party/jni-hack/jni.h
Normal file
16
ReactAndroid/src/main/jni/first-party/jni-hack/jni.h
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __ANDROID__
|
||||
#include_next <jni.h>
|
||||
#else
|
||||
#include "real/jni.h"
|
||||
#endif
|
1141
ReactAndroid/src/main/jni/first-party/jni-hack/real/jni.h
Normal file
1141
ReactAndroid/src/main/jni/first-party/jni-hack/real/jni.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user