From 425387c41a32b861d94da1dc2b1ded9d0aec9720 Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Fri, 12 Jan 2018 09:02:55 +0100 Subject: [PATCH] Linking against realm-parser (#1613) * Linking against realm-parser * Define the realm-parser-android library target --- react-native/android/src/main/jni/Android.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/react-native/android/src/main/jni/Android.mk b/react-native/android/src/main/jni/Android.mk index 037bed02..87ced46c 100644 --- a/react-native/android/src/main/jni/Android.mk +++ b/react-native/android/src/main/jni/Android.mk @@ -20,6 +20,11 @@ LOCAL_EXPORT_C_INCLUDES := core/include LOCAL_SRC_FILES := core/librealm-android-$(TARGET_ARCH_ABI).a include $(PREBUILT_STATIC_LIBRARY) +include $(CLEAR_VARS) +LOCAL_MODULE := realm-parser-android-$(TARGET_ARCH_ABI) +LOCAL_SRC_FILES := core/librealm-parser-android-$(TARGET_ARCH_ABI).a +include $(PREBUILT_STATIC_LIBRARY) + include $(CLEAR_VARS) LOCAL_MODULE := libjsc LOCAL_EXPORT_C_INCLUDES := jsc @@ -92,11 +97,13 @@ endif LOCAL_ALLOW_UNDEFINED_SYMBOLS := true ifeq ($(strip $(BUILD_TYPE_SYNC)),1) LOCAL_STATIC_LIBRARIES := realm-android-sync-$(TARGET_ARCH_ABI) +LOCAL_STATIC_LIBRARIES += realm-parser-android-$(TARGET_ARCH_ABI) LOCAL_STATIC_LIBRARIES += realm-android-$(TARGET_ARCH_ABI) LOCAL_STATIC_LIBRARIES += ssl-$(TARGET_ARCH_ABI) LOCAL_STATIC_LIBRARIES += crypto-$(TARGET_ARCH_ABI) else -LOCAL_STATIC_LIBRARIES := realm-android-$(TARGET_ARCH_ABI) +LOCAL_STATIC_LIBRARIES := realm-parser-android-$(TARGET_ARCH_ABI) +LOCAL_STATIC_LIBRARIES += realm-android-$(TARGET_ARCH_ABI) LOCAL_STATIC_LIBRARIES += crypto-$(TARGET_ARCH_ABI) endif