blob: 99a1766b414b1bca9c5ac15a8d7fecd19ea0eedf [file] [log] [blame]
The Android Open Source Project34a25642009-03-03 19:30:03 -08001#
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#
16LOCAL_PATH := $(my-dir)
17
Keun young Park8f596c12012-06-06 18:18:18 -070018#########################################
19# non-jni part
20
The Android Open Source Project34a25642009-03-03 19:30:03 -080021include $(CLEAR_VARS)
22
The Android Open Source Project34a25642009-03-03 19:30:03 -080023LOCAL_SRC_FILES:= \
The Android Open Source Project34a25642009-03-03 19:30:03 -080024 exif.c \
25 gpsinfo.c \
26 iptc.c \
27 jhead.c \
28 jpgfile.c \
29 makernote.c
30
Marco Nelissenf78ba582013-12-19 14:18:12 -080031LOCAL_MODULE := libjhead
The Android Open Source Project34a25642009-03-03 19:30:03 -080032
33LOCAL_SHARED_LIBRARIES := \
The Android Open Source Project34a25642009-03-03 19:30:03 -080034 libcutils \
Ying Wangb7887502013-04-09 21:49:13 -070035 libutils \
36 liblog
The Android Open Source Project34a25642009-03-03 19:30:03 -080037
38include $(BUILD_SHARED_LIBRARY)
Keun young Park8f596c12012-06-06 18:18:18 -070039
40#########################################
41# jni part
42
43# allow jni build if java is supported, necessary for PDK
44ifneq ($(TARGET_BUILD_JAVA_SUPPORT_LEVEL),)
45
46include $(CLEAR_VARS)
47
48LOCAL_MODULE_TAGS := optional
49
50LOCAL_SRC_FILES:= \
51 main.c
52
Marco Nelissenf78ba582013-12-19 14:18:12 -080053LOCAL_MODULE := libjhead_jni
Keun young Park8f596c12012-06-06 18:18:18 -070054
55LOCAL_SHARED_LIBRARIES := \
56 libnativehelper \
57 libcutils \
58 libutils \
Ying Wangb7887502013-04-09 21:49:13 -070059 liblog \
Marco Nelissenf78ba582013-12-19 14:18:12 -080060 libjhead
Keun young Park8f596c12012-06-06 18:18:18 -070061
62include $(BUILD_SHARED_LIBRARY)
63
64endif # JAVA_SUPPORT