mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
AIDL effect: Extract common parts of effect service into cc_defaults
Bug: b/238913361 Test: atest VtsHalAudioEffectTargetTest Change-Id: I58d925b3f4a3d41d4014f54f78d95c26cc5520ea
This commit is contained in:
@@ -52,8 +52,8 @@ cc_binary {
|
||||
srcs: ["main.cpp"],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libaudioeffectserviceexampleimpl",
|
||||
cc_defaults {
|
||||
name: "aidlaudioeffectservice_defaults",
|
||||
vendor: true,
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
@@ -61,6 +61,17 @@ cc_library_static {
|
||||
"android.media.audio.common.types-V1-ndk",
|
||||
"android.hardware.audio.effect-V1-ndk",
|
||||
],
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Werror",
|
||||
"-Wthread-safety",
|
||||
],
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libaudioeffectserviceexampleimpl",
|
||||
defaults: ["aidlaudioeffectservice_defaults"],
|
||||
export_include_dirs: ["include"],
|
||||
srcs: [
|
||||
"EffectFactory.cpp",
|
||||
@@ -75,21 +86,9 @@ cc_binary {
|
||||
relative_install_path: "hw",
|
||||
init_rc: ["android.hardware.audio.effect.service-aidl.example.rc"],
|
||||
vintf_fragments: ["android.hardware.audio.effect.service-aidl.xml"],
|
||||
vendor: true,
|
||||
shared_libs: [
|
||||
"libbase",
|
||||
"libbinder_ndk",
|
||||
"android.media.audio.common.types-V1-ndk",
|
||||
"android.hardware.audio.effect-V1-ndk",
|
||||
],
|
||||
defaults: ["aidlaudioeffectservice_defaults"],
|
||||
static_libs: [
|
||||
"libaudioeffectserviceexampleimpl",
|
||||
],
|
||||
cflags: [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Werror",
|
||||
"-Wthread-safety",
|
||||
],
|
||||
srcs: ["EffectMain.cpp"],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user