• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2014 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "frameworks_av_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["frameworks_av_license"],
22}
23
24cc_library_shared {
25    name: "libimg_utils",
26
27    srcs: [
28        "src/EndianUtils.cpp",
29        "src/FileInput.cpp",
30        "src/FileOutput.cpp",
31        "src/SortedEntryVector.cpp",
32        "src/Input.cpp",
33        "src/Output.cpp",
34        "src/Orderable.cpp",
35        "src/TiffIfd.cpp",
36        "src/TiffWritable.cpp",
37        "src/TiffWriter.cpp",
38        "src/TiffEntry.cpp",
39        "src/TiffEntryImpl.cpp",
40        "src/ByteArrayOutput.cpp",
41        "src/DngUtils.cpp",
42        "src/StripSource.cpp",
43    ],
44
45    shared_libs: [
46        "liblog",
47        "libutils",
48        "libcutils",
49    ],
50
51    cflags: [
52        "-Wall",
53        "-Wextra",
54        "-Werror",
55        "-fvisibility=hidden",
56    ],
57
58    product_variables: {
59        debuggable: {
60            // Enable assert() in eng builds
61            cflags: [
62                "-UNDEBUG",
63                "-DLOG_NDEBUG=1",
64            ],
65        },
66    },
67
68    export_include_dirs: ["include"],
69}
70