cc_library_static {
    name: "libaom",
    vendor_available: true,
    cflags: [
        "-O3",
    ],

    export_include_dirs: [
        "libaom",
    ],

    arch: {
        arm64: {
            local_include_dirs: [
                "config/",
                "config/arm64/",
            ],
            srcs: aom_av1_common_sources +
                aom_av1_decoder_sources +
                aom_dsp_common_sources +
                aom_dsp_decoder_sources +
                aom_mem_sources +
                ["libaom/aom_ports/arm_cpudetect.c"] +
                aom_rtcd_sources +
                aom_scale_sources +
                aom_sources +
                aom_util_sources +
                aom_av1_common_intrin_neon +
                aom_dsp_common_intrin_neon,
        },

        // configured to require the neon unit
        arm: {
            neon: {
                local_include_dirs: [
                    "config/",
                    "config/arm/",
                ],
                srcs: aom_av1_common_sources +
                    aom_av1_decoder_sources +
                    aom_dsp_common_sources +
                    aom_dsp_decoder_sources +
                    aom_mem_sources +
                    aom_rtcd_sources +
                    ["libaom/aom_ports/arm_cpudetect.c"] +
                    aom_scale_sources +
                    aom_sources +
                    aom_util_sources +
                    aom_av1_common_intrin_neon +
                    aom_dsp_common_intrin_neon,
            },
        },

        x86_64: {
            local_include_dirs: [
                "config/",
                "config/x86_64/",
            ],
            srcs: aom_av1_common_sources +
                aom_av1_decoder_sources +
                aom_dsp_common_sources +
                aom_dsp_decoder_sources +
                aom_mem_sources +
                aom_rtcd_sources +
                aom_scale_sources +
                aom_sources +
                aom_util_sources +
                aom_dsp_common_asm_sse2 +
                aom_dsp_common_asm_ssse3 +
                aom_ports_asm_x86 +
                aom_av1_common_intrin_sse2 +
                aom_dsp_common_intrin_sse2 +
                aom_av1_common_intrin_ssse3 +
                aom_dsp_common_intrin_ssse3,
        },

        x86: {
            local_include_dirs: [
                "config/",
                "config/x86/",
            ],
            srcs: aom_av1_common_sources +
                aom_av1_decoder_sources +
                aom_dsp_common_sources +
                aom_dsp_decoder_sources +
                aom_mem_sources +
                aom_rtcd_sources +
                aom_scale_sources +
                aom_sources +
                aom_util_sources +
                aom_dsp_common_asm_sse2 +
                aom_dsp_common_asm_ssse3 +
                aom_ports_asm_x86 +
                aom_av1_common_intrin_sse2 +
                aom_dsp_common_intrin_sse2 +
                aom_av1_common_intrin_ssse3 +
                aom_dsp_common_intrin_ssse3,
        },

    },

}