AIDL effect: Extract common parts of effect service into cc_defaults am: 43f9a07e04

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2198794

Change-Id: Iabe3e5899197be286db19c8ffa9429a492764e0a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Shunkai Yao 2022-09-01 19:57:33 +00:00 committed by Automerger Merge Worker
commit acfc7ae9cb

View file

@ -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"],
}