blob: 74307310c5a989dd111913021bddf63f43632b84 [file] [log] [blame]
Garfield Tane84e6f92019-08-29 17:28:41 -07001// Copyright (C) 2019 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
Garfield Tane84e6f92019-08-29 17:28:41 -070024cc_library_headers {
25 name: "libinputreporter_headers",
26 export_include_dirs: ["."],
27}
28
Prabir Pradhan9244aea2020-02-05 20:31:40 -080029filegroup {
30 name: "libinputreporter_sources",
Garfield Tane84e6f92019-08-29 17:28:41 -070031 srcs: [
Prabir Pradhan9244aea2020-02-05 20:31:40 -080032 "InputReporter.cpp",
Garfield Tane84e6f92019-08-29 17:28:41 -070033 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080034}
Garfield Tane84e6f92019-08-29 17:28:41 -070035
Prabir Pradhan9244aea2020-02-05 20:31:40 -080036cc_defaults {
37 name: "libinputreporter_defaults",
38 srcs: [":libinputreporter_sources"],
Garfield Tane84e6f92019-08-29 17:28:41 -070039 shared_libs: [
40 "liblog",
41 "libutils",
42 ],
Garfield Tane84e6f92019-08-29 17:28:41 -070043 header_libs: [
Prabir Pradhan9244aea2020-02-05 20:31:40 -080044 "libinputreporter_headers",
Garfield Tane84e6f92019-08-29 17:28:41 -070045 ],
Prabir Pradhan9244aea2020-02-05 20:31:40 -080046}
Garfield Tane84e6f92019-08-29 17:28:41 -070047
Prabir Pradhan9244aea2020-02-05 20:31:40 -080048cc_library_shared {
49 name: "libinputreporter",
50 defaults: [
51 "inputflinger_defaults",
52 "libinputreporter_defaults",
53 ],
Garfield Tane84e6f92019-08-29 17:28:41 -070054 export_header_lib_headers: [
Prabir Pradhan9244aea2020-02-05 20:31:40 -080055 "libinputreporter_headers",
Garfield Tane84e6f92019-08-29 17:28:41 -070056 ],
57}