Android.bp 3.02 KB
Newer Older
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
cc_library {
    name: "libyuv",
    vendor_available: true,
    vndk: {
        enabled: true,
    },

    srcs: [
        "source/compare.cc",
        "source/compare_common.cc",
        "source/compare_gcc.cc",
        "source/compare_neon.cc",
        "source/compare_neon64.cc",
        "source/compare_msa.cc",
        "source/convert.cc",
        "source/convert_argb.cc",
        "source/convert_from.cc",
        "source/convert_from_argb.cc",
        "source/convert_to_argb.cc",
        "source/convert_to_i420.cc",
        "source/cpu_id.cc",
        "source/planar_functions.cc",
        "source/rotate.cc",
        "source/rotate_any.cc",
        "source/rotate_argb.cc",
        "source/rotate_common.cc",
        "source/rotate_gcc.cc",
        "source/rotate_msa.cc",
        "source/rotate_neon.cc",
        "source/rotate_neon64.cc",
        "source/row_any.cc",
        "source/row_common.cc",
        "source/row_gcc.cc",
        "source/row_msa.cc",
        "source/row_neon.cc",
        "source/row_neon64.cc",
        "source/scale.cc",
        "source/scale_any.cc",
        "source/scale_argb.cc",
        "source/scale_common.cc",
        "source/scale_gcc.cc",
        "source/scale_msa.cc",
        "source/scale_neon.cc",
        "source/scale_neon64.cc",
        "source/video_common.cc",
        "source/convert_jpeg.cc",
        "source/mjpeg_decoder.cc",
        "source/mjpeg_validate.cc",
    ],

    cflags: [
        "-Wall",
        "-Werror",
        "-Wno-unused-parameter",
        "-fexceptions",
        "-DHAVE_JPEG",
    ],

    shared_libs: ["libjpeg"],

    export_include_dirs: ["include"],
}

// compatibilty static library until all uses of libyuv_static are replaced
// with libyuv (b/37646797)
cc_library_static {
    name: "libyuv_static",
    whole_static_libs: ["libyuv"],
}
70 71 72 73 74

cc_test {
    name: "libyuv_unittest",
    static_libs: ["libyuv"],
    shared_libs: ["libjpeg"],
75
    cflags: ["-Wall", "-Werror"],
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
    srcs: [
        "unit_test/unit_test.cc",
        "unit_test/basictypes_test.cc",
        "unit_test/color_test.cc",
        "unit_test/compare_test.cc",
        "unit_test/convert_test.cc",
        "unit_test/cpu_test.cc",
        "unit_test/cpu_thread_test.cc",
        "unit_test/math_test.cc",
        "unit_test/planar_test.cc",
        "unit_test/rotate_argb_test.cc",
        "unit_test/rotate_test.cc",
        "unit_test/scale_argb_test.cc",
        "unit_test/scale_test.cc",
        "unit_test/video_common_test.cc",
    ],
}

cc_test {
    name: "compare",
    gtest: false,
    srcs: [
        "util/compare.cc",
    ],
    static_libs: ["libyuv"],
}

cc_test {
    name: "cpuid",
    gtest: false,
    srcs: [
        "util/cpuid.c",
    ],
    static_libs: ["libyuv"],
}

cc_test {
    name: "psnr",
    gtest: false,
    srcs: [
        "util/psnr_main.cc",
        "util/psnr.cc",
        "util/ssim.cc",
    ],
    static_libs: ["libyuv"],
}

cc_test {
    name: "yuvconvert",
    gtest: false,
    srcs: [
        "util/yuvconvert.cc",
    ],
    static_libs: ["libyuv"],
    shared_libs: ["libjpeg"],
}