From 288b818ab2f7bab58e3b3e2d6a53064d34fa020c Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Thu, 31 Mar 2011 08:34:29 +0000 Subject: [PATCH 1/2] update ms2 --- mediastreamer2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediastreamer2 b/mediastreamer2 index e45966097..5c2fe9432 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit e4596609778a09c3b6550480b3eaa20a5433991b +Subproject commit 5c2fe943251c5af493d18133251abf91e0ce5e83 From c519c4a6675d137a59f8d8eceb8055ccfc36f351 Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Thu, 31 Mar 2011 10:50:41 +0200 Subject: [PATCH 2/2] Conditionnal compilation of x264 for Android. --- build/android/Android.mk | 15 +++++++++++---- coreapi/linphonecore_jni.cc | 6 ++++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/build/android/Android.mk b/build/android/Android.mk index 48a4c75be..c2c13beb9 100755 --- a/build/android/Android.mk +++ b/build/android/Android.mk @@ -59,10 +59,13 @@ LOCAL_CFLAGS += \ LOCAL_CFLAGS += -DIN_LINPHONE + ifeq ($(LINPHONE_VIDEO),1) LOCAL_CFLAGS += -DVIDEO_ENABLED +ifeq ($(BUILD_X264),1) +LOCAL_CFLAGS += -DHAVE_X264 +endif endif - LOCAL_C_INCLUDES += \ $(LOCAL_PATH) \ $(LOCAL_PATH)/include \ @@ -82,14 +85,18 @@ LOCAL_STATIC_LIBRARIES := \ libosip2 \ libgsm + ifeq ($(LINPHONE_VIDEO),1) +ifeq ($(BUILD_X264),1) +LOCAL_STATIC_LIBRARIES += \ + libmsx264 \ + libx264 +endif LOCAL_STATIC_LIBRARIES += \ libavcodec \ libswscale \ libavcore \ - libavutil \ - libmsx264 \ - libx264 + libavutil endif LOCAL_STATIC_LIBRARIES += libspeex diff --git a/coreapi/linphonecore_jni.cc b/coreapi/linphonecore_jni.cc index adb2a92b1..07acaf08a 100644 --- a/coreapi/linphonecore_jni.cc +++ b/coreapi/linphonecore_jni.cc @@ -24,7 +24,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifdef ANDROID #include extern "C" void libmsilbc_init(); +#ifdef HAVE_X264 extern "C" void libmsx264_init(); +#endif #endif /*ANDROID*/ static JavaVM *jvm=0; @@ -335,7 +337,7 @@ extern "C" jlong Java_org_linphone_core_LinphoneCoreImpl_newLinphoneCore(JNIEnv* #ifdef HAVE_ILBC libmsilbc_init(); // requires an fpu #endif -#ifdef VIDEO_ENABLED +#ifdef HAVE_X264 libmsx264_init(); #endif jlong nativePtr = (jlong)linphone_core_new( &ldata->vTable @@ -1200,4 +1202,4 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setSignalingTransportPor tr.tls_port = tls; linphone_core_set_sip_transports(lc, &tr); // tr will be copied -} \ No newline at end of file +}