• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    default_team: "trendy_team_android_media_audio_framework",
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "frameworks_av_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["frameworks_av_license"],
9}
10
11cc_library_headers {
12    name: "libaudiopolicyengineconfigurable_interface_headers",
13    host_supported: true,
14    export_include_dirs: ["interface"],
15}
16
17cc_library_shared {
18    name: "libaudiopolicyengineconfigurable",
19    export_include_dirs: ["include"],
20    srcs: [
21        "src/Engine.cpp",
22        "src/EngineInstance.cpp",
23        "src/InputSource.cpp",
24        "src/Stream.cpp",
25    ],
26    cflags: [
27        "-DENABLE_CAP_AIDL_HYBRID_MODE",
28        "-Wall",
29        "-Werror",
30        "-Wextra",
31    ] + select(release_flag("RELEASE_HARDWARE_AUDIO_USE_CAP_AIDL"), {
32        true: [],
33        default: ["-DDISABLE_CAP_AIDL"],
34    }),
35    local_include_dirs: ["include"],
36    header_libs: [
37        "libaudiopolicycommon",
38        "libaudiopolicyengine_interface_headers",
39        "libaudiopolicyengineconfigurable_interface_headers",
40        "libbase_headers",
41    ],
42    static_libs: [
43        "libaudiopolicycapengine_config",
44        "libaudiopolicyengine_common",
45        "libaudiopolicyengine_config",
46        "libaudiopolicyengineconfigurable_pfwwrapper",
47    ],
48    shared_libs: [
49        "com.android.media.audioserver-aconfig-cc",
50        "libaudio_aidl_conversion_common_cpp",
51        "libaudiofoundation",
52        "libaudiopolicy",
53        "libaudiopolicycomponents",
54        "libbase",
55        "libcutils",
56        "liblog",
57        "libmedia_helper",
58        "libparameter",
59        "libutils",
60        "libxml2",
61    ],
62    defaults: [
63        "aconfig_lib_cc_static_link.defaults",
64        "latest_android_media_audio_common_types_cpp_shared",
65    ],
66    required: [
67    ] + select(release_flag("RELEASE_HARDWARE_AUDIO_USE_CAP_AIDL"), {
68        true: [
69            "CapClass.xml",
70            "CapProductStrategies.xml",
71            "CapSubsystem-CommonTypes.xml",
72            "CapSubsystem.xml",
73            "ParameterFrameworkConfigurationCap.xml",
74        ],
75        default: [
76            // empty, provisionned by the vendor
77        ],
78    }),
79}
80