forked from mirrors/linphone-iphone
Revert "Fix armv5/gcc build for Android" that is breaking build on Linux systems.
This reverts commit d643672e81.
This commit is contained in:
parent
9507e4bd33
commit
45e9c3a49c
4 changed files with 7 additions and 6 deletions
|
|
@ -381,9 +381,6 @@ foreach (header ${LINPHONE_CXX_OBJECTS_PRIVATE_HEADER_FILES})
|
|||
endforeach ()
|
||||
set(LINPHONE_PRIVATE_HEADER_FILES ${LINPHONE_PRIVATE_HEADER_FILES} PARENT_SCOPE)
|
||||
|
||||
if (ANDROID AND CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
list(APPEND STRICT_OPTIONS_CXX "-Wno-attributes")
|
||||
endif()
|
||||
bc_apply_compile_flags(LINPHONE_CXX_OBJECTS_SOURCE_FILES STRICT_OPTIONS_CPP STRICT_OPTIONS_CXX)
|
||||
bc_apply_compile_flags(LINPHONE_OBJC_SOURCE_FILES STRICT_OPTIONS_CPP STRICT_OPTIONS_OBJC)
|
||||
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ endif()
|
|||
|
||||
# TODO: Remove me later!
|
||||
list(REMOVE_ITEM STRICT_OPTIONS_CPP "-Wconversion" "-Werror=conversion" "-Wcast-align" "-Werror=cast-align")
|
||||
list (APPEND STRICT_OPTIONS_C "-std=c99")
|
||||
|
||||
bc_apply_compile_flags(SOURCE_FILES_C STRICT_OPTIONS_CPP STRICT_OPTIONS_C)
|
||||
bc_apply_compile_flags(SOURCE_FILES_CXX STRICT_OPTIONS_CPP STRICT_OPTIONS_CXX)
|
||||
bc_apply_compile_flags(SOURCE_FILES_OBJC STRICT_OPTIONS_CPP STRICT_OPTIONS_OBJC)
|
||||
|
|
|
|||
|
|
@ -75,7 +75,6 @@ static const char *on_report_send_verify_metrics (const reporting_content_metric
|
|||
return body;
|
||||
}
|
||||
|
||||
#if VIDEO_ENABLED
|
||||
static void on_report_send_with_rtcp_xr_local (const LinphoneCall *call, SalStreamType stream_type, const LinphoneContent *content) {
|
||||
char *remote_metrics_start = __strstr(linphone_content_get_string_buffer(content), "RemoteMetrics:");
|
||||
reporting_session_report_t *report = linphone_quality_reporting_get_reports(linphone_call_log_get_quality_reporting(linphone_call_get_log(call)))[stream_type];
|
||||
|
|
@ -85,7 +84,6 @@ static void on_report_send_with_rtcp_xr_local (const LinphoneCall *call, SalStre
|
|||
BC_ASSERT_PTR_NOT_NULL(body = __strstr(body, "LocalMetrics:"));
|
||||
BC_ASSERT_TRUE(!remote_metrics_start || on_report_send_verify_metrics(&report->local_metrics, body) < remote_metrics_start);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void on_report_send_with_rtcp_xr_remote (const LinphoneCall *call, SalStreamType stream_type, const LinphoneContent *content) {
|
||||
char *body = (char *)linphone_content_get_buffer(content);
|
||||
|
|
|
|||
|
|
@ -69,6 +69,12 @@ static jlong GetObjectNativePtr(JNIEnv *env, jobject object) {
|
|||
return nativePtr;
|
||||
}
|
||||
|
||||
static void SetObjectNativePtr(JNIEnv *env, jobject object, jlong ptr) {
|
||||
jclass objClass = env->GetObjectClass(object);
|
||||
jfieldID nativePtrId = env->GetFieldID(objClass, "nativePtr", "J");
|
||||
env->SetLongField(object, nativePtrId, ptr);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void linphone_android_log_handler(int prio, char *str) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue