From 7933dd78daed84581f3013c0a8e0130b6fdf81f9 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 5 Dec 2022 03:27:37 -0800 Subject: [PATCH] Remove .mk prebuilt file and .mk file generation from codegen (#35540) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35540 We now don't need to generate .mk files anymore, therefore I'm removing this logic from the codegen. In RN 0.72 users should be fully migrated to CMake. Changelog: [Android] [Removed] - Remove .mk prebuilt file and .mk file generation from codegen Reviewed By: rshest Differential Revision: D41654122 fbshipit-source-id: 3a3c01fa8ab4d48460338e1a9ce2ecbd6df25f47 --- ReactAndroid/Android-prebuilt.mk | 211 ----------------- .../generators/modules/GenerateModuleJniH.js | 52 ----- .../GenerateModuleJniH-test.js.snap | 216 ------------------ 3 files changed, 479 deletions(-) delete mode 100644 ReactAndroid/Android-prebuilt.mk diff --git a/ReactAndroid/Android-prebuilt.mk b/ReactAndroid/Android-prebuilt.mk deleted file mode 100644 index 48dd794a479922..00000000000000 --- a/ReactAndroid/Android-prebuilt.mk +++ /dev/null @@ -1,211 +0,0 @@ -# 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. - -# This configuration provides access to most common React Native prebuilt .so files -# to avoid recompiling each of the libraries outside of ReactAndroid NDK compilation. -# Hosting app's/library's Android.mk can include this Android-prebuilt.mk file to -# get access to those libraries to depend on. -# NOTES: -# * Currently, it assumes building React Native from source. -# * Not every .so is listed here (yet). -# * Static libs are not covered here (yet). - -LOCAL_PATH := $(call my-dir) - -FIRST_PARTY_NDK_DIR := $(REACT_ANDROID_DIR)/src/main/jni/first-party -THIRD_PARTY_NDK_DIR := $(REACT_ANDROID_BUILD_DIR)/third-party-ndk -REACT_ANDROID_SRC_DIR := $(REACT_ANDROID_DIR)/src/main -REACT_COMMON_DIR := $(REACT_ANDROID_DIR)/../ReactCommon -REACT_GENERATED_SRC_DIR := $(REACT_ANDROID_BUILD_DIR)/generated/source -# Note: this have only .so files -REACT_NDK_EXPORT_DIR := $(PROJECT_BUILD_DIR)/react-ndk/exported - -# fb -include $(CLEAR_VARS) -LOCAL_MODULE := fb -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libfb.so -LOCAL_EXPORT_C_INCLUDES := $(FIRST_PARTY_NDK_DIR)/fb/include -include $(PREBUILT_SHARED_LIBRARY) - -# folly_runtime -include $(CLEAR_VARS) -LOCAL_MODULE := folly_runtime -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libfolly_runtime.so -LOCAL_EXPORT_C_INCLUDES := \ - $(THIRD_PARTY_NDK_DIR)/boost/boost_1_76_0 \ - $(THIRD_PARTY_NDK_DIR)/double-conversion \ - $(THIRD_PARTY_NDK_DIR)/folly -# Note: Sync with folly/Android.mk. -FOLLY_FLAGS := \ - -DFOLLY_NO_CONFIG=1 \ - -DFOLLY_HAVE_CLOCK_GETTIME=1 \ - -DFOLLY_HAVE_MEMRCHR=1 \ - -DFOLLY_USE_LIBCPP=1 \ - -DFOLLY_MOBILE=1 \ - -DFOLLY_HAVE_XSI_STRERROR_R=1 -LOCAL_CFLAGS += $(FOLLY_FLAGS) -LOCAL_EXPORT_CPPFLAGS := $(FOLLY_FLAGS) -include $(PREBUILT_SHARED_LIBRARY) - -# glog -include $(CLEAR_VARS) -LOCAL_MODULE := glog -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libglog.so -LOCAL_EXPORT_C_INCLUDES := $(THIRD_PARTY_NDK_DIR)/glog/exported -LOCAL_SHARED_LIBRARIES := libglog -include $(PREBUILT_SHARED_LIBRARY) - -# yoga -include $(CLEAR_VARS) -LOCAL_MODULE := yoga -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libyoga.so -LOCAL_EXPORT_C_INCLUDES := \ - $(FIRST_PARTY_NDK_DIR)/yogajni/jni \ - $(REACT_COMMON_DIR)/yoga -# Note: Sync with yogajni/Android.mk -LOCAL_CFLAGS += -fvisibility=hidden -fexceptions -frtti -O3 -LOCAL_LDLIBS += -landroid -llog -include $(PREBUILT_SHARED_LIBRARY) - -# react_nativemodule_core -include $(CLEAR_VARS) -LOCAL_MODULE := react_nativemodule_core -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libreact_nativemodule_core.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_ANDROID_SRC_DIR)/jni \ - $(REACT_COMMON_DIR) \ - $(REACT_COMMON_DIR)/callinvoker \ - $(REACT_COMMON_DIR)/jsi \ - $(REACT_COMMON_DIR)/react/nativemodule/core \ - $(REACT_COMMON_DIR)/react/nativemodule/core/platform/android -LOCAL_SHARED_LIBRARIES := libfolly_runtime -include $(PREBUILT_SHARED_LIBRARY) - -# turbomodulejsijni -include $(CLEAR_VARS) -LOCAL_MODULE := turbomodulejsijni -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libturbomodulejsijni.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_ANDROID_SRC_DIR)/jni/react/turbomodule -include $(PREBUILT_SHARED_LIBRARY) - -# react_render_core -include $(CLEAR_VARS) -LOCAL_MODULE := react_render_core -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libreact_render_core.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_COMMON_DIR) \ - $(REACT_COMMON_DIR)/react/renderer/core -include $(PREBUILT_SHARED_LIBRARY) - -# react_render_debug -include $(CLEAR_VARS) -LOCAL_MODULE := react_render_debug -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libreact_render_debug.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_COMMON_DIR)/react/renderer/debug -include $(PREBUILT_SHARED_LIBRARY) - -# react_debug -include $(CLEAR_VARS) -LOCAL_MODULE := react_debug -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libreact_debug.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_COMMON_DIR)/react/debug -LOCAL_SHARED_LIBRARIES := libfolly_runtime -include $(PREBUILT_SHARED_LIBRARY) - -# react_render_graphics -include $(CLEAR_VARS) -LOCAL_MODULE := react_render_graphics -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libreact_render_graphics.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_COMMON_DIR)/react/renderer/graphics \ - $(REACT_COMMON_DIR)/react/renderer/graphics/platform/cxx -include $(PREBUILT_SHARED_LIBRARY) - -# react_render_imagemanager -include $(CLEAR_VARS) -LOCAL_MODULE := react_render_imagemanager -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libreact_render_imagemanager.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_COMMON_DIR)/react/renderer/imagemanager \ - $(REACT_COMMON_DIR)/react/renderer/imagemanager/platform/cxx -include $(PREBUILT_SHARED_LIBRARY) - -# react_render_mounting -include $(CLEAR_VARS) -LOCAL_MODULE := react_render_mounting -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libreact_render_mounting.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_COMMON_DIR)/react/renderer/mounting -include $(PREBUILT_SHARED_LIBRARY) - -# react_render_mapbuffer -include $(CLEAR_VARS) -LOCAL_MODULE := react_render_mapbuffer -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libreact_render_mapbuffer.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_COMMON_DIR)/react/renderer/mapbuffer -include $(PREBUILT_SHARED_LIBRARY) - -# rrc_view -include $(CLEAR_VARS) -LOCAL_MODULE := rrc_view -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/librrc_view.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_COMMON_DIR)/react/renderer/components/view -include $(PREBUILT_SHARED_LIBRARY) - -# fabricjni -include $(CLEAR_VARS) -LOCAL_MODULE := fabricjni -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libfabricjni.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_ANDROID_SRC_DIR)/jni/react/fabricjni -include $(PREBUILT_SHARED_LIBRARY) - -# react_render_componentregistry -include $(CLEAR_VARS) -LOCAL_MODULE := react_render_componentregistry -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libreact_render_componentregistry.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_COMMON_DIR)/react/renderer/componentregistry -include $(PREBUILT_SHARED_LIBRARY) - -# react_newarchdefaults -include $(CLEAR_VARS) -LOCAL_MODULE := react_newarchdefaults -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libreact_newarchdefaults.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_ANDROID_SRC_DIR)/jni/react/newarchdefaults -include $(PREBUILT_SHARED_LIBRARY) - -# jsi -include $(CLEAR_VARS) -LOCAL_MODULE := jsi -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libjsi.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_COMMON_DIR)/jsi -include $(PREBUILT_SHARED_LIBRARY) - -# react_codegen_rncore -include $(CLEAR_VARS) -LOCAL_MODULE := react_codegen_rncore -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libreact_codegen_rncore.so -LOCAL_EXPORT_C_INCLUDES := \ - $(REACT_GENERATED_SRC_DIR)/codegen/jni -include $(PREBUILT_SHARED_LIBRARY) - -# runtimeexecutor -include $(CLEAR_VARS) -LOCAL_MODULE := runtimeexecutor -LOCAL_SRC_FILES := $(REACT_NDK_EXPORT_DIR)/$(TARGET_ARCH_ABI)/libruntimeexecutor.so -LOCAL_C_INCLUDES := $(REACT_COMMON_DIR)/runtimeexecutor -LOCAL_EXPORT_C_INCLUDES := $(REACT_COMMON_DIR)/runtimeexecutor -include $(PREBUILT_SHARED_LIBRARY) - -# fbjni -include $(FIRST_PARTY_NDK_DIR)/fbjni/Android.mk diff --git a/packages/react-native-codegen/src/generators/modules/GenerateModuleJniH.js b/packages/react-native-codegen/src/generators/modules/GenerateModuleJniH.js index bdedd8615a99b0..836c8184351012 100644 --- a/packages/react-native-codegen/src/generators/modules/GenerateModuleJniH.js +++ b/packages/react-native-codegen/src/generators/modules/GenerateModuleJniH.js @@ -62,52 +62,6 @@ std::shared_ptr ${libraryName}_ModuleProvider(const std::string &mo `; }; -// Note: this Android.mk template includes dependencies for both NativeModule and components. -const AndroidMkTemplate = ({libraryName}: $ReadOnly<{libraryName: string}>) => { - return `# 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := react_codegen_${libraryName} - -LOCAL_C_INCLUDES := $(LOCAL_PATH) - -LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) $(wildcard $(LOCAL_PATH)/react/renderer/components/${libraryName}/*.cpp) -LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES)) - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/react/renderer/components/${libraryName} - -LOCAL_SHARED_LIBRARIES := libfbjni \ - libfolly_runtime \ - libglog \ - libjsi \ - libreact_codegen_rncore \ - libreact_debug \ - libreact_nativemodule_core \ - libreact_render_core \ - libreact_render_debug \ - libreact_render_graphics \ - libreact_render_imagemanager \ - libreact_render_mapbuffer \ - librrc_image \ - librrc_view \ - libturbomodulejsijni \ - libyoga - -LOCAL_CFLAGS := \\ - -DLOG_TAG=\\"ReactNative\\" - -LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall - -include $(BUILD_SHARED_LIBRARY) -`; -}; - // Note: this CMakeLists.txt template includes dependencies for both NativeModule and components. const CMakeListsTemplate = ({ libraryName, @@ -188,12 +142,6 @@ module.exports = { }); return new Map([ [`jni/${fileName}`, replacedTemplate], - [ - 'jni/Android.mk', - AndroidMkTemplate({ - libraryName: libraryName, - }), - ], ['jni/CMakeLists.txt', CMakeListsTemplate({libraryName: libraryName})], ]); }, diff --git a/packages/react-native-codegen/src/generators/modules/__tests__/__snapshots__/GenerateModuleJniH-test.js.snap b/packages/react-native-codegen/src/generators/modules/__tests__/__snapshots__/GenerateModuleJniH-test.js.snap index 26467d5eb84169..b4adb4aa436416 100644 --- a/packages/react-native-codegen/src/generators/modules/__tests__/__snapshots__/GenerateModuleJniH-test.js.snap +++ b/packages/react-native-codegen/src/generators/modules/__tests__/__snapshots__/GenerateModuleJniH-test.js.snap @@ -35,33 +35,6 @@ std::shared_ptr SampleWithUppercaseName_ModuleProvider(const std::s } // namespace react } // namespace facebook -", - "jni/Android.mk" => "# 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := react_codegen_SampleWithUppercaseName - -LOCAL_C_INCLUDES := $(LOCAL_PATH) - -LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) $(wildcard $(LOCAL_PATH)/react/renderer/components/SampleWithUppercaseName/*.cpp) -LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES)) - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/react/renderer/components/SampleWithUppercaseName - -LOCAL_SHARED_LIBRARIES := libfbjni libfolly_runtime libglog libjsi libreact_codegen_rncore libreact_debug libreact_nativemodule_core libreact_render_core libreact_render_debug libreact_render_graphics libreact_render_imagemanager libreact_render_mapbuffer librrc_image librrc_view libturbomodulejsijni libyoga - -LOCAL_CFLAGS := \\\\ - -DLOG_TAG=\\\\\\"ReactNative\\\\\\" - -LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall - -include $(BUILD_SHARED_LIBRARY) ", "jni/CMakeLists.txt" => "# Copyright (c) Meta Platforms, Inc. and affiliates. # @@ -148,33 +121,6 @@ std::shared_ptr complex_objects_ModuleProvider(const std::string &m } // namespace react } // namespace facebook -", - "jni/Android.mk" => "# 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := react_codegen_complex_objects - -LOCAL_C_INCLUDES := $(LOCAL_PATH) - -LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) $(wildcard $(LOCAL_PATH)/react/renderer/components/complex_objects/*.cpp) -LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES)) - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/react/renderer/components/complex_objects - -LOCAL_SHARED_LIBRARIES := libfbjni libfolly_runtime libglog libjsi libreact_codegen_rncore libreact_debug libreact_nativemodule_core libreact_render_core libreact_render_debug libreact_render_graphics libreact_render_imagemanager libreact_render_mapbuffer librrc_image librrc_view libturbomodulejsijni libyoga - -LOCAL_CFLAGS := \\\\ - -DLOG_TAG=\\\\\\"ReactNative\\\\\\" - -LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall - -include $(BUILD_SHARED_LIBRARY) ", "jni/CMakeLists.txt" => "# Copyright (c) Meta Platforms, Inc. and affiliates. # @@ -254,33 +200,6 @@ std::shared_ptr cxx_only_native_modules_ModuleProvider(const std::s } // namespace react } // namespace facebook -", - "jni/Android.mk" => "# 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := react_codegen_cxx_only_native_modules - -LOCAL_C_INCLUDES := $(LOCAL_PATH) - -LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) $(wildcard $(LOCAL_PATH)/react/renderer/components/cxx_only_native_modules/*.cpp) -LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES)) - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/react/renderer/components/cxx_only_native_modules - -LOCAL_SHARED_LIBRARIES := libfbjni libfolly_runtime libglog libjsi libreact_codegen_rncore libreact_debug libreact_nativemodule_core libreact_render_core libreact_render_debug libreact_render_graphics libreact_render_imagemanager libreact_render_mapbuffer librrc_image librrc_view libturbomodulejsijni libyoga - -LOCAL_CFLAGS := \\\\ - -DLOG_TAG=\\\\\\"ReactNative\\\\\\" - -LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall - -include $(BUILD_SHARED_LIBRARY) ", "jni/CMakeLists.txt" => "# Copyright (c) Meta Platforms, Inc. and affiliates. # @@ -367,33 +286,6 @@ std::shared_ptr empty_native_modules_ModuleProvider(const std::stri } // namespace react } // namespace facebook -", - "jni/Android.mk" => "# 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := react_codegen_empty_native_modules - -LOCAL_C_INCLUDES := $(LOCAL_PATH) - -LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) $(wildcard $(LOCAL_PATH)/react/renderer/components/empty_native_modules/*.cpp) -LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES)) - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/react/renderer/components/empty_native_modules - -LOCAL_SHARED_LIBRARIES := libfbjni libfolly_runtime libglog libjsi libreact_codegen_rncore libreact_debug libreact_nativemodule_core libreact_render_core libreact_render_debug libreact_render_graphics libreact_render_imagemanager libreact_render_mapbuffer librrc_image librrc_view libturbomodulejsijni libyoga - -LOCAL_CFLAGS := \\\\ - -DLOG_TAG=\\\\\\"ReactNative\\\\\\" - -LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall - -include $(BUILD_SHARED_LIBRARY) ", "jni/CMakeLists.txt" => "# Copyright (c) Meta Platforms, Inc. and affiliates. # @@ -480,33 +372,6 @@ std::shared_ptr native_modules_with_type_aliases_ModuleProvider(con } // namespace react } // namespace facebook -", - "jni/Android.mk" => "# 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := react_codegen_native_modules_with_type_aliases - -LOCAL_C_INCLUDES := $(LOCAL_PATH) - -LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) $(wildcard $(LOCAL_PATH)/react/renderer/components/native_modules_with_type_aliases/*.cpp) -LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES)) - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/react/renderer/components/native_modules_with_type_aliases - -LOCAL_SHARED_LIBRARIES := libfbjni libfolly_runtime libglog libjsi libreact_codegen_rncore libreact_debug libreact_nativemodule_core libreact_render_core libreact_render_debug libreact_render_graphics libreact_render_imagemanager libreact_render_mapbuffer librrc_image librrc_view libturbomodulejsijni libyoga - -LOCAL_CFLAGS := \\\\ - -DLOG_TAG=\\\\\\"ReactNative\\\\\\" - -LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall - -include $(BUILD_SHARED_LIBRARY) ", "jni/CMakeLists.txt" => "# Copyright (c) Meta Platforms, Inc. and affiliates. # @@ -601,33 +466,6 @@ std::shared_ptr real_module_example_ModuleProvider(const std::strin } // namespace react } // namespace facebook -", - "jni/Android.mk" => "# 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := react_codegen_real_module_example - -LOCAL_C_INCLUDES := $(LOCAL_PATH) - -LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) $(wildcard $(LOCAL_PATH)/react/renderer/components/real_module_example/*.cpp) -LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES)) - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/react/renderer/components/real_module_example - -LOCAL_SHARED_LIBRARIES := libfbjni libfolly_runtime libglog libjsi libreact_codegen_rncore libreact_debug libreact_nativemodule_core libreact_render_core libreact_render_debug libreact_render_graphics libreact_render_imagemanager libreact_render_mapbuffer librrc_image librrc_view libturbomodulejsijni libyoga - -LOCAL_CFLAGS := \\\\ - -DLOG_TAG=\\\\\\"ReactNative\\\\\\" - -LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall - -include $(BUILD_SHARED_LIBRARY) ", "jni/CMakeLists.txt" => "# Copyright (c) Meta Platforms, Inc. and affiliates. # @@ -714,33 +552,6 @@ std::shared_ptr simple_native_modules_ModuleProvider(const std::str } // namespace react } // namespace facebook -", - "jni/Android.mk" => "# 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := react_codegen_simple_native_modules - -LOCAL_C_INCLUDES := $(LOCAL_PATH) - -LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) $(wildcard $(LOCAL_PATH)/react/renderer/components/simple_native_modules/*.cpp) -LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES)) - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/react/renderer/components/simple_native_modules - -LOCAL_SHARED_LIBRARIES := libfbjni libfolly_runtime libglog libjsi libreact_codegen_rncore libreact_debug libreact_nativemodule_core libreact_render_core libreact_render_debug libreact_render_graphics libreact_render_imagemanager libreact_render_mapbuffer librrc_image librrc_view libturbomodulejsijni libyoga - -LOCAL_CFLAGS := \\\\ - -DLOG_TAG=\\\\\\"ReactNative\\\\\\" - -LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall - -include $(BUILD_SHARED_LIBRARY) ", "jni/CMakeLists.txt" => "# Copyright (c) Meta Platforms, Inc. and affiliates. # @@ -835,33 +646,6 @@ std::shared_ptr two_modules_different_files_ModuleProvider(const st } // namespace react } // namespace facebook -", - "jni/Android.mk" => "# 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. - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := react_codegen_two_modules_different_files - -LOCAL_C_INCLUDES := $(LOCAL_PATH) - -LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) $(wildcard $(LOCAL_PATH)/react/renderer/components/two_modules_different_files/*.cpp) -LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES)) - -LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/react/renderer/components/two_modules_different_files - -LOCAL_SHARED_LIBRARIES := libfbjni libfolly_runtime libglog libjsi libreact_codegen_rncore libreact_debug libreact_nativemodule_core libreact_render_core libreact_render_debug libreact_render_graphics libreact_render_imagemanager libreact_render_mapbuffer librrc_image librrc_view libturbomodulejsijni libyoga - -LOCAL_CFLAGS := \\\\ - -DLOG_TAG=\\\\\\"ReactNative\\\\\\" - -LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall - -include $(BUILD_SHARED_LIBRARY) ", "jni/CMakeLists.txt" => "# Copyright (c) Meta Platforms, Inc. and affiliates. #