LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := libpeersdk-jni
    
LOCAL_SRC_FILES := JNIHelp.cpp
LOCAL_SRC_FILES += JObject.cpp
LOCAL_SRC_FILES += libpeersdk-jni.cpp
LOCAL_SRC_FILES += remote_demo_Native_PeerSDK_Peer_Peer.cpp
LOCAL_SRC_FILES += remote_demo_Native_PeerSDK_Peer_Stream_PeerStream.cpp

LOCAL_CFLAGS := -DICARCH_ANDROID
LOCAL_C_INCLUDES := ../../../../include

LOCAL_LDLIBS := -llog
LOCAL_LDLIBS += ../../../../release/android/libpeersdk.so

include $(BUILD_SHARED_LIBRARY)

all:
	cp ../../../../release/android/libpeersdk.so ../libs/armeabi/
