Skip to content

Commit

Permalink
Expose rrc_image to consuming builds
Browse files Browse the repository at this point in the history
Summary:
This change will expose the rrc_image module to be consumed via Prefab by user projects. This is needed as part of a change of the codegen to support custom states.

Changelog:
[Internal] [Changed] - Expose rrc_image to consuming build

Reviewed By: cipolleschi

Differential Revision: D40098541

fbshipit-source-id: 2e07d8b19f53ba93920009603c95a43b01f131eb
  • Loading branch information
cortinico authored and facebook-github-bot committed Oct 6, 2022
1 parent e13aaaa commit 73bcedb
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
8 changes: 8 additions & 0 deletions ReactAndroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa
new Pair("../ReactCommon/react/renderer/imagemanager/platform/cxx/", ""),
]
),
new PrefabPreprocessingEntry(
"rrc_image",
new Pair("../ReactCommon/react/renderer/components/image/", "react/renderer/components/image/")
),
]
)
it.outputDir.set(prefabHeadersDir)
Expand Down Expand Up @@ -413,6 +417,7 @@ android {
"react_newarchdefaults",
"react_render_core",
"react_render_graphics",
"rrc_image",
"rrc_view",
"jsi",
"glog",
Expand Down Expand Up @@ -514,6 +519,9 @@ android {
react_render_graphics {
headers(new File(prefabHeadersDir, "react_render_graphics").absolutePath)
}
rrc_image {
headers(new File(prefabHeadersDir, "rrc_image").absolutePath)
}
rrc_view {
headers(new File(prefabHeadersDir, "rrc_view").absolutePath)
}
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/cmake-utils/ReactNative-application.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ add_library(yoga ALIAS ReactAndroid::yoga)
add_library(folly_runtime ALIAS ReactAndroid::folly_runtime)
add_library(react_nativemodule_core ALIAS ReactAndroid::react_nativemodule_core)
add_library(react_render_imagemanager ALIAS ReactAndroid::react_render_imagemanager)
add_library(rrc_image ALIAS ReactAndroid::rrc_image)

find_package(fbjni REQUIRED CONFIG)
add_library(fbjni ALIAS fbjni::fbjni)
Expand All @@ -88,6 +89,7 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
react_render_graphics # prefab ready
react_render_imagemanager # prefab ready
react_render_mapbuffer # prefab ready
rrc_image # prefab ready
rrc_view # prefab ready
runtimeexecutor # prefab ready
turbomodulejsijni # prefab ready
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ LOCAL_SHARED_LIBRARIES := libfbjni \
libreact_render_graphics \
libreact_render_imagemanager \
libreact_render_mapbuffer \
librrc_image \
librrc_view \
libturbomodulejsijni \
libyoga
Expand Down Expand Up @@ -142,6 +143,7 @@ target_link_libraries(
react_render_debug
react_render_graphics
react_render_imagemanager
rrc_image
rrc_view
turbomodulejsijni
yoga
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ 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_view libturbomodulejsijni libyoga
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\\\\\\"
Expand Down Expand Up @@ -94,6 +94,7 @@ target_link_libraries(
react_render_debug
react_render_graphics
react_render_imagemanager
rrc_image
rrc_view
turbomodulejsijni
yoga
Expand Down Expand Up @@ -166,7 +167,7 @@ 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_view libturbomodulejsijni libyoga
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\\\\\\"
Expand Down Expand Up @@ -206,6 +207,7 @@ target_link_libraries(
react_render_debug
react_render_graphics
react_render_imagemanager
rrc_image
rrc_view
turbomodulejsijni
yoga
Expand Down Expand Up @@ -271,7 +273,7 @@ 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_view libturbomodulejsijni libyoga
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\\\\\\"
Expand Down Expand Up @@ -311,6 +313,7 @@ target_link_libraries(
react_render_debug
react_render_graphics
react_render_imagemanager
rrc_image
rrc_view
turbomodulejsijni
yoga
Expand Down Expand Up @@ -383,7 +386,7 @@ 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_view libturbomodulejsijni libyoga
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\\\\\\"
Expand Down Expand Up @@ -423,6 +426,7 @@ target_link_libraries(
react_render_debug
react_render_graphics
react_render_imagemanager
rrc_image
rrc_view
turbomodulejsijni
yoga
Expand Down Expand Up @@ -495,7 +499,7 @@ 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_view libturbomodulejsijni libyoga
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\\\\\\"
Expand Down Expand Up @@ -535,6 +539,7 @@ target_link_libraries(
react_render_debug
react_render_graphics
react_render_imagemanager
rrc_image
rrc_view
turbomodulejsijni
yoga
Expand Down Expand Up @@ -615,7 +620,7 @@ 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_view libturbomodulejsijni libyoga
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\\\\\\"
Expand Down Expand Up @@ -655,6 +660,7 @@ target_link_libraries(
react_render_debug
react_render_graphics
react_render_imagemanager
rrc_image
rrc_view
turbomodulejsijni
yoga
Expand Down Expand Up @@ -727,7 +733,7 @@ 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_view libturbomodulejsijni libyoga
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\\\\\\"
Expand Down Expand Up @@ -767,6 +773,7 @@ target_link_libraries(
react_render_debug
react_render_graphics
react_render_imagemanager
rrc_image
rrc_view
turbomodulejsijni
yoga
Expand Down Expand Up @@ -847,7 +854,7 @@ 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_view libturbomodulejsijni libyoga
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\\\\\\"
Expand Down Expand Up @@ -887,6 +894,7 @@ target_link_libraries(
react_render_debug
react_render_graphics
react_render_imagemanager
rrc_image
rrc_view
turbomodulejsijni
yoga
Expand Down

0 comments on commit 73bcedb

Please sign in to comment.