Home | History | Annotate | Download | only in base
      1 // DO NOT DEPEND ON THIS DIRECTLY
      2 // use libstagefright_soft_c2-defaults instead
      3 cc_library_shared {
      4     name: "libstagefright_soft_c2common",
      5     defaults: ["libstagefright_codec2-impl-defaults"],
      6     vendor_available: true,
      7 
      8     srcs: [
      9         "SimpleC2Component.cpp",
     10         "SimpleC2Interface.cpp",
     11     ],
     12 
     13     export_include_dirs: [
     14         "include",
     15     ],
     16 
     17     export_shared_lib_headers: [
     18         "libstagefright_ccodec_utils",
     19     ],
     20 
     21     shared_libs: [
     22         "libcutils", // for properties
     23         "liblog",    // for ALOG
     24         "libstagefright_ccodec_utils", // for ImageCopy
     25         "libstagefright_foundation", // for Mutexed
     26     ],
     27 
     28     sanitize: {
     29         misc_undefined: [
     30             "unsigned-integer-overflow",
     31             "signed-integer-overflow",
     32         ],
     33         cfi: true,
     34         diag: {
     35             cfi: true,
     36         },
     37     },
     38 
     39     ldflags: ["-Wl,-Bsymbolic"],
     40 }
     41 
     42 // public dependency for software codec implementation
     43 // to be used by code under media/codecs/* only as its stability is not guaranteed
     44 cc_defaults {
     45     name: "libstagefright_soft_c2-defaults",
     46     defaults: ["libstagefright_codec2-impl-defaults"],
     47     vendor_available: true,
     48 
     49     export_shared_lib_headers: [
     50         "libstagefright_ccodec_utils",
     51     ],
     52 
     53     shared_libs: [
     54         "libcutils", // for properties
     55         "liblog", // for ALOG
     56         "libstagefright_foundation", // for ColorUtils and MIME
     57         "libstagefright_ccodec_utils", // for ImageCopy
     58         "libstagefright_soft_c2common",
     59     ],
     60 
     61     cflags: [
     62         "-Wall",
     63         "-Werror",
     64     ],
     65 
     66     ldflags: ["-Wl,-Bsymbolic"],
     67 }
     68 
     69 // public dependency for software codec implementation
     70 // to be used by code under media/codecs/* only
     71 cc_defaults {
     72     name: "libstagefright_soft_c2_sanitize_all-defaults",
     73 
     74     sanitize: {
     75         misc_undefined: [
     76             "unsigned-integer-overflow",
     77             "signed-integer-overflow",
     78         ],
     79         cfi: true,
     80         diag: {
     81             cfi: true,
     82         },
     83     },
     84 }
     85 
     86 // public dependency for software codec implementation
     87 // to be used by code under media/codecs/* only
     88 cc_defaults {
     89     name: "libstagefright_soft_c2_sanitize_signed-defaults",
     90 
     91     sanitize: {
     92         misc_undefined: [
     93             "signed-integer-overflow",
     94         ],
     95         cfi: true,
     96         diag: {
     97             cfi: true,
     98         },
     99     },
    100 }
    101 
    102 // TEMP: used by cheets2 project - remove when no longer used
    103 cc_library_shared {
    104     name: "libstagefright_simple_c2component",
    105     vendor_available: true,
    106 
    107     srcs: [
    108         "SimpleC2Interface.cpp",
    109     ],
    110 
    111     local_include_dirs: [
    112         "include",
    113     ],
    114 
    115     export_include_dirs: [
    116         "include",
    117     ],
    118 
    119     shared_libs: [
    120         "libcutils",
    121         "liblog",
    122         "libstagefright_codec2",
    123         "libstagefright_codec2_vndk",
    124         "libstagefright_foundation",
    125         "libutils",
    126     ],
    127 
    128     sanitize: {
    129         misc_undefined: [
    130             "unsigned-integer-overflow",
    131             "signed-integer-overflow",
    132         ],
    133         cfi: true,
    134         diag: {
    135             cfi: true,
    136         },
    137     },
    138 
    139     ldflags: ["-Wl,-Bsymbolic"],
    140 }
    141 
    142