From 62440b86b04839583bbab0199be997ce1e868a73 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Sat, 6 Feb 2016 14:02:54 -0800 Subject: [PATCH] Fix jni build with gradle Summary: fc94f1e6d0ac61e250c13d293ff76c9c5a5dbbf5 and the following commits introduced some changes to the jni build but only changed the BUCK build files and not the gradle ones. This ports the changes to the gradle build files to fix the build. Closes https://github.com/facebook/react-native/pull/5791 Reviewed By: svcscm Differential Revision: D2910012 Pulled By: vjeux fb-gh-sync-id: b6c7edfed6873d501e46e80a0c9f128d9df04ca4 --- ReactAndroid/src/main/jni/react/Android.mk | 5 +++-- ReactAndroid/src/main/jni/react/jni/Android.mk | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/src/main/jni/react/Android.mk b/ReactAndroid/src/main/jni/react/Android.mk index 78abe5bd1..3e3fbe247 100644 --- a/ReactAndroid/src/main/jni/react/Android.mk +++ b/ReactAndroid/src/main/jni/react/Android.mk @@ -9,8 +9,8 @@ LOCAL_SRC_FILES := \ JSCExecutor.cpp \ JSCHelpers.cpp \ JSCWebWorker.cpp \ - JSModulesUnbundle.cpp \ MethodCall.cpp \ + Platform.cpp \ Value.cpp \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. @@ -24,7 +24,7 @@ CXX11_FLAGS := -std=c++11 LOCAL_CFLAGS += $(CXX11_FLAGS) LOCAL_EXPORT_CPPFLAGS := $(CXX11_FLAGS) -LOCAL_SHARED_LIBRARIES := libfb libfbjni libfolly_json libjsc +LOCAL_SHARED_LIBRARIES := libfb libfbjni libfolly_json libjsc libglog include $(BUILD_STATIC_LIBRARY) @@ -32,3 +32,4 @@ $(call import-module,fb) $(call import-module,jni) $(call import-module,folly) $(call import-module,jsc) +$(call import-module,glog) diff --git a/ReactAndroid/src/main/jni/react/jni/Android.mk b/ReactAndroid/src/main/jni/react/jni/Android.mk index bb051ddaf..9d4d9b2b5 100644 --- a/ReactAndroid/src/main/jni/react/jni/Android.mk +++ b/ReactAndroid/src/main/jni/react/jni/Android.mk @@ -6,7 +6,10 @@ LOCAL_MODULE := reactnativejni LOCAL_SRC_FILES := \ JMessageQueueThread.cpp \ + JSCPerfLogging.cpp \ JSLoader.cpp \ + JSLogging.cpp \ + JniJSModulesUnbundle.cpp \ NativeArray.cpp \ OnLoad.cpp \ ProxyExecutor.cpp \