• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// DO NOT DEPEND ON THIS DIRECTLY
2// use libcodec2_soft-defaults instead
3package {
4    // See: http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // all of the 'license_kinds' from "device_generic_goldfish-opengl_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-Apache-2.0
9    default_applicable_licenses: ["device_generic_goldfish-opengl_license"],
10}
11
12cc_library_shared {
13    name: "libcodec2_goldfish_common",
14    defaults: ["libcodec2-impl-defaults"],
15    vendor: true,
16
17    srcs: [
18        "SimpleC2Component.cpp",
19        "SimpleC2Interface.cpp",
20        "goldfish_media_utils.cpp",
21        "color_buffer_utils.cpp",
22    ],
23
24    export_include_dirs: [
25        "include",
26    ],
27
28    export_shared_lib_headers: [
29        "libsfplugin_ccodec_utils",
30        "libgoldfish_codec2_store", // for goldfish store
31    ],
32
33    shared_libs: [
34        "libcutils", // for properties
35        "liblog",    // for ALOG
36        "libdrm",    // for ALOG
37        "libbase",   // for properties, parseint
38        "libsfplugin_ccodec_utils", // for ImageCopy
39        "libstagefright_foundation", // for Mutexed
40        "libgoldfish_codec2_store", // for goldfish store
41    ],
42
43    static_libs: [
44        "libGoldfishAddressSpace",
45    ],
46
47    header_libs: [
48        "libgralloc_cb.ranchu",
49    ],
50
51    sanitize: {
52        misc_undefined: [
53            "unsigned-integer-overflow",
54            "signed-integer-overflow",
55        ],
56        cfi: true,
57    },
58
59
60    ldflags: ["-Wl,-Bsymbolic"],
61}
62
63// public dependency for software codec implementation
64// to be used by code under media/codecs/* only as its stability is not guaranteed
65cc_defaults {
66    name: "libcodec2_goldfish-defaults",
67    defaults: ["libcodec2-impl-defaults"],
68    export_shared_lib_headers: [
69        "libsfplugin_ccodec_utils",
70    ],
71
72    shared_libs: [
73        "libcodec2_goldfish_common",
74        "libcutils", // for properties
75        "liblog", // for ALOG
76        "libsfplugin_ccodec_utils", // for ImageCopy
77        "libstagefright_foundation", // for ColorUtils and MIME
78    ],
79
80    cflags: [
81        "-Wall",
82        "-Werror",
83    ],
84
85    ldflags: ["-Wl,-Bsymbolic"],
86}
87