diff --git a/DEPS b/DEPS index daaff8f1bf..cffbf25199 100644 --- a/DEPS +++ b/DEPS @@ -6,7 +6,7 @@ vars = { 'extra_gyp_flag': '-Dextra_gyp_flag=0', 'chromium_git': 'https://chromium.googlesource.com', - 'chromium_revision': 'b0c3ed39916e25bed2900b653974672a39fcb254', + 'chromium_revision': '2c3ffb2355a27c32f45e508ef861416b820c823b', } # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than diff --git a/talk/libjingle.gyp b/talk/libjingle.gyp index c0179da4f8..e4cb3edcbb 100755 --- a/talk/libjingle.gyp +++ b/talk/libjingle.gyp @@ -80,7 +80,12 @@ 'sources': [ 'app/webrtc/java/jni/androidvideocapturer_jni.cc', 'app/webrtc/java/jni/androidvideocapturer_jni.h', - ] + ], + 'variables': { + # This library uses native JNI exports; tell GYP so that the + # required symbols will be kept. + 'use_native_jni_exports': 1, + }, }], ['OS=="android" and build_with_chromium==0', { 'sources': [ diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn index 0133a1be17..f4a7096695 100644 --- a/webrtc/BUILD.gn +++ b/webrtc/BUILD.gn @@ -97,7 +97,7 @@ config("common_config") { # expression" warning in android_tools/ndk_experimental"s version # of stlport. # See: https://code.google.com/p/chromium/issues/detail?id=379699 - if (cpu_arch != "arm64" || !is_android) { + if (current_cpu != "arm64" || !is_android) { cflags = [ "-Wextra", # We need to repeat some flags from Chromium"s common.gypi @@ -119,7 +119,7 @@ config("common_config") { } } - if (cpu_arch == "arm64") { + if (current_cpu == "arm64") { defines += [ "WEBRTC_ARCH_ARM" ] # TODO(zhongwei) Defining an unique WEBRTC_NEON and # distinguishing ARMv7 NEON and ARM64 NEON by @@ -129,7 +129,7 @@ config("common_config") { defines += [ "WEBRTC_ARCH_ARM64_NEON" ] } - if (cpu_arch == "arm") { + if (current_cpu == "arm") { defines += [ "WEBRTC_ARCH_ARM" ] if (arm_version >= 7) { defines += [ "WEBRTC_ARCH_ARM_V7" ] @@ -141,7 +141,7 @@ config("common_config") { } } - if (cpu_arch == "mipsel") { + if (current_cpu == "mipsel") { defines += [ "MIPS32_LE" ] if (mips_fpu) { defines += [ "MIPS_FPU_LE" ] diff --git a/webrtc/base/BUILD.gn b/webrtc/base/BUILD.gn index 3bd978c4fe..fb3561bb01 100644 --- a/webrtc/base/BUILD.gn +++ b/webrtc/base/BUILD.gn @@ -544,7 +544,7 @@ static_library("rtc_base") { all_dependent_configs = [ ":mac_config" ] - if (cpu_arch == "x86") { + if (current_cpu == "x86") { all_dependent_configs += [ ":mac_x86_config" ] } } @@ -590,7 +590,7 @@ static_library("rtc_base") { defines += [ "_DEBUG" ] } - if (is_ios || (is_mac && cpu_arch != "x86")) { + if (is_ios || (is_mac && current_cpu != "x86")) { defines += [ "CARBON_DEPRECATED=YES" ] } diff --git a/webrtc/build/webrtc.gni b/webrtc/build/webrtc.gni index 7fdd46280c..e128c51566 100644 --- a/webrtc/build/webrtc.gni +++ b/webrtc/build/webrtc.gni @@ -104,13 +104,13 @@ declare_args() { rtc_enable_protobuf = false } - if (cpu_arch == "arm") { + if (current_cpu == "arm") { rtc_prefer_fixed_point = true } # TODO(ljubomir): Unset rtc_use_openmax_dl for mips64el once mips64el gets # supported in GN (since openmax_dl is not supported for mips64el). - if (!is_ios && (cpu_arch != "arm" || arm_version >= 7)) { + if (!is_ios && (current_cpu != "arm" || arm_version >= 7)) { rtc_use_openmax_dl = true } else { rtc_use_openmax_dl = false @@ -119,7 +119,7 @@ declare_args() { # WebRTC builds ARM v7 Neon instruction set optimized code for both iOS and # Android, which is why we currently cannot use the variables in # //build/config/arm.gni (since it disables Neon for Android). - rtc_build_armv7_neon = (cpu_arch == "arm" && arm_version >= 7) + rtc_build_armv7_neon = (current_cpu == "arm" && arm_version >= 7) } # Make it possible to provide custom locations for some libraries (move these diff --git a/webrtc/common_audio/BUILD.gn b/webrtc/common_audio/BUILD.gn index 4a21da0436..d3eced69ea 100644 --- a/webrtc/common_audio/BUILD.gn +++ b/webrtc/common_audio/BUILD.gn @@ -110,7 +110,7 @@ source_set("common_audio") { deps += [ "//third_party/openmax_dl/dl" ] } - if (cpu_arch == "arm") { + if (current_cpu == "arm") { sources += [ "signal_processing/complex_bit_reverse_arm.S", "signal_processing/spl_sqrt_floor_arm.S", @@ -124,7 +124,7 @@ source_set("common_audio") { } } - if (cpu_arch == "mipsel") { + if (current_cpu == "mipsel") { sources += [ "signal_processing/include/spl_inl_mips.h", "signal_processing/complex_bit_reverse_mips.c", @@ -143,7 +143,7 @@ source_set("common_audio") { sources += [ "signal_processing/complex_fft.c" ] } - if (cpu_arch != "arm" && cpu_arch != "mipsel") { + if (current_cpu != "arm" && current_cpu != "mipsel") { sources += [ "signal_processing/complex_bit_reverse.c", "signal_processing/filter_ar_fast_q12.c", @@ -170,12 +170,12 @@ source_set("common_audio") { configs -= [ "//build/config/clang:find_bad_constructs" ] } - if (cpu_arch == "x86" || cpu_arch == "x64") { + if (current_cpu == "x86" || current_cpu == "x64") { deps += [ ":common_audio_sse2" ] } } -if (cpu_arch == "x86" || cpu_arch == "x64") { +if (current_cpu == "x86" || current_cpu == "x64") { source_set("common_audio_sse2") { sources = [ "fir_filter_sse.cc", diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn index 4ce448b41a..a90f5be1ef 100644 --- a/webrtc/modules/audio_coding/BUILD.gn +++ b/webrtc/modules/audio_coding/BUILD.gn @@ -563,7 +563,7 @@ source_set("isacfix") { sources += [ "codecs/isac/fix/source/pitch_filter_c.c" ] } - if (cpu_arch == "mipsel") { + if (current_cpu == "mipsel") { sources += [ "codecs/isac/fix/source/entropy_coding_mips.c", "codecs/isac/fix/source/filters_mips.c", @@ -586,7 +586,7 @@ source_set("isacfix") { sources += [ "codecs/isac/fix/source/pitch_estimator_c.c" ] } - if (!rtc_build_armv7_neon && cpu_arch != "mipsel") { + if (!rtc_build_armv7_neon && current_cpu != "mipsel") { sources += [ "codecs/isac/fix/source/lattice_c.c" ] } } diff --git a/webrtc/modules/audio_processing/BUILD.gn b/webrtc/modules/audio_processing/BUILD.gn index 9707f08c96..589b580709 100644 --- a/webrtc/modules/audio_processing/BUILD.gn +++ b/webrtc/modules/audio_processing/BUILD.gn @@ -150,7 +150,7 @@ source_set("audio_processing") { "ns/nsx_core.h", "ns/nsx_defines.h", ] - if (cpu_arch == "mipsel") { + if (current_cpu == "mipsel") { sources += [ "ns/nsx_core_mips.c" ] } else { sources += [ "ns/nsx_core_c.c" ] @@ -175,15 +175,15 @@ source_set("audio_processing") { ] } - if (cpu_arch == "x86" || cpu_arch == "x64") { + if (current_cpu == "x86" || current_cpu == "x64") { deps += [ ":audio_processing_sse2" ] } - if (rtc_build_armv7_neon || cpu_arch == "arm64") { + if (rtc_build_armv7_neon || current_cpu == "arm64") { deps += [ ":audio_processing_neon" ] } - if (cpu_arch == "mipsel") { + if (current_cpu == "mipsel") { sources += [ "aecm/aecm_core_mips.c" ] if (mips_fpu) { sources += [ @@ -223,7 +223,7 @@ if (rtc_enable_protobuf) { } } -if (cpu_arch == "x86" || cpu_arch == "x64") { +if (current_cpu == "x86" || current_cpu == "x64") { source_set("audio_processing_sse2") { sources = [ "aec/aec_core_sse2.c", @@ -237,7 +237,7 @@ if (cpu_arch == "x86" || cpu_arch == "x64") { } } -if (rtc_build_armv7_neon || cpu_arch == "arm64") { +if (rtc_build_armv7_neon || current_cpu == "arm64") { source_set("audio_processing_neon") { sources = [ "aec/aec_core_neon.c", @@ -260,7 +260,7 @@ if (rtc_build_armv7_neon || cpu_arch == "arm64") { configs -= [ "//build/config/compiler:compiler_arm_fpu" ] # "-mfpu=neon" is not requried for arm64 in GCC. - if (cpu_arch != "arm64") { + if (current_cpu != "arm64") { cflags = [ "-mfpu=neon" ] } diff --git a/webrtc/modules/desktop_capture/BUILD.gn b/webrtc/modules/desktop_capture/BUILD.gn index 65bf9089fb..c23aa0312d 100644 --- a/webrtc/modules/desktop_capture/BUILD.gn +++ b/webrtc/modules/desktop_capture/BUILD.gn @@ -10,7 +10,7 @@ import("//build/config/ui.gni") import("../../build/webrtc.gni") use_desktop_capture_differ_sse2 = - (!is_ios && (cpu_arch == "x86" || cpu_arch == "x64")) + (!is_ios && (current_cpu == "x86" || current_cpu == "x64")) source_set("desktop_capture") { sources = [ diff --git a/webrtc/modules/video_processing/BUILD.gn b/webrtc/modules/video_processing/BUILD.gn index 56f9190c3c..22bb7c52d9 100644 --- a/webrtc/modules/video_processing/BUILD.gn +++ b/webrtc/modules/video_processing/BUILD.gn @@ -8,7 +8,7 @@ import("../../build/webrtc.gni") -build_video_processing_sse2 = cpu_arch == "x86" || cpu_arch == "x64" +build_video_processing_sse2 = current_cpu == "x86" || current_cpu == "x64" source_set("video_processing") { sources = [