Michael Wright | 3fee95e | 2018-12-12 19:51:26 +0000 | [diff] [blame] | 1 | // 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 Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { |
| 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 Cha | e214e64 | 2022-09-26 23:08:56 +0900 | [diff] [blame] | 24 | cc_defaults { |
| 25 | name: "libvibrator_defaults", |
Michael Wright | 3fee95e | 2018-12-12 19:51:26 +0000 | [diff] [blame] | 26 | |
Lais Andrade | fd0e14c | 2024-07-30 15:57:23 +0100 | [diff] [blame] | 27 | defaults: [ |
| 28 | "aconfig_lib_cc_shared_link.defaults", |
| 29 | ], |
| 30 | |
Michael Wright | 3fee95e | 2018-12-12 19:51:26 +0000 | [diff] [blame] | 31 | 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 Khopkar | 9329e49 | 2020-10-30 16:37:42 +0530 | [diff] [blame] | 40 | |
| 41 | host_supported: true, |
| 42 | target: { |
| 43 | darwin: { |
| 44 | enabled: false, |
| 45 | }, |
| 46 | }, |
Michael Wright | 3fee95e | 2018-12-12 19:51:26 +0000 | [diff] [blame] | 47 | } |
Jeongik Cha | e214e64 | 2022-09-26 23:08:56 +0900 | [diff] [blame] | 48 | |
| 49 | cc_library { |
| 50 | name: "libvibrator", |
| 51 | defaults: ["libvibrator_defaults"], |
| 52 | |
| 53 | shared_libs: [ |
| 54 | "libbinder", |
| 55 | "liblog", |
| 56 | "libutils", |
Lais Andrade | fd0e14c | 2024-07-30 15:57:23 +0100 | [diff] [blame] | 57 | "server_configurable_flags", |
Jeongik Cha | e214e64 | 2022-09-26 23:08:56 +0900 | [diff] [blame] | 58 | ], |
| 59 | |
| 60 | whole_static_libs: [ |
Lais Andrade | fd0e14c | 2024-07-30 15:57:23 +0100 | [diff] [blame] | 61 | "android.os.vibrator.flags-aconfig-cc", |
Jeongik Cha | e214e64 | 2022-09-26 23:08:56 +0900 | [diff] [blame] | 62 | "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 | |
| 81 | cc_library { |
| 82 | name: "libvibratorutils", |
| 83 | defaults: ["libvibrator_defaults"], |
| 84 | |
| 85 | vendor_available: true, |
| 86 | double_loadable: true, |
| 87 | |
Lais Andrade | fd0e14c | 2024-07-30 15:57:23 +0100 | [diff] [blame] | 88 | static_libs: [ |
| 89 | "android.os.vibrator.flags-aconfig-cc", |
| 90 | ], |
| 91 | |
Jeongik Cha | e214e64 | 2022-09-26 23:08:56 +0900 | [diff] [blame] | 92 | shared_libs: [ |
Lais Andrade | fd0e14c | 2024-07-30 15:57:23 +0100 | [diff] [blame] | 93 | "liblog", |
Jeongik Cha | e214e64 | 2022-09-26 23:08:56 +0900 | [diff] [blame] | 94 | "libutils", |
Lais Andrade | fd0e14c | 2024-07-30 15:57:23 +0100 | [diff] [blame] | 95 | "server_configurable_flags", |
Jeongik Cha | e214e64 | 2022-09-26 23:08:56 +0900 | [diff] [blame] | 96 | ], |
| 97 | |
| 98 | srcs: [ |
| 99 | "ExternalVibrationUtils.cpp", |
| 100 | ], |
| 101 | |
| 102 | visibility: [ |
| 103 | "//frameworks/native/libs/vibrator", |
Lais Andrade | fd0e14c | 2024-07-30 15:57:23 +0100 | [diff] [blame] | 104 | "//frameworks/native/libs/vibrator/tests", |
Jeongik Cha | e214e64 | 2022-09-26 23:08:56 +0900 | [diff] [blame] | 105 | "//frameworks/av/media/libeffects/hapticgenerator", |
| 106 | ], |
| 107 | } |