Skip to content

Commit

Permalink
Working around Long paths limitation on Windows (#33784)
Browse files Browse the repository at this point in the history
Summary:
Cherry picking #33707 to main branch

This change is extending the changes made by alespergl to reduce the file paths and command lengths of ndk build commands
Essentially we are shortening the length of the source files by using relative paths instead of absolute paths as enumerated by the wildcard expression
This commit is extending the fix by including all the new modules introduced into RN for the new architecture, including the generated modules.
We are also reverting the ndk bump as ndk23 is crashing frequently when building RN with new arch. The reduced file paths lengths ensures the ndk bump is not required for relatively short application paths.

Fix building RN with new architecture on Windows boxes by using relative paths for C++ sources

## Changelog

Fix building RN with new architecture on Windows boxes by using relative paths for C++ sources

[CATEGORY] [TYPE] - Message

Pull Request resolved: #33784

Test Plan: Verified building on windows box

Reviewed By: javache

Differential Revision: D36241928

Pulled By: cortinico

fbshipit-source-id: 1ce428a271724cbd3b00a24fe03e7d69253f169b
  • Loading branch information
mganandraj authored and facebook-github-bot committed May 9, 2022
1 parent d96806b commit 883a938
Show file tree
Hide file tree
Showing 49 changed files with 63 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := mapbufferjni

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/react/common/mapbuffer/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_SHARED_LIBRARIES := \
libfb \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := fabricjni

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_SHARED_LIBRARIES := \
libbutter \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ LOCAL_MODULE := reactperfloggerjni

# Compile all local c++ files
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/reactperflogger/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

# Build the files in this directory as a shared library
include $(BUILD_SHARED_LIBRARY)
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ LOCAL_MODULE := callinvokerholder

# Compile all local c++ files
LOCAL_SRC_FILES := $(LOCAL_PATH)/ReactCommon/CallInvokerHolder.cpp
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

# Build the files in this directory as a shared library
include $(BUILD_STATIC_LIBRARY)
Expand Down Expand Up @@ -56,6 +57,7 @@ LOCAL_STATIC_LIBRARIES = libcallinvokerholder libreactperfloggerjni

# Compile all local c++ files
LOCAL_SRC_FILES := $(LOCAL_PATH)/ReactCommon/TurboModuleManager.cpp $(LOCAL_PATH)/ReactCommon/OnLoad.cpp
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

# Build the files in this directory as a shared library
include $(BUILD_SHARED_LIBRARY)
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := uimanagerjni

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_SHARED_LIBRARIES := \
libfb \
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/jni/react/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ LOCAL_MODULE := reactnativeutilsjni

# Compile all local c++ files.
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

ifeq ($(APP_OPTIM),debug)
# Keep symbols by overriding the strip command invoked by ndk-build.
Expand Down Expand Up @@ -106,6 +107,7 @@ LOCAL_MODULE := reactnativejni

# Compile all local c++ files.
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

ifeq ($(APP_OPTIM),debug)
# Keep symbols by overriding the strip command invoked by ndk-build.
Expand Down
1 change: 1 addition & 0 deletions ReactAndroid/src/main/jni/third-party/boost/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include $(CLEAR_VARS)
# because the react native version does not include anything outside of headers.
# They are required for Folly futures to compile successfully.
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/asm/$(TARGET_ARCH_ABI)/*.S)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/boost_1_76_0
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/boost_1_76_0
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/butter/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := butter

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
Expand Down
4 changes: 3 additions & 1 deletion ReactCommon/hermes/executor/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ ifeq ($(APP_OPTIM),debug)
LOCAL_MODULE := hermes-executor-common-debug
LOCAL_CFLAGS := -DHERMES_ENABLE_DEBUGGER=1

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH) $(REACT_NATIVE)/ReactCommon/jsi
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
Expand All @@ -27,6 +28,7 @@ else
LOCAL_MODULE := hermes-executor-common-release

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH) $(REACT_NATIVE)/ReactCommon/jsi
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/logger/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := logger

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/config/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_config

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/debug/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LOCAL_MODULE := react_debug
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../

Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/nativemodule/core/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LOCAL_MODULE := react_nativemodule_core
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ReactCommon $(LOCAL_PATH)/platform/android/ReactCommon

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/ReactCommon/*.cpp) $(wildcard $(LOCAL_PATH)/platform/android/ReactCommon/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../ $(LOCAL_PATH) $(LOCAL_PATH)/platform/android/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := sampleturbomodule
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/ReactCommon/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
LOCAL_SHARED_LIBRARIES := \
libfbjni \
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/animations/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_render_animations

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/attributedstring/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_render_attributedstring

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/componentregistry/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LOCAL_MODULE := react_render_componentregistry
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LOCAL_MODULE := rrc_native
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../

Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/components/image/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := rrc_image

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/components/modal/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := rrc_modal

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := rrc_progressbar

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/android/react/renderer/components/progressbar/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/android/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/android/
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/components/root/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := rrc_root

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := rrc_scrollview

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/components/slider/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := rrc_slider

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp) $(wildcard $(LOCAL_PATH)/platform/android/react/renderer/components/slider/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/ $(LOCAL_PATH)/platform/android/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../ $(LOCAL_PATH)/platform/android/
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/components/switch/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := rrc_switch

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/androidswitch/react/renderer/components/androidswitch/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/androidswitch/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/androidswitch/
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/components/text/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := rrc_text

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/components/textinput/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := rrc_textinput

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/androidtextinput/react/renderer/components/androidtextinput/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/androidtextinput/react/renderer/components/androidtextinput/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/androidtextinput/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := rrc_unimplementedview

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/components/view/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := rrc_view

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/core/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LOCAL_MODULE := react_render_core
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../

Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/debug/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LOCAL_MODULE := react_render_debug
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../

Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/graphics/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_render_graphics

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp $(LOCAL_PATH)/platform/cxx/react/renderer/graphics/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_SHARED_LIBRARIES := \
glog \
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/imagemanager/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_render_imagemanager

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp $(LOCAL_PATH)/platform/cxx/react/renderer/imagemanager/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_SHARED_LIBRARIES := \
libfolly_runtime \
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/leakchecker/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LOCAL_MODULE := react_render_leakchecker
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../

Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/mapbuffer/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_render_mapbuffer

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/mounting/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_render_mounting

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/runtimescheduler/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LOCAL_MODULE := react_render_runtimescheduler
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../

Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/scheduler/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_render_scheduler

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/telemetry/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_render_telemetry

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/templateprocessor/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_render_templateprocessor

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/textlayoutmanager/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_render_textlayoutmanager

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp $(LOCAL_PATH)/platform/android/react/renderer/textlayoutmanager/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_SHARED_LIBRARIES := \
glog \
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/renderer/uimanager/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_render_uimanager

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/react/utils/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := react_utils

LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

LOCAL_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/../../
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/reactperflogger/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ LOCAL_MODULE := reactperflogger

# Compile all local c++ files under ./ReactCommon
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/reactperflogger/*.cpp)
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))

# Build the files in this directory as a shared library
include $(BUILD_STATIC_LIBRARY)
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ 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}
Expand Down
Loading

0 comments on commit 883a938

Please sign in to comment.