diff --git a/build/gyp.mozbuild b/build/gyp.mozbuild index bb39b4f52d35..629ab93196ef 100644 --- a/build/gyp.mozbuild +++ b/build/gyp.mozbuild @@ -95,8 +95,6 @@ if CONFIG['ARM_ARCH']: # CPU detection for ARM works on Android only. armv7 always uses CPU # detection, so we have to set armv7=0 for non-Android target gyp_vars['armv7'] = 0 - # For libyuv - gyp_vars['arm_version'] = CONFIG['ARM_ARCH'] # Don't try to compile ssse3/sse4.1 code if toolchain doesn't support if CONFIG['INTEL_ARCHITECTURE']: diff --git a/media/webrtc/trunk/build/common.gypi b/media/webrtc/trunk/build/common.gypi index 3ce902585471..b39b10a105b2 100644 --- a/media/webrtc/trunk/build/common.gypi +++ b/media/webrtc/trunk/build/common.gypi @@ -196,15 +196,11 @@ # Python version. 'python_ver%': '2.6', - # Set ARM version (for libyuv) - 'arm_version%': 6, - # Set ARM-v7 compilation flags 'armv7%': 0, # Set Neon compilation flags (only meaningful if armv7==1). 'arm_neon%': 1, - 'arm_neon_optional%': 0, # The system root for cross-compiles. Default: none. 'sysroot%': '', @@ -626,10 +622,8 @@ 'fastbuild%': '<(fastbuild)', 'dcheck_always_on%': '<(dcheck_always_on)', 'python_ver%': '<(python_ver)', - 'arm_version%': '<(arm_version)', 'armv7%': '<(armv7)', 'arm_neon%': '<(arm_neon)', - 'arm_neon_optional%': '<(arm_neon_optional)', 'sysroot%': '<(sysroot)', 'system_libdir%': '<(system_libdir)', 'component%': '<(component)', diff --git a/media/webrtc/trunk/third_party/libyuv/include/libyuv/basic_types.h b/media/webrtc/trunk/third_party/libyuv/include/libyuv/basic_types.h index 4b5e4b619c8f..beb750ba65c0 100644 --- a/media/webrtc/trunk/third_party/libyuv/include/libyuv/basic_types.h +++ b/media/webrtc/trunk/third_party/libyuv/include/libyuv/basic_types.h @@ -13,26 +13,12 @@ #include // for NULL, size_t -#if !(defined(_MSC_VER) && (_MSC_VER < 1600)) +#if defined(__ANDROID__) || (defined(_MSC_VER) && (_MSC_VER < 1600)) +#include // for uintptr_t on x86 +#else #include // for uintptr_t #endif -typedef uint64_t uint64; -typedef int64_t int64; -#if defined(_MSC_VER) -// nsprpub/pr/include/obsolete/protypes.h defines these weirdly -typedef long int32; -typedef unsigned long uint32; -#else -typedef uint32_t uint32; -typedef int32_t int32; -#endif -typedef uint16_t uint16; -typedef int16_t int16; -typedef uint8_t uint8; -typedef int8_t int8; -#define INT_TYPES_DEFINED 1 - #ifndef GG_LONGLONG #ifndef INT_TYPES_DEFINED #define INT_TYPES_DEFINED diff --git a/media/webrtc/trunk/third_party/libyuv/libyuv.gyp b/media/webrtc/trunk/third_party/libyuv/libyuv.gyp index 1a7b29dbcb37..3fb7b0835be1 100644 --- a/media/webrtc/trunk/third_party/libyuv/libyuv.gyp +++ b/media/webrtc/trunk/third_party/libyuv/libyuv.gyp @@ -12,7 +12,6 @@ ], 'variables': { 'use_system_libjpeg%': 0, - 'yuv_disable_asm%': 0, 'build_neon': 0, 'conditions': [ ['target_arch == "arm" and arm_version >= 7 and (arm_neon == 1 or arm_neon_optional == 1)', { @@ -68,10 +67,10 @@ # Change type to 'shared_library' to build .so or .dll files. 'type': 'static_library', # Allows libyuv.a redistributable library without external dependencies. - # 'standalone_static_library': 1, + 'standalone_static_library': 1, 'conditions': [ # TODO(fbarchard): Use gyp define to enable jpeg. - [ 'OS != "ios" and build_with_mozilla!=1', { + [ 'OS != "ios"', { 'defines': [ 'HAVE_JPEG' ], @@ -103,24 +102,6 @@ 'LIBYUV_NEON', ] }], - [ 'yuv_disable_asm!=0', { - 'defines': [ - # Enable the following 3 macros to turn off assembly for specified CPU. - 'LIBYUV_DISABLE_X86', - 'LIBYUV_DISABLE_NEON', - 'LIBYUV_DISABLE_MIPS', - ], - }], - ['build_with_mozilla==1', { - 'include_dirs': [ - '$(DEPTH)/dist/include', - ], - 'direct_dependent_settings': { - 'include_dirs': [ - '$(DEPTH)/dist/include', - ], - }, - }], ], 'defines': [ # Enable the following 3 macros to turn off assembly for specified CPU.