mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
06b55a3d04
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/34403 This change mirrors D38457812 (https://github.com/facebook/react-native/commit/063c2b4668b279ccbca639f98f7a0a5c4d7c5690) which added -Wpedantic to ReactCommon targets, but for the Android build used by OSS. This should ensure contributors see the same warnings locally as the internal build would produce. Changelog: [Android][Changed] - Enable -Wpedantic in OSS Android Targets Reviewed By: cortinico Differential Revision: D38632454 fbshipit-source-id: 19a036ee3f902eb9d47c568aef448af9d8562358
34 lines
949 B
CMake
34 lines
949 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.13)
|
|
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
|
|
add_compile_options(
|
|
-fexceptions
|
|
-frtti
|
|
-std=c++17
|
|
-Wall
|
|
-Wpedantic
|
|
-Wno-gnu-zero-variadic-macro-arguments
|
|
-DLOG_TAG=\"Fabric\")
|
|
|
|
file(GLOB react_render_templateprocessor_SRC CONFIGURE_DEPENDS *.cpp)
|
|
add_library(react_render_templateprocessor SHARED ${react_render_templateprocessor_SRC})
|
|
|
|
target_include_directories(react_render_templateprocessor PUBLIC ${REACT_COMMON_DIR})
|
|
|
|
target_link_libraries(react_render_templateprocessor
|
|
folly_runtime
|
|
glog
|
|
jsi
|
|
react_config
|
|
react_render_componentregistry
|
|
react_render_core
|
|
react_render_debug
|
|
react_render_uimanager
|
|
react_utils
|
|
)
|