mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 21:46:07 +08:00
Move JSI source files into a separate directory
Summary: This will simplify updating the JSI API from upstream in the future. Reviewed By: mhorowitz Differential Revision: D14762674 fbshipit-source-id: fa4a86f08425943e301da4ef3df9893ebaa1493e
This commit is contained in:
committed by
Facebook Github Bot
parent
68a5ceef31
commit
094f221a0c
@@ -2046,7 +2046,11 @@
|
|||||||
3EDCA8A21D3591E700450C31 /* RCTErrorCustomizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTErrorCustomizer.h; sourceTree = "<group>"; };
|
3EDCA8A21D3591E700450C31 /* RCTErrorCustomizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTErrorCustomizer.h; sourceTree = "<group>"; };
|
||||||
3EDCA8A31D3591E700450C31 /* RCTErrorInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTErrorInfo.h; sourceTree = "<group>"; };
|
3EDCA8A31D3591E700450C31 /* RCTErrorInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTErrorInfo.h; sourceTree = "<group>"; };
|
||||||
3EDCA8A41D3591E700450C31 /* RCTErrorInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTErrorInfo.m; sourceTree = "<group>"; };
|
3EDCA8A41D3591E700450C31 /* RCTErrorInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTErrorInfo.m; sourceTree = "<group>"; };
|
||||||
4F56C93722167A4800DB9F3F /* jsilib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = jsilib.h; sourceTree = "<group>"; };
|
4F56C93722167A4800DB9F3F /* jsilib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = jsi/jsilib.h; sourceTree = "<group>"; };
|
||||||
|
50E98FE621460B0D00CD9289 /* RCTWKWebViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTWKWebViewManager.m; sourceTree = "<group>"; };
|
||||||
|
50E98FE721460B0D00CD9289 /* RCTWKWebView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTWKWebView.h; sourceTree = "<group>"; };
|
||||||
|
50E98FE821460B0D00CD9289 /* RCTWKWebView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTWKWebView.m; sourceTree = "<group>"; };
|
||||||
|
50E98FE921460B0D00CD9289 /* RCTWKWebViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTWKWebViewManager.h; sourceTree = "<group>"; };
|
||||||
5335D5401FE81A4700883D58 /* RCTShadowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTShadowView.m; sourceTree = "<group>"; };
|
5335D5401FE81A4700883D58 /* RCTShadowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTShadowView.m; sourceTree = "<group>"; };
|
||||||
5343895E203905B6008E0CB3 /* YGLayout.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = YGLayout.cpp; sourceTree = "<group>"; };
|
5343895E203905B6008E0CB3 /* YGLayout.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = YGLayout.cpp; sourceTree = "<group>"; };
|
||||||
5343895F203905B6008E0CB3 /* YGLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YGLayout.h; sourceTree = "<group>"; };
|
5343895F203905B6008E0CB3 /* YGLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YGLayout.h; sourceTree = "<group>"; };
|
||||||
@@ -2221,15 +2225,15 @@
|
|||||||
EDDA711B2164285A00B2D070 /* JSINativeModules.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSINativeModules.cpp; path = jsireact/JSINativeModules.cpp; sourceTree = "<group>"; };
|
EDDA711B2164285A00B2D070 /* JSINativeModules.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSINativeModules.cpp; path = jsireact/JSINativeModules.cpp; sourceTree = "<group>"; };
|
||||||
EDDA711C2164285A00B2D070 /* JSIExecutor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSIExecutor.cpp; path = jsireact/JSIExecutor.cpp; sourceTree = "<group>"; };
|
EDDA711C2164285A00B2D070 /* JSIExecutor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSIExecutor.cpp; path = jsireact/JSIExecutor.cpp; sourceTree = "<group>"; };
|
||||||
EDEBC6D6214B3E7000DD5AC8 /* libjsi.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libjsi.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
EDEBC6D6214B3E7000DD5AC8 /* libjsi.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libjsi.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
EDEBC6D9214B3F6800DD5AC8 /* jsi-inl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "jsi-inl.h"; sourceTree = "<group>"; };
|
EDEBC6D9214B3F6800DD5AC8 /* jsi-inl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "jsi-inl.h"; path = "jsi/jsi-inl.h"; sourceTree = "<group>"; };
|
||||||
EDEBC6DA214B3F6800DD5AC8 /* JSIDynamic.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSIDynamic.cpp; sourceTree = "<group>"; };
|
EDEBC6DA214B3F6800DD5AC8 /* JSIDynamic.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSIDynamic.cpp; path = jsi/JSIDynamic.cpp; sourceTree = "<group>"; };
|
||||||
EDEBC6DB214B3F6800DD5AC8 /* jsi.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsi.cpp; sourceTree = "<group>"; };
|
EDEBC6DB214B3F6800DD5AC8 /* jsi.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = jsi.cpp; path = jsi/jsi.cpp; sourceTree = "<group>"; };
|
||||||
EDEBC6DC214B3F6800DD5AC8 /* JSIDynamic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSIDynamic.h; sourceTree = "<group>"; };
|
EDEBC6DC214B3F6800DD5AC8 /* JSIDynamic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JSIDynamic.h; path = jsi/JSIDynamic.h; sourceTree = "<group>"; };
|
||||||
EDEBC6DD214B3F6800DD5AC8 /* JSCRuntime.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCRuntime.cpp; sourceTree = "<group>"; };
|
EDEBC6DD214B3F6800DD5AC8 /* JSCRuntime.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSCRuntime.cpp; sourceTree = "<group>"; };
|
||||||
EDEBC6DE214B3F6800DD5AC8 /* JSCRuntime.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCRuntime.h; sourceTree = "<group>"; };
|
EDEBC6DE214B3F6800DD5AC8 /* JSCRuntime.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSCRuntime.h; sourceTree = "<group>"; };
|
||||||
EDEBC6DF214B3F6800DD5AC8 /* BUCK */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = BUCK; sourceTree = "<group>"; };
|
EDEBC6DF214B3F6800DD5AC8 /* BUCK */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = BUCK; sourceTree = "<group>"; };
|
||||||
EDEBC6E0214B3F6800DD5AC8 /* instrumentation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = instrumentation.h; sourceTree = "<group>"; };
|
EDEBC6E0214B3F6800DD5AC8 /* instrumentation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = instrumentation.h; path = jsi/instrumentation.h; sourceTree = "<group>"; };
|
||||||
EDEBC6E1214B3F6800DD5AC8 /* jsi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = jsi.h; sourceTree = "<group>"; };
|
EDEBC6E1214B3F6800DD5AC8 /* jsi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = jsi.h; path = jsi/jsi.h; sourceTree = "<group>"; };
|
||||||
EDEBC73B214B45A300DD5AC8 /* libjsiexecutor.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libjsiexecutor.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
EDEBC73B214B45A300DD5AC8 /* libjsiexecutor.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libjsiexecutor.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
EDEBC740214B463000DD5AC8 /* BUCK */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = BUCK; sourceTree = "<group>"; };
|
EDEBC740214B463000DD5AC8 /* BUCK */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = BUCK; sourceTree = "<group>"; };
|
||||||
EDEBC750214B47E100DD5AC8 /* JSDeltaBundleClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDeltaBundleClient.cpp; sourceTree = "<group>"; };
|
EDEBC750214B47E100DD5AC8 /* JSDeltaBundleClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDeltaBundleClient.cpp; sourceTree = "<group>"; };
|
||||||
@@ -3199,10 +3203,7 @@
|
|||||||
594F0A331FD23228007FBE96 /* RCTSurfaceHostingView.h in Headers */,
|
594F0A331FD23228007FBE96 /* RCTSurfaceHostingView.h in Headers */,
|
||||||
130443DD1E401AF500D93A67 /* RCTConvert+Transform.h in Headers */,
|
130443DD1E401AF500D93A67 /* RCTConvert+Transform.h in Headers */,
|
||||||
134D63C41F1FEC65008872B5 /* RCTCxxBridgeDelegate.h in Headers */,
|
134D63C41F1FEC65008872B5 /* RCTCxxBridgeDelegate.h in Headers */,
|
||||||
3D302F801DF828F800D6DDAE /* RCTNavItem.h in Headers */,
|
|
||||||
1968A2601F67275300EB3D1D /* RCTComponentEvent.h in Headers */,
|
1968A2601F67275300EB3D1D /* RCTComponentEvent.h in Headers */,
|
||||||
3D302F811DF828F800D6DDAE /* RCTNavItemManager.h in Headers */,
|
|
||||||
135A9C061E7B0F7800587AEB /* RCTJSCHelpers.h in Headers */,
|
|
||||||
3D302F841DF828F800D6DDAE /* RCTPointerEvents.h in Headers */,
|
3D302F841DF828F800D6DDAE /* RCTPointerEvents.h in Headers */,
|
||||||
59EB6DBC1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h in Headers */,
|
59EB6DBC1EBD6FC90072A5E7 /* RCTUIManagerObserverCoordinator.h in Headers */,
|
||||||
657734941EE8356100A0E9EA /* RCTInspectorPackagerConnection.h in Headers */,
|
657734941EE8356100A0E9EA /* RCTInspectorPackagerConnection.h in Headers */,
|
||||||
@@ -3932,6 +3933,7 @@
|
|||||||
developmentRegion = English;
|
developmentRegion = English;
|
||||||
hasScannedForEncodings = 0;
|
hasScannedForEncodings = 0;
|
||||||
knownRegions = (
|
knownRegions = (
|
||||||
|
English,
|
||||||
en,
|
en,
|
||||||
Base,
|
Base,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)
|
|||||||
|
|
||||||
LOCAL_CFLAGS += -fvisibility=hidden -fexceptions -frtti
|
LOCAL_CFLAGS += -fvisibility=hidden -fexceptions -frtti
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := libjsi libjsireact
|
LOCAL_STATIC_LIBRARIES := libjsi libjsireact jscruntime
|
||||||
LOCAL_SHARED_LIBRARIES := libfolly_json libfb libreactnativejni
|
LOCAL_SHARED_LIBRARIES := libfolly_json libfb libreactnativejni
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ LOCAL_CFLAGS := \
|
|||||||
|
|
||||||
LOCAL_CFLAGS += -fexceptions -frtti -Wno-unused-lambda-capture
|
LOCAL_CFLAGS += -fexceptions -frtti -Wno-unused-lambda-capture
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := boost
|
LOCAL_STATIC_LIBRARIES := boost jsi
|
||||||
LOCAL_SHARED_LIBRARIES := jsinspector libfolly_json glog
|
LOCAL_SHARED_LIBRARIES := jsinspector libfolly_json glog
|
||||||
|
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
@@ -28,4 +28,5 @@ $(call import-module,fb)
|
|||||||
$(call import-module,folly)
|
$(call import-module,folly)
|
||||||
$(call import-module,jsc)
|
$(call import-module,jsc)
|
||||||
$(call import-module,glog)
|
$(call import-module,glog)
|
||||||
|
$(call import-module,jsi)
|
||||||
$(call import-module,jsinspector)
|
$(call import-module,jsinspector)
|
||||||
|
|||||||
@@ -9,10 +9,25 @@ include $(CLEAR_VARS)
|
|||||||
|
|
||||||
LOCAL_MODULE := jsi
|
LOCAL_MODULE := jsi
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/jsi/*.cpp)
|
||||||
|
|
||||||
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)
|
||||||
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
||||||
|
|
||||||
|
LOCAL_CFLAGS := -fexceptions -frtti -O3
|
||||||
|
LOCAL_SHARED_LIBRARIES := libfolly_json glog
|
||||||
|
|
||||||
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
LOCAL_MODULE := jscruntime
|
||||||
|
|
||||||
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
|
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
|
||||||
|
|
||||||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)
|
||||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
||||||
|
|
||||||
LOCAL_CFLAGS := -fexceptions -frtti -O3
|
LOCAL_CFLAGS := -fexceptions -frtti -O3
|
||||||
LOCAL_SHARED_LIBRARIES := libfolly_json libjsc glog
|
LOCAL_SHARED_LIBRARIES := libfolly_json libjsc glog
|
||||||
|
|||||||
@@ -5,14 +5,14 @@ load("//tools/build_defs/oss:rn_defs.bzl", "react_native_xplat_dep", "rn_xplat_c
|
|||||||
rn_xplat_cxx_library(
|
rn_xplat_cxx_library(
|
||||||
name = "jsi",
|
name = "jsi",
|
||||||
srcs = [
|
srcs = [
|
||||||
"jsi.cpp",
|
"jsi/jsi.cpp",
|
||||||
],
|
],
|
||||||
header_namespace = "jsi",
|
header_namespace = "",
|
||||||
exported_headers = [
|
exported_headers = [
|
||||||
"instrumentation.h",
|
"jsi/instrumentation.h",
|
||||||
"jsi.h",
|
"jsi/jsi.h",
|
||||||
"jsi-inl.h",
|
"jsi/jsi-inl.h",
|
||||||
"jsilib.h",
|
"jsi/jsilib.h",
|
||||||
],
|
],
|
||||||
compiler_flags = [
|
compiler_flags = [
|
||||||
"-O3",
|
"-O3",
|
||||||
@@ -40,11 +40,11 @@ rn_xplat_cxx_library(
|
|||||||
rn_xplat_cxx_library(
|
rn_xplat_cxx_library(
|
||||||
name = "JSIDynamic",
|
name = "JSIDynamic",
|
||||||
srcs = [
|
srcs = [
|
||||||
"JSIDynamic.cpp",
|
"jsi/JSIDynamic.cpp",
|
||||||
],
|
],
|
||||||
header_namespace = "jsi",
|
header_namespace = "",
|
||||||
exported_headers = [
|
exported_headers = [
|
||||||
"JSIDynamic.h",
|
"jsi/JSIDynamic.h",
|
||||||
],
|
],
|
||||||
compiler_flags = [
|
compiler_flags = [
|
||||||
"-fexceptions",
|
"-fexceptions",
|
||||||
|
|||||||
Reference in New Issue
Block a user