Manual resync of moved fbjni files
This commit is contained in:
27
lib/fb/build.gradle
Normal file
27
lib/fb/build.gradle
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdkVersion rootProject.compileSdkVersion
|
||||||
|
buildToolsVersion rootProject.buildToolsVersion
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
minSdkVersion rootProject.minSdkVersion
|
||||||
|
targetSdkVersion rootProject.targetSdkVersion
|
||||||
|
|
||||||
|
ndk {
|
||||||
|
abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'arm64-v8a'
|
||||||
|
}
|
||||||
|
|
||||||
|
externalNativeBuild {
|
||||||
|
cmake {
|
||||||
|
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
externalNativeBuild {
|
||||||
|
cmake {
|
||||||
|
path 'src/main/cpp/CMakeLists.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
14
lib/fb/src/main/AndroidManifest.xml
Normal file
14
lib/fb/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.facebook.libfb">
|
||||||
|
</manifest>
|
33
lib/fb/src/main/cpp/CMakeLists.txt
Normal file
33
lib/fb/src/main/cpp/CMakeLists.txt
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.4.1)
|
||||||
|
|
||||||
|
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||||
|
|
||||||
|
add_compile_options(
|
||||||
|
-fno-omit-frame-pointer
|
||||||
|
-fexceptions
|
||||||
|
-Wall
|
||||||
|
-std=c++11
|
||||||
|
-DDISABLE_CPUCAP
|
||||||
|
-DDISABLE_XPLAT)
|
||||||
|
|
||||||
|
file(GLOB fb_SRC
|
||||||
|
*.cpp
|
||||||
|
jni/*.cpp
|
||||||
|
lyra/*.cpp)
|
||||||
|
|
||||||
|
add_library(fb SHARED
|
||||||
|
${fb_SRC})
|
||||||
|
|
||||||
|
target_include_directories(fb PRIVATE
|
||||||
|
include)
|
||||||
|
|
||||||
|
target_link_libraries(fb android log)
|
Reference in New Issue
Block a user