blob: 11b09bdcede871c328b1e35563ea0fca648a5b56 [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 Badour3c538232021-02-12 21:26:48 -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
Ayushi Khopkar9329e492020-10-30 16:37:42 +053024cc_library {
Michael Wright3fee95e2018-12-12 19:51:26 +000025 name: "libvibrator",
26
27 shared_libs: [
28 "libbinder",
29 "liblog",
30 "libutils",
31 ],
32
33 header_libs: [
34 "libaudio_system_headers",
35 ],
36
37 aidl: {
38 include_dirs: ["frameworks/base/core/java"],
39 local_include_dirs: ["include/"],
40 export_aidl_headers: true,
41 },
42
43 srcs: [
44 ":libvibrator_aidl",
45 "*.cpp",
46 ],
47
48 cflags: [
49 "-Wall",
50 "-Werror",
51 "-Wno-missing-field-initializers",
52 "-Wno-unused-variable",
53 "-Wno-unused-parameter",
54 ],
55
56 export_include_dirs: ["include"],
Ayushi Khopkar9329e492020-10-30 16:37:42 +053057
58 host_supported: true,
59 target: {
60 darwin: {
61 enabled: false,
62 },
63 },
Michael Wright3fee95e2018-12-12 19:51:26 +000064}