mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b676ca560d
Summary: This is the first round of CMake files to support the React Native build on Android. They're supposed to eventually replace the various Android.mk files we have around in the codebase. So far we're not actively using them. This is the first step towards migrating our setup to use CMake Changelog: [Internal] [Changed] - First Round of CMake files for React Android Reviewed By: ShikaSD Differential Revision: D34762524 fbshipit-source-id: 6671e203a2c83b8874cefe796aa55aa987902a3b
37 lines
930 B
CMake
37 lines
930 B
CMake
# Copyright (c) Meta Platforms, Inc. and 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(-fexceptions -frtti -std=c++17 -Wall -DLOG_TAG=\"Fabric\")
|
|
|
|
add_library(
|
|
react_render_attributedstring
|
|
SHARED
|
|
AttributedString.cpp
|
|
AttributedStringBox.cpp
|
|
ParagraphAttributes.cpp
|
|
TextAttributes.cpp
|
|
)
|
|
|
|
target_include_directories(react_render_attributedstring PUBLIC ${REACT_COMMON_DIR})
|
|
|
|
target_link_libraries(react_render_attributedstring
|
|
butter
|
|
folly_futures
|
|
folly_json
|
|
glog
|
|
glog_init
|
|
react_debug
|
|
react_render_core
|
|
react_render_debug
|
|
react_render_graphics
|
|
react_render_mapbuffer
|
|
react_utils
|
|
rrc_view
|
|
yoga
|
|
)
|