Use the latest fbjni

This commit is contained in:
Pritesh Nandgaonkar
2018-06-15 15:55:10 +01:00
parent f4b76a3688
commit 72045da4be
115 changed files with 3444 additions and 3784 deletions

41
libs/fbjni/CMakeLists.txt Normal file
View File

@@ -0,0 +1,41 @@
#
# 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.
#
cmake_minimum_required(VERSION 3.6.0)
set(CMAKE_VERBOSE_MAKEFILE on)
add_compile_options(
-fno-omit-frame-pointer
-fexceptions
-Wall
-std=c++11
-DDISABLE_CPUCAP
-DDISABLE_XPLAT)
set(FBJNI_CXX ${PROJECT_SOURCE_DIR}/cxx)
list(APPEND FBJNI_HDRS ${FBJNI_CXX})
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/fbjni/)
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/fbjni/detail)
list(APPEND FBJNI_HDRS ${FBJNI_CXX}/lyra)
include_directories(${FBJNI_HDRS})
message(STATUS "FBJNI_HDRS =>" ${FBJNI_HDRS})
file(GLOB FBJNI_SRC
${FBJNI_CXX}/fbjni/*.cpp
${FBJNI_CXX}/fbjni/detail/*.cpp
${FBJNI_CXX}/lyra/*.cpp)
add_library(fb SHARED
${FBJNI_SRC})
#target_include_directories(fb PRIVATE
# include ${libjnihack_DIR})
target_link_libraries(fb log)