Steven Moreland | e178608 | 2017-04-27 14:05:22 -0700 | [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 | |
| 17 | // WARNING: this makefile builds a shared library. Do not ever make it build |
| 18 | // a static library or otherwise statically link libexif with your code. |
| 19 | cc_library_shared { |
| 20 | name: "libexif", |
Justin Yun | 865d8f5 | 2017-07-24 15:19:44 +0900 | [diff] [blame] | 21 | vendor_available: true, |
| 22 | vndk: { |
| 23 | enabled: true, |
| 24 | }, |
Steven Moreland | e178608 | 2017-04-27 14:05:22 -0700 | [diff] [blame] | 25 | |
| 26 | srcs: [ |
| 27 | "libexif/exif-byte-order.c", |
| 28 | "libexif/exif-content.c", |
| 29 | "libexif/exif-data.c", |
| 30 | "libexif/exif-entry.c", |
| 31 | "libexif/exif-format.c", |
| 32 | "libexif/exif-ifd.c", |
| 33 | "libexif/exif-loader.c", |
| 34 | "libexif/exif-log.c", |
| 35 | "libexif/exif-mem.c", |
| 36 | "libexif/exif-mnote-data.c", |
| 37 | "libexif/exif-tag.c", |
| 38 | "libexif/exif-utils.c", |
| 39 | "libexif/canon/exif-mnote-data-canon.c", |
| 40 | "libexif/canon/mnote-canon-entry.c", |
| 41 | "libexif/canon/mnote-canon-tag.c", |
| 42 | "libexif/olympus/exif-mnote-data-olympus.c", |
| 43 | "libexif/olympus/mnote-olympus-tag.c", |
| 44 | "libexif/olympus/mnote-olympus-entry.c", |
| 45 | "libexif/fuji/exif-mnote-data-fuji.c", |
| 46 | "libexif/fuji/mnote-fuji-entry.c", |
| 47 | "libexif/fuji/mnote-fuji-tag.c", |
| 48 | "libexif/pentax/exif-mnote-data-pentax.c", |
| 49 | "libexif/pentax/mnote-pentax-entry.c", |
| 50 | "libexif/pentax/mnote-pentax-tag.c", |
| 51 | ], |
| 52 | |
Emilian Peev | 8e7345f | 2020-07-30 16:53:29 -0700 | [diff] [blame] | 53 | shared_libs: [ |
| 54 | "liblog", |
| 55 | ], |
| 56 | |
Colin Cross | 2431bfa | 2017-05-16 14:01:50 -0700 | [diff] [blame] | 57 | export_include_dirs: ["."], |
Steven Moreland | e178608 | 2017-04-27 14:05:22 -0700 | [diff] [blame] | 58 | |
| 59 | cflags: [ |
| 60 | "-ftrapv", |
| 61 | |
| 62 | // TODO(b/27347470): Disable the following warnings. |
| 63 | "-Wno-conversion", |
| 64 | "-Wno-unused-parameter", |
| 65 | "-Wno-missing-field-initializers", |
| 66 | "-Wno-switch", |
| 67 | "-Wno-absolute-value", |
| 68 | "-Werror", |
| 69 | ], |
| 70 | |
Ivan Lozano | 60e6338 | 2017-09-29 09:48:48 -0700 | [diff] [blame] | 71 | sanitize: { |
| 72 | integer_overflow: true, |
| 73 | blacklist: "libexif_blacklist.txt", |
| 74 | }, |
Steven Moreland | e178608 | 2017-04-27 14:05:22 -0700 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | // WARNING: this makefile builds a shared library. Do not ever make it build |
| 78 | // a static library or otherwise statically link libexif with your code. |