Separate folly into runtime + folly_futures specific for hermes inspector

Summary:
Rearranges folly_futures configuration into a static library only required for `hermes-inspector` + `folly_runtime` which merges `folly_json` and mutex-related implementations `folly_futures` was used for. As `hermes-executor-debug` is removed by `vmCleanup` configurations later, it allows to shave additional 300KB from the release APK size.

Changelog: [Internal] - Rearrange folly build to reduce APK size

Reviewed By: cortinico

Differential Revision: D34342514

fbshipit-source-id: b646680343e6b9a7674019506b87b96f6007caf2
This commit is contained in:
Andrei Shikov
2022-03-13 15:15:21 -07:00
committed by Facebook GitHub Bot
parent 0a004927ad
commit 5d5addd661
46 changed files with 104 additions and 135 deletions
@@ -21,7 +21,7 @@ LOCAL_STATIC_LIBRARIES := libjsireact
LOCAL_SHARED_LIBRARIES := \
libfb \
libfbjni \
libfolly_json \
libfolly_runtime \
libhermes \
libjsi \
libreactnativejni
@@ -22,7 +22,7 @@ ifeq ($(APP_OPTIM),debug)
LOCAL_SHARED_LIBRARIES := \
libfb \
libfbjni \
libfolly_json \
libfolly_runtime \
libhermes \
libjsi \
libreactnativejni
@@ -14,8 +14,6 @@ LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/react/common/mapbuffer/*.cpp)
LOCAL_SHARED_LIBRARIES := \
libfb \
libfbjni \
libfolly_futures \
libfolly_json \
libglog \
libglog_init \
libreact_debug \
@@ -15,8 +15,7 @@ LOCAL_SHARED_LIBRARIES := \
libbutter \
libfb \
libfbjni \
libfolly_futures \
libfolly_json \
libfolly_runtime \
libglog \
libglog_init \
libjsi \
@@ -19,7 +19,7 @@ LOCAL_STATIC_LIBRARIES := libjsireact jscruntime
LOCAL_SHARED_LIBRARIES := \
libfb \
libfbjni \
libfolly_json \
libfolly_runtime \
libjsi \
libreactnativejni
@@ -19,7 +19,7 @@ LOCAL_STATIC_LIBRARIES := libjsireact
LOCAL_SHARED_LIBRARIES := \
libfb \
libfbjni \
libfolly_json \
libfolly_runtime \
libjsi \
libreactnativejni
@@ -14,8 +14,6 @@ LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SHARED_LIBRARIES := \
libfb \
libfbjni \
libfolly_futures \
libfolly_json \
libglog \
libglog_init \
librrc_native \