Initial commit 🎉
fbshipit-source-id: b6fc29740c6875d2e78953b8a7123890a67930f2 Co-authored-by: Sebastian McKenzie <sebmck@fb.com> Co-authored-by: John Knox <jknox@fb.com> Co-authored-by: Emil Sjölander <emilsj@fb.com> Co-authored-by: Pritesh Nandgaonkar <prit91@fb.com>
This commit is contained in:
1
libs/jni-hack/README.md
Normal file
1
libs/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.
|
||||
14
libs/jni-hack/jni.h
Normal file
14
libs/jni-hack/jni.h
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifdef __ANDROID__
|
||||
#include_next <jni.h>
|
||||
#else
|
||||
#include "real/jni.h"
|
||||
#endif
|
||||
1132
libs/jni-hack/real/jni.h
Normal file
1132
libs/jni-hack/real/jni.h
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user