mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
36 lines
876 B
Makefile
36 lines
876 B
Makefile
# 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)
|
|
REACT_NATIVE := $(LOCAL_PATH)/../../..
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := hermes-inspector
|
|
|
|
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp $(LOCAL_PATH)/detail/*.cpp $(LOCAL_PATH)/chrome/*.cpp)
|
|
|
|
LOCAL_C_ROOT := $(LOCAL_PATH)/../..
|
|
|
|
LOCAL_CFLAGS := -DHERMES_ENABLE_DEBUGGER=1 -DHERMES_INSPECTOR_FOLLY_KLUDGE=1
|
|
LOCAL_C_INCLUDES := $(LOCAL_C_ROOT) $(REACT_NATIVE)/ReactCommon/jsi
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_ROOT)
|
|
|
|
LOCAL_CPP_FEATURES := exceptions
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
jsinspector \
|
|
libfb \
|
|
libfbjni \
|
|
libfolly_runtime \
|
|
libglog \
|
|
libhermes \
|
|
libjsi
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libfolly_futures
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|