summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorKeun young Park <keunyoung@google.com>2012-06-06 18:18:18 -0700
committerKeun young Park <keunyoung@google.com>2012-06-07 10:06:39 -0700
commit8f596c1ee240583a15ef3de2b400b0197a146bbf (patch)
tree4466258ae42f2bfee0b11bce3b525deda607a74c /Android.mk
parentbc589e85af090efae3f62b5bf328a6341884b952 (diff)
downloadjhead-8f596c1ee240583a15ef3de2b400b0197a146bbf.tar.gz
- In PDK case, jni part is built only when java is supported - both libexif and libexif_jni no longer belong to user tag Bug: 6623618 Change-Id: I33a1f19654eb0ffb97733a4a59b9bad5938d2e91
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk32
1 files changed, 29 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk
index 4754738..8933df8 100644
--- a/Android.mk
+++ b/Android.mk
@@ -15,12 +15,14 @@
#
LOCAL_PATH := $(my-dir)
+#########################################
+# non-jni part
+
include $(CLEAR_VARS)
-LOCAL_MODULE_TAGS := user
+LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES:= \
- main.c \
exif.c \
gpsinfo.c \
iptc.c \
@@ -31,8 +33,32 @@ LOCAL_SRC_FILES:= \
LOCAL_MODULE := libexif
LOCAL_SHARED_LIBRARIES := \
- libnativehelper \
libcutils \
libutils
include $(BUILD_SHARED_LIBRARY)
+
+#########################################
+# jni part
+
+# allow jni build if java is supported, necessary for PDK
+ifneq ($(TARGET_BUILD_JAVA_SUPPORT_LEVEL),)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_SRC_FILES:= \
+ main.c
+
+LOCAL_MODULE := libexif_jni
+
+LOCAL_SHARED_LIBRARIES := \
+ libnativehelper \
+ libcutils \
+ libutils \
+ libexif
+
+include $(BUILD_SHARED_LIBRARY)
+
+endif # JAVA_SUPPORT