Skip to content

Commit 7b76abc

Browse files
mganandrajalespergl
authored andcommitted
[Main][Windows] Working around Long paths limitation on Windows (#33707)
Co-authored-by: Aleš Pergl <alespergl@users.noreply.github.com> Co-authored-by: Ales Pergl <alpergl@microsoft.com>
1 parent a862d92 commit 7b76abc

File tree

59 files changed

+73
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+73
-6
lines changed

ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/Android.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ include $(CLEAR_VARS)
1212
LOCAL_MODULE := jsijniprofiler
1313

1414
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
15+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
1516

1617
LOCAL_C_INCLUDES := $(LOCAL_PATH) $(REACT_NATIVE)/ReactCommon/jsi
1718

ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/Android.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ifeq ($(APP_OPTIM),debug)
1313
LOCAL_CFLAGS := -DHERMES_ENABLE_DEBUGGER=1
1414

1515
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
16+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
1617

1718
LOCAL_C_INCLUDES := $(LOCAL_PATH) $(REACT_NATIVE)/ReactCommon/jsi
1819

@@ -38,6 +39,8 @@ else
3839
LOCAL_C_INCLUDES := $(LOCAL_PATH) $(REACT_NATIVE)/ReactCommon/jsi
3940

4041
LOCAL_CPP_FEATURES := exceptions
42+
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
43+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
4144

4245
LOCAL_STATIC_LIBRARIES := libjsireact libhermes-executor-common-release
4346
LOCAL_SHARED_LIBRARIES := \

ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/Android.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ include $(CLEAR_VARS)
1010
LOCAL_MODULE := mapbufferjni
1111

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

1415
LOCAL_SHARED_LIBRARIES := \
1516
libfb \

ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ include $(CLEAR_VARS)
1010
LOCAL_MODULE := fabricjni
1111

1212
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
13+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
1314

1415
LOCAL_SHARED_LIBRARIES := \
1516
libbutter \

ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ include $(CLEAR_VARS)
1010
LOCAL_MODULE := jscexecutor
1111

1212
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
13+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
1314

1415
LOCAL_C_INCLUDES := $(LOCAL_PATH)
1516

ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/Android.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ include $(CLEAR_VARS)
1010
LOCAL_MODULE := reactnativeblob
1111

1212
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
13+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
1314

1415
LOCAL_C_INCLUDES := $(LOCAL_PATH)
1516

ReactAndroid/src/main/java/com/facebook/react/reactperflogger/jni/Android.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ LOCAL_MODULE := reactperfloggerjni
2626

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

3031
# Build the files in this directory as a shared library
3132
include $(BUILD_SHARED_LIBRARY)

ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/Android.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ LOCAL_MODULE := callinvokerholder
2828

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

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

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

6062
# Build the files in this directory as a shared library
6163
include $(BUILD_SHARED_LIBRARY)

ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/Android.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ include $(CLEAR_VARS)
1010
LOCAL_MODULE := uimanagerjni
1111

1212
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
13+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
1314

1415
LOCAL_SHARED_LIBRARIES := \
1516
libfb \

ReactAndroid/src/main/jni/first-party/yogajni/Android.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ include $(CLEAR_VARS)
1010
LOCAL_MODULE := yoga
1111

1212
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/jni/*.cpp)
13+
LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,,$(LOCAL_SRC_FILES))
1314

1415
LOCAL_C_INCLUDES := $(LOCAL_PATH)/jni
1516

0 commit comments

Comments
 (0)