• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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#
16LOCAL_PATH := $(my-dir)
17
18#########################################
19# non-jni part
20
21include $(CLEAR_VARS)
22
23LOCAL_SRC_FILES:= \
24	exif.c \
25	gpsinfo.c \
26	iptc.c \
27	jhead.c \
28	jpgfile.c \
29	makernote.c
30
31LOCAL_MODULE := libexif
32
33LOCAL_SHARED_LIBRARIES := \
34	libcutils \
35	libutils
36
37include $(BUILD_SHARED_LIBRARY)
38
39#########################################
40# jni part
41
42# allow jni build if java is supported, necessary for PDK
43ifneq ($(TARGET_BUILD_JAVA_SUPPORT_LEVEL),)
44
45include $(CLEAR_VARS)
46
47LOCAL_MODULE_TAGS := optional
48
49LOCAL_SRC_FILES:= \
50	main.c
51
52LOCAL_MODULE := libexif_jni
53
54LOCAL_SHARED_LIBRARIES := \
55	libnativehelper \
56	libcutils \
57	libutils \
58	libexif
59
60include $(BUILD_SHARED_LIBRARY)
61
62endif # JAVA_SUPPORT
63