blob: d3b3a734f94363583b2a3751e4824180536bc0a3 [file] [log] [blame]
Michael Wright3fee95e2018-12-12 19:51:26 +00001// 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
Bob Badour3306e492021-02-25 15:35:37 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_native_license"],
22}
23
Jeongik Chae214e642022-09-26 23:08:56 +090024cc_defaults {
25 name: "libvibrator_defaults",
Michael Wright3fee95e2018-12-12 19:51:26 +000026
Lais Andradefd0e14c2024-07-30 15:57:23 +010027 defaults: [
28 "aconfig_lib_cc_shared_link.defaults",
29 ],
30
Michael Wright3fee95e2018-12-12 19:51:26 +000031 cflags: [
32 "-Wall",
33 "-Werror",
34 "-Wno-missing-field-initializers",
35 "-Wno-unused-variable",
36 "-Wno-unused-parameter",
37 ],
38
39 export_include_dirs: ["include"],
Ayushi Khopkar9329e492020-10-30 16:37:42 +053040
41 host_supported: true,
42 target: {
43 darwin: {
44 enabled: false,
45 },
46 },
Michael Wright3fee95e2018-12-12 19:51:26 +000047}
Jeongik Chae214e642022-09-26 23:08:56 +090048
49cc_library {
50 name: "libvibrator",
51 defaults: ["libvibrator_defaults"],
52
53 shared_libs: [
54 "libbinder",
55 "liblog",
56 "libutils",
Lais Andradefd0e14c2024-07-30 15:57:23 +010057 "server_configurable_flags",
Jeongik Chae214e642022-09-26 23:08:56 +090058 ],
59
60 whole_static_libs: [
Lais Andradefd0e14c2024-07-30 15:57:23 +010061 "android.os.vibrator.flags-aconfig-cc",
Jeongik Chae214e642022-09-26 23:08:56 +090062 "libvibratorutils",
63 ],
64
65 header_libs: [
66 "libaudio_system_headers",
67 ],
68
69 aidl: {
70 include_dirs: ["frameworks/base/core/java"],
71 local_include_dirs: ["include/"],
72 export_aidl_headers: true,
73 },
74
75 srcs: [
76 ":libvibrator_aidl",
77 "ExternalVibration.cpp",
78 ],
79}
80
81cc_library {
82 name: "libvibratorutils",
83 defaults: ["libvibrator_defaults"],
84
85 vendor_available: true,
86 double_loadable: true,
87
Lais Andradefd0e14c2024-07-30 15:57:23 +010088 static_libs: [
89 "android.os.vibrator.flags-aconfig-cc",
90 ],
91
Jeongik Chae214e642022-09-26 23:08:56 +090092 shared_libs: [
Lais Andradefd0e14c2024-07-30 15:57:23 +010093 "liblog",
Jeongik Chae214e642022-09-26 23:08:56 +090094 "libutils",
Lais Andradefd0e14c2024-07-30 15:57:23 +010095 "server_configurable_flags",
Jeongik Chae214e642022-09-26 23:08:56 +090096 ],
97
98 srcs: [
99 "ExternalVibrationUtils.cpp",
100 ],
101
102 visibility: [
103 "//frameworks/native/libs/vibrator",
Lais Andradefd0e14c2024-07-30 15:57:23 +0100104 "//frameworks/native/libs/vibrator/tests",
Jeongik Chae214e642022-09-26 23:08:56 +0900105 "//frameworks/av/media/libeffects/hapticgenerator",
106 ],
107}