aboutsummaryrefslogtreecommitdiff
path: root/Android.bp.in
blob: 612551c888e754fd2fefc84551eafe820a8e3d11 (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
cc_library {
    name: "libvpx",
    vendor_available: true,
    host_supported: true,
    version_script: "exports.lds",

    target: {
        darwin: {
            enabled: false,
        },
    },

    arch: {
        // configured to require the neon unit
        arm: {
            neon: {
                // Want arm, not thumb, optimized
                instruction_set: "arm",

                srcs: libvpx_arm_neon_c_srcs + libvpx_arm_neon_asm_srcs,
                local_include_dirs: ["config/arm-neon"],
            },
        },

        arm64: {
            srcs: libvpx_arm64_c_srcs,
            local_include_dirs: ["config/arm64"],
        },

        x86: {
            srcs: libvpx_x86_c_srcs + libvpx_x86_asm_srcs,
            local_include_dirs: ["config/x86"],
            cflags: [
                "-mssse3",
            ],
        },

        x86_64: {
            srcs: libvpx_x86_64_c_srcs + libvpx_x86_64_asm_srcs,
            local_include_dirs: ["config/x86_64"],
            cflags: [
                "-mssse3",
            ],
        },
    },

    cflags: [
        "-O3",
        "-Wno-unused-parameter",
    ],

    export_include_dirs: ["libvpx"],

    sanitize: {
        integer_overflow: true,
        misc_undefined: ["bounds"],
        // Enable CFI if this becomes a shared library.
        // cfi: true,
        blacklist: "libvpx_blacklist.txt",
    },
}

cc_fuzz {
    name: "vp9_dec_fuzzer",
    host_supported: true,
    srcs: [
        "libvpx/examples/vpx_dec_fuzzer.cc",
    ],
    target: {
        darwin: {
            enabled: false,
        },
    },
    arch: {
        arm: {
            neon: {
                local_include_dirs: ["config/arm-neon"],
            },
        },

        arm64: {
            local_include_dirs: ["config/arm64"],
        },

        x86: {
            local_include_dirs: ["config/x86"],
        },

        x86_64: {
            local_include_dirs: ["config/x86_64"],
        },
    },
    cflags: ["-DDECODER=vp9"],
    static_libs: [
        "libvpx",
    ],
}

cc_fuzz {
    name: "vp8_dec_fuzzer",
    host_supported: true,
    srcs: [
        "libvpx/examples/vpx_dec_fuzzer.cc",
    ],
    target: {
        darwin: {
            enabled: false,
        },
    },
    arch: {
        arm: {
            neon: {
                local_include_dirs: ["config/arm-neon"],
            },
        },

        arm64: {
            local_include_dirs: ["config/arm64"],
        },

        x86: {
            local_include_dirs: ["config/x86"],
        },

        x86_64: {
            local_include_dirs: ["config/x86_64"],
        },
    },

    cflags: ["-DDECODER=vp8"],
    static_libs: [
        "libvpx",
    ],
}