blob: 78381176f23eb92b3ca23ea86a4a149459c88bd9 [file] [log] [blame]
Dan Willemsen154fce42018-11-16 23:15:45 -08001// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// DynamicsProcessing library
Bob Badour948e6aa2021-02-12 21:02:31 -080016package {
17 default_applicable_licenses: [
18 "frameworks_av_media_libeffects_dynamicsproc_license",
19 ],
20}
21
22// Added automatically by a large-scale-change
23// See: http://go/android-license-faq
24license {
25 name: "frameworks_av_media_libeffects_dynamicsproc_license",
26 visibility: [":__subpackages__"],
27 license_kinds: [
28 "SPDX-license-identifier-Apache-2.0",
29 ],
30 license_text: [
31 "NOTICE",
32 ],
33}
34
Shunkai Yao725af212023-01-05 23:01:40 +000035cc_defaults {
36 name : "dynamicsprocessingdefaults",
37 srcs: [
38 "dsp/DPBase.cpp",
39 "dsp/DPFrequency.cpp",
40 ],
41
42 shared_libs: [
43 "libaudioutils",
44 "libbase",
45 "liblog",
46 "libutils",
47 ],
48 header_libs: [
49 "libaudioeffects",
50 "libeigen",
51 ],
52 cflags: [
53 "-Wthread-safety",
54 "-Wall",
55 "-Werror",
56 ],
Shunkai Yao9e6cca82023-02-02 01:26:10 +000057 relative_install_path: "soundfx",
Shunkai Yao725af212023-01-05 23:01:40 +000058}
59
Dan Willemsen154fce42018-11-16 23:15:45 -080060cc_library_shared {
61 name: "libdynproc",
62
63 vendor: true,
64
Shunkai Yao725af212023-01-05 23:01:40 +000065 defaults: [
66 "dynamicsprocessingdefaults",
67 ],
68
Dan Willemsen154fce42018-11-16 23:15:45 -080069 srcs: [
70 "EffectDynamicsProcessing.cpp",
Dan Willemsen154fce42018-11-16 23:15:45 -080071 ],
72
73 cflags: [
74 "-O2",
75 "-fvisibility=hidden",
Dan Willemsen154fce42018-11-16 23:15:45 -080076 ],
Shunkai Yao725af212023-01-05 23:01:40 +000077}
Dan Willemsen154fce42018-11-16 23:15:45 -080078
Shunkai Yao725af212023-01-05 23:01:40 +000079cc_library_shared {
80 name: "libdynamicsprocessingaidl",
81
82 srcs: [
83 "aidl/DynamicsProcessing.cpp",
84 "aidl/DynamicsProcessingContext.cpp",
85 ":effectCommonFile",
86 ],
87
88 defaults: [
89 "aidlaudioservice_defaults",
90 "latest_android_hardware_audio_effect_ndk_shared",
91 "latest_android_media_audio_common_types_ndk_shared",
92 "dynamicsprocessingdefaults",
93 ],
94
Ram Mohanc89817d2023-03-14 21:39:26 +053095 static_libs: [
96 "libaudioaidlranges",
97 ],
98
Shunkai Yao725af212023-01-05 23:01:40 +000099 visibility: [
100 "//hardware/interfaces/audio/aidl/default",
Dan Willemsen154fce42018-11-16 23:15:45 -0800101 ],
102}