Diable libyuv build on x86. G+ does not compile libjingle (which uses libyuv) on x86 either
Change-Id: Iddd54af6cdbbc6f654442dc77b5c871710d404d2
diff --git a/Android.mk b/Android.mk
index 4ad534a..5ce22e0 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,5 +1,7 @@
# This is the Android makefile for google3/third_party/libsrtp so that we can
# build it with the Android NDK.
+ifneq ($(TARGET_ARCH),x86)
+
LOCAL_PATH := $(call my-dir)
common_SRC_FILES := \
@@ -26,12 +28,9 @@
LOCAL_CPP_EXTENSION := .cc
-ifneq ($(TARGET_ARCH),x86)
- LOCAL_NDK_VERSION := 5
- LOCAL_SDK_VERSION := 9
- LOCAL_NDK_STL_VARIANT := stlport_static
-endif
-
+LOCAL_NDK_VERSION := 5
+LOCAL_SDK_VERSION := 9
+LOCAL_NDK_STL_VARIANT := stlport_static
LOCAL_SRC_FILES := $(common_SRC_FILES)
LOCAL_CFLAGS += $(common_CFLAGS)
@@ -41,3 +40,5 @@
LOCAL_MODULE_TAGS := optional
include $(BUILD_STATIC_LIBRARY)
+
+endif