aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
blob: e27638f9830f516f26b5b28e4ace303aceb0ee00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package {
    default_applicable_licenses: ["external_piex_license"],
}

// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
    name: "external_piex_license",
    visibility: [":__subpackages__"],
    license_kinds: [
        "SPDX-license-identifier-Apache-2.0",
    ],
    license_text: [
        "LICENSE",
    ],
}

cc_defaults {
    name: "piex_default_cflags",
    cflags: ["-Wall", "-Werror", "-Wsign-compare"],
}

cc_library_static {
    name: "libbinary_parse",
    host_supported: true,
    defaults: ["piex_default_cflags"],
    vendor_available: true,
    product_available: true,
    srcs: [
        "src/binary_parse/cached_paged_byte_array.cc",
        "src/binary_parse/range_checked_byte_ptr.cc",
    ],
    target: {
        windows: {
            enabled: true,
        },
    },
}

cc_library_static {
    name: "libimage_type_recognition",
    host_supported: true,
    defaults: ["piex_default_cflags"],
    vendor_available: true,
    product_available: true,
    srcs: [
        "src/image_type_recognition/image_type_recognition_lite.cc",
    ],
    static_libs: ["libbinary_parse"],
    target: {
        windows: {
            enabled: true,
        },
    },
}

cc_library_static {
    name: "libtiff_directory",
    host_supported: true,
    defaults: ["piex_default_cflags"],
    vendor_available: true,
    product_available: true,
    srcs: [
        "src/tiff_directory/tiff_directory.cc",
    ],
    static_libs: ["libbinary_parse"],
    target: {
        windows: {
            enabled: true,
        },
    },
}

cc_library {
    name: "libpiex",
    host_supported: true,
    defaults: ["piex_default_cflags"],
    vendor_available: true,
    product_available: true,
    srcs: [
        "src/piex.cc",
        "src/piex_cr3.cc",
        "src/tiff_parser.cc",
    ],
    export_include_dirs: ["."],
    static_libs: [
        "libbinary_parse",
        "libimage_type_recognition",
        "libtiff_directory",
    ],
    target: {
        windows: {
            enabled: true,
        },
    },
}