Marco Nelissen | 785d046 | 2014-01-08 10:36:48 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2013 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 | include $(CLEAR_VARS) |
| 19 | |
| 20 | # WARNING: this makefile builds a shared library. Do not ever make it build |
| 21 | # a static library or otherwise statically link libexif with your code. |
| 22 | |
Marco Nelissen | 25d3713 | 2014-03-04 08:42:56 -0800 | [diff] [blame] | 23 | LOCAL_CLANG := true |
| 24 | |
Marco Nelissen | 785d046 | 2014-01-08 10:36:48 -0800 | [diff] [blame] | 25 | LOCAL_C_INCLUDES := \ |
| 26 | $(TOP)/external/libexif |
| 27 | |
| 28 | LOCAL_SRC_FILES:= \ |
| 29 | exif-byte-order.c \ |
| 30 | exif-content.c \ |
| 31 | exif-data.c \ |
| 32 | exif-entry.c \ |
| 33 | exif-format.c \ |
| 34 | exif-ifd.c \ |
| 35 | exif-loader.c \ |
| 36 | exif-log.c \ |
| 37 | exif-mem.c \ |
| 38 | exif-mnote-data.c \ |
| 39 | exif-tag.c \ |
| 40 | exif-utils.c \ |
| 41 | canon/exif-mnote-data-canon.c \ |
| 42 | canon/mnote-canon-entry.c \ |
| 43 | canon/mnote-canon-tag.c \ |
| 44 | olympus/exif-mnote-data-olympus.c \ |
| 45 | olympus/mnote-olympus-tag.c \ |
| 46 | olympus/mnote-olympus-entry.c \ |
| 47 | fuji/exif-mnote-data-fuji.c \ |
| 48 | fuji/mnote-fuji-entry.c \ |
| 49 | fuji/mnote-fuji-tag.c \ |
| 50 | pentax/exif-mnote-data-pentax.c \ |
| 51 | pentax/mnote-pentax-entry.c \ |
| 52 | pentax/mnote-pentax-tag.c |
| 53 | |
Sheng-Hao Tsao | bcbfc5e | 2016-01-27 19:36:37 +0800 | [diff] [blame] | 54 | # Because all the include statements in the header files are in double layer |
| 55 | # ("libexif/XXXX.h") style, we need to set the export root to the parent folder. |
| 56 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/.. |
Marco Nelissen | 785d046 | 2014-01-08 10:36:48 -0800 | [diff] [blame] | 57 | |
| 58 | LOCAL_MODULE := libexif |
| 59 | |
| 60 | LOCAL_SHARED_LIBRARIES := \ |
| 61 | libcutils \ |
| 62 | libutils \ |
| 63 | liblog |
| 64 | |
Marco Nelissen | 25d3713 | 2014-03-04 08:42:56 -0800 | [diff] [blame] | 65 | LOCAL_CFLAGS += -ftrapv |
| 66 | |
Marco Nelissen | 785d046 | 2014-01-08 10:36:48 -0800 | [diff] [blame] | 67 | include $(BUILD_SHARED_LIBRARY) |
| 68 | |
| 69 | # WARNING: this makefile builds a shared library. Do not ever make it build |
| 70 | # a static library or otherwise statically link libexif with your code. |
| 71 | |