File tree Expand file tree Collapse file tree 5 files changed +12
-10
lines changed
ReactAndroid/src/main/jni Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ LOCAL_SRC_FILES:= \
29
29
LOCAL_C_INCLUDES := $(LOCAL_PATH ) /include
30
30
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH ) /include
31
31
32
- LOCAL_CFLAGS := -DLOG_TAG=\"libfb\" -DDISABLE_CPUCAP -DDISABLE_XPLAT
33
- LOCAL_CXXFLAGS += -frtti -fexceptions
32
+ LOCAL_CFLAGS := -DLOG_TAG=\"libfb\" -DDISABLE_CPUCAP -DDISABLE_XPLAT -fexceptions -frtti
33
+
34
34
# include/utils/threads.h has unused parameters
35
35
LOCAL_CFLAGS += -Wno-unused-parameter
36
36
ifeq ($(TOOLCHAIN_PERMISSIVE ) ,true)
Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ LOCAL_SRC_FILES:= \
12
12
LOCAL_C_INCLUDES := $(LOCAL_PATH )
13
13
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH )
14
14
15
- LOCAL_CFLAGS := -fno-omit-frame-pointer
16
- LOCAL_CXXFLAGS := -fexceptions
15
+ LOCAL_CFLAGS := -fexceptions -fno-omit-frame-pointer
17
16
18
17
LOCAL_LDLIBS := -llog
19
18
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ LOCAL_SRC_FILES := \
14
14
15
15
LOCAL_C_INCLUDES := $(LOCAL_PATH ) /jni
16
16
17
- LOCAL_CFLAGS += -fvisibility=hidden -O3
18
- LOCAL_CXXFLAGS += -frtti -fexceptions
17
+ LOCAL_CFLAGS += -fvisibility=hidden -frtti -fexceptions -O3
19
18
20
19
LOCAL_LDLIBS += -landroid -llog
21
20
LOCAL_STATIC_LIBRARIES := libyogacore
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ include $(CLEAR_VARS)
10
10
# Flag to enable V8 in react-native code
11
11
V8_ENABLED := 1
12
12
13
+ # Name of this module.
14
+ #
15
+ # Other modules can depend on this one by adding libreactnativejni to their
16
+ # LOCAL_SHARED_LIBRARIES variable.
13
17
LOCAL_MODULE := reactnativejni
14
18
15
19
LOCAL_SRC_FILES := \
@@ -35,6 +39,7 @@ LOCAL_SRC_FILES := \
35
39
WritableNativeArray.cpp \
36
40
WritableNativeMap.cpp \
37
41
42
+ # Include . in the header search path for all source files in this module.
38
43
LOCAL_C_INCLUDES := $(LOCAL_PATH )
39
44
40
45
# Include ./../../ in the header search path for modules that depend on
@@ -44,8 +49,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)
44
49
# ./../ == react
45
50
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH ) /../..
46
51
47
- LOCAL_CFLAGS += -fvisibility=hidden
48
- LOCAL_CFLAGS += -fexceptions -frtti
52
+ LOCAL_CFLAGS += -fvisibility=hidden -fexceptions -frtti
49
53
50
54
LOCAL_LDLIBS += -landroid
51
55
68
72
LOCAL_SHARED_LIBRARIES += libjsc
69
73
endif
70
74
71
-
72
75
# The static libraries (.a files) that this module depends on.
73
76
LOCAL_STATIC_LIBRARIES := libreactnative
74
77
Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
34
34
LOCAL_CFLAGS := \
35
35
-DLOG_TAG=\"ReactNative\"
36
36
37
+ LOCAL_CFLAGS += -fexceptions -frtti
38
+
37
39
LOCAL_STATIC_LIBRARIES := boost
38
40
LOCAL_SHARED_LIBRARIES := libfb libfolly_json libglog
39
- LOCAL_CXXFLAGS += -fexceptions -frtti
40
41
41
42
LOCAL_V8_FILES := \
42
43
File.cpp \
You can’t perform that action at this time.
0 commit comments