Use the latest fbjni
This commit is contained in:
41
libs/fbjni/CMakeLists.txt
Normal file
41
libs/fbjni/CMakeLists.txt
Normal 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)
|
||||
Reference in New Issue
Block a user