summaryrefslogtreecommitdiffstats
path: root/jni
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2012-07-04 08:32:57 (GMT)
committerWu-cheng Li <wuchengli@google.com>2012-07-11 11:51:18 (GMT)
commit6afb3b8d234ed1a0ba27f4f2e4921f69cabbf2e0 (patch)
treee09038770863eaa67bec5b9d47e7a67855cff77e /jni
parentcd44238580181e2f5100794be59a2b15e9d68b1d (diff)
downloadandroid_packages_apps_Snap-6afb3b8d234ed1a0ba27f4f2e4921f69cabbf2e0.zip
android_packages_apps_Snap-6afb3b8d234ed1a0ba27f4f2e4921f69cabbf2e0.tar.gz
android_packages_apps_Snap-6afb3b8d234ed1a0ba27f4f2e4921f69cabbf2e0.tar.bz2
Make jni build against NDK.
bug:6698708 Change-Id: I913e2f29657abc0af79223ba49148a6080d39ba7
Diffstat (limited to 'jni')
-rw-r--r--jni/Android.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/jni/Android.mk b/jni/Android.mk
index eedfa0b..a4fb844 100644
--- a/jni/Android.mk
+++ b/jni/Android.mk
@@ -6,11 +6,15 @@ LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES
LOCAL_SRC_FILES := jni_egl_fence.cpp
-LOCAL_SHARED_LIBRARIES := libcutils libEGL
+ifeq ($(TARGET_ARCH), arm)
+ LOCAL_NDK_VERSION := 5
+ LOCAL_SDK_VERSION := 9
+endif
+
+LOCAL_LDFLAGS := -llog -lEGL
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := libjni_eglfence
include $(BUILD_SHARED_LIBRARY)
-