diff options
author | Keun young Park <keunyoung@google.com> | 2012-06-06 18:18:18 -0700 |
---|---|---|
committer | Keun young Park <keunyoung@google.com> | 2012-06-07 10:06:39 -0700 |
commit | 8f596c1ee240583a15ef3de2b400b0197a146bbf (patch) | |
tree | 4466258ae42f2bfee0b11bce3b525deda607a74c /Android.mk | |
parent | bc589e85af090efae3f62b5bf328a6341884b952 (diff) | |
download | jhead-8f596c1ee240583a15ef3de2b400b0197a146bbf.tar.gz |
refactor libexif into libexif and libexif_jniandroid-cts-4.1_r1android-4.1.1_r4android-4.1.1_r3android-4.1.1_r2android-4.1.1_r1.1android-4.1.1_r1
- 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.mk | 32 |
1 files changed, 29 insertions, 3 deletions
@@ -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 |