blob: 1db830fbddc55212850c9a6366594dd944d14d90 [file] [log] [blame]
Steven Morelande1786082017-04-27 14:05:22 -07001//
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.
19cc_library_shared {
20 name: "libexif",
Justin Yun865d8f52017-07-24 15:19:44 +090021 vendor_available: true,
22 vndk: {
23 enabled: true,
24 },
Steven Morelande1786082017-04-27 14:05:22 -070025
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 Peev8e7345f2020-07-30 16:53:29 -070053 shared_libs: [
54 "liblog",
55 ],
56
Colin Cross2431bfa2017-05-16 14:01:50 -070057 export_include_dirs: ["."],
Steven Morelande1786082017-04-27 14:05:22 -070058
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 Lozano60e63382017-09-29 09:48:48 -070071 sanitize: {
72 integer_overflow: true,
73 blacklist: "libexif_blacklist.txt",
74 },
Steven Morelande1786082017-04-27 14:05:22 -070075}
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.