summaryrefslogtreecommitdiffstats
path: root/jni
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-07-18 23:40:14 (GMT)
committerAndrew Hsieh <andrewhsieh@google.com>2012-07-23 16:59:16 (GMT)
commit7c3884646bd55993c2488007b6a9e9d6f13f0297 (patch)
treeebed3dfea454b5bbd5d419ce01c34becde062bf8 /jni
parent1be429dec24f5fabb34083b8d0c264661e33924e (diff)
downloadandroid_packages_apps_Snap-7c3884646bd55993c2488007b6a9e9d6f13f0297.zip
android_packages_apps_Snap-7c3884646bd55993c2488007b6a9e9d6f13f0297.tar.gz
android_packages_apps_Snap-7c3884646bd55993c2488007b6a9e9d6f13f0297.tar.bz2
Fixed x86 build
NDK supports x86 from r6. Without setting correct LOCAL_NDK_VERSION build may fail to add library path for "-llog" and "-lEGL" Change-Id: I863e20e434d274b5d8924eafcf1f5e1d0b05f90d
Diffstat (limited to 'jni')
-rw-r--r--jni/Android.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/jni/Android.mk b/jni/Android.mk
index e86ec8d..593074f 100644
--- a/jni/Android.mk
+++ b/jni/Android.mk
@@ -9,11 +9,15 @@ LOCAL_SRC_FILES := jni_egl_fence.cpp
ifeq ($(TARGET_ARCH), arm)
LOCAL_NDK_VERSION := 5
LOCAL_SDK_VERSION := 9
- LOCAL_LDFLAGS := -llog -lEGL
-else
- LOCAL_SHARED_LIBRARIES := liblog libEGL
endif
+ifeq ($(TARGET_ARCH), x86)
+ LOCAL_NDK_VERSION := 6
+ LOCAL_SDK_VERSION := 9
+endif
+
+LOCAL_LDFLAGS := -llog -lEGL
+
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := libjni_eglfence