• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_applicable_licenses: ["external_piex_license"],
3}
4
5// Added automatically by a large-scale-change
6// See: http://go/android-license-faq
7license {
8    name: "external_piex_license",
9    visibility: [":__subpackages__"],
10    license_kinds: [
11        "SPDX-license-identifier-Apache-2.0",
12    ],
13    license_text: [
14        "LICENSE",
15    ],
16}
17
18cc_defaults {
19    name: "piex_default_cflags",
20    cflags: ["-Wall", "-Werror", "-Wsign-compare"],
21}
22
23cc_library_static {
24    name: "libbinary_parse",
25    host_supported: true,
26    defaults: ["piex_default_cflags"],
27    vendor_available: true,
28    product_available: true,
29    srcs: [
30        "src/binary_parse/cached_paged_byte_array.cc",
31        "src/binary_parse/range_checked_byte_ptr.cc",
32    ],
33    target: {
34        windows: {
35            enabled: true,
36        },
37    },
38}
39
40cc_library_static {
41    name: "libimage_type_recognition",
42    host_supported: true,
43    defaults: ["piex_default_cflags"],
44    vendor_available: true,
45    product_available: true,
46    srcs: [
47        "src/image_type_recognition/image_type_recognition_lite.cc",
48    ],
49    static_libs: ["libbinary_parse"],
50    target: {
51        windows: {
52            enabled: true,
53        },
54    },
55}
56
57cc_library_static {
58    name: "libtiff_directory",
59    host_supported: true,
60    defaults: ["piex_default_cflags"],
61    vendor_available: true,
62    product_available: true,
63    srcs: [
64        "src/tiff_directory/tiff_directory.cc",
65    ],
66    static_libs: ["libbinary_parse"],
67    target: {
68        windows: {
69            enabled: true,
70        },
71    },
72}
73
74cc_library {
75    name: "libpiex",
76    host_supported: true,
77    defaults: ["piex_default_cflags"],
78    vendor_available: true,
79    product_available: true,
80    vndk: {
81        enabled: true,
82    },
83    srcs: [
84        "src/tiff_parser.cc",
85        "src/piex.cc",
86    ],
87    export_include_dirs: ["."],
88    static_libs: [
89        "libbinary_parse",
90        "libimage_type_recognition",
91        "libtiff_directory",
92    ],
93    target: {
94        windows: {
95            enabled: true,
96        },
97    },
98}
99