Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/927 When D16220924 brought a new fbjni copy (with new directories), we forgot to fix the cmake files which are used by gradle build system. Reviewed By: SidharthGuglani Differential Revision: D17367160 fbshipit-source-id: 3e7d20d4c53ff3012a164bf6e32f1000ecb3ffc2
33 lines
594 B
CMake
33 lines
594 B
CMake
#
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# 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.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
|
|
jni/detail/*.cpp
|
|
lyra/*.cpp)
|
|
|
|
add_library(fb SHARED
|
|
${fb_SRC})
|
|
|
|
target_include_directories(fb PRIVATE
|
|
include)
|
|
|
|
target_link_libraries(fb android log)
|