1 # 2 # Copyright (C) 2008 The Android Open Source Project 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 LOCAL_PATH := $(my-dir) 17 18 ######################################### 19 # non-jni part 20 21 include $(CLEAR_VARS) 22 23 LOCAL_MODULE_TAGS := optional 24 25 LOCAL_SRC_FILES:= \ 26 exif.c \ 27 gpsinfo.c \ 28 iptc.c \ 29 jhead.c \ 30 jpgfile.c \ 31 makernote.c 32 33 LOCAL_MODULE := libexif 34 35 LOCAL_SHARED_LIBRARIES := \ 36 libcutils \ 37 libutils 38 39 include $(BUILD_SHARED_LIBRARY) 40 41 ######################################### 42 # jni part 43 44 # allow jni build if java is supported, necessary for PDK 45 ifneq ($(TARGET_BUILD_JAVA_SUPPORT_LEVEL),) 46 47 include $(CLEAR_VARS) 48 49 LOCAL_MODULE_TAGS := optional 50 51 LOCAL_SRC_FILES:= \ 52 main.c 53 54 LOCAL_MODULE := libexif_jni 55 56 LOCAL_SHARED_LIBRARIES := \ 57 libnativehelper \ 58 libcutils \ 59 libutils \ 60 libexif 61 62 include $(BUILD_SHARED_LIBRARY) 63 64 endif # JAVA_SUPPORT 65