xref: /aosp_15_r20/frameworks/native/services/inputflinger/dispatcher/Android.bp (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
1*38e8c45fSAndroid Build Coastguard Worker// Copyright (C) 2019 The Android Open Source Project
2*38e8c45fSAndroid Build Coastguard Worker//
3*38e8c45fSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*38e8c45fSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*38e8c45fSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*38e8c45fSAndroid Build Coastguard Worker//
7*38e8c45fSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*38e8c45fSAndroid Build Coastguard Worker//
9*38e8c45fSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*38e8c45fSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*38e8c45fSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*38e8c45fSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*38e8c45fSAndroid Build Coastguard Worker// limitations under the License.
14*38e8c45fSAndroid Build Coastguard Worker
15*38e8c45fSAndroid Build Coastguard Workerpackage {
16*38e8c45fSAndroid Build Coastguard Worker    default_team: "trendy_team_input_framework",
17*38e8c45fSAndroid Build Coastguard Worker    // See: http://go/android-license-faq
18*38e8c45fSAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
19*38e8c45fSAndroid Build Coastguard Worker    // all of the 'license_kinds' from "frameworks_native_license"
20*38e8c45fSAndroid Build Coastguard Worker    // to get the below license kinds:
21*38e8c45fSAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
22*38e8c45fSAndroid Build Coastguard Worker    default_applicable_licenses: ["frameworks_native_license"],
23*38e8c45fSAndroid Build Coastguard Worker}
24*38e8c45fSAndroid Build Coastguard Worker
25*38e8c45fSAndroid Build Coastguard Workercc_library_headers {
26*38e8c45fSAndroid Build Coastguard Worker    name: "libinputdispatcher_headers",
27*38e8c45fSAndroid Build Coastguard Worker    host_supported: true,
28*38e8c45fSAndroid Build Coastguard Worker    export_include_dirs: [
29*38e8c45fSAndroid Build Coastguard Worker        "include",
30*38e8c45fSAndroid Build Coastguard Worker    ],
31*38e8c45fSAndroid Build Coastguard Worker}
32*38e8c45fSAndroid Build Coastguard Worker
33*38e8c45fSAndroid Build Coastguard Workerfilegroup {
34*38e8c45fSAndroid Build Coastguard Worker    name: "libinputdispatcher_sources",
35*38e8c45fSAndroid Build Coastguard Worker    srcs: [
36*38e8c45fSAndroid Build Coastguard Worker        "AnrTracker.cpp",
37*38e8c45fSAndroid Build Coastguard Worker        "Connection.cpp",
38*38e8c45fSAndroid Build Coastguard Worker        "DebugConfig.cpp",
39*38e8c45fSAndroid Build Coastguard Worker        "DragState.cpp",
40*38e8c45fSAndroid Build Coastguard Worker        "Entry.cpp",
41*38e8c45fSAndroid Build Coastguard Worker        "FocusResolver.cpp",
42*38e8c45fSAndroid Build Coastguard Worker        "InjectionState.cpp",
43*38e8c45fSAndroid Build Coastguard Worker        "InputDispatcher.cpp",
44*38e8c45fSAndroid Build Coastguard Worker        "InputDispatcherFactory.cpp",
45*38e8c45fSAndroid Build Coastguard Worker        "InputEventTimeline.cpp",
46*38e8c45fSAndroid Build Coastguard Worker        "InputState.cpp",
47*38e8c45fSAndroid Build Coastguard Worker        "InputTarget.cpp",
48*38e8c45fSAndroid Build Coastguard Worker        "LatencyAggregator.cpp",
49*38e8c45fSAndroid Build Coastguard Worker        "LatencyAggregatorWithHistograms.cpp",
50*38e8c45fSAndroid Build Coastguard Worker        "LatencyTracker.cpp",
51*38e8c45fSAndroid Build Coastguard Worker        "Monitor.cpp",
52*38e8c45fSAndroid Build Coastguard Worker        "TouchedWindow.cpp",
53*38e8c45fSAndroid Build Coastguard Worker        "TouchState.cpp",
54*38e8c45fSAndroid Build Coastguard Worker        "trace/*.cpp",
55*38e8c45fSAndroid Build Coastguard Worker    ],
56*38e8c45fSAndroid Build Coastguard Worker}
57*38e8c45fSAndroid Build Coastguard Worker
58*38e8c45fSAndroid Build Coastguard Workercc_defaults {
59*38e8c45fSAndroid Build Coastguard Worker    name: "libinputdispatcher_defaults",
60*38e8c45fSAndroid Build Coastguard Worker    srcs: [
61*38e8c45fSAndroid Build Coastguard Worker        ":libinputdispatcher_sources",
62*38e8c45fSAndroid Build Coastguard Worker    ],
63*38e8c45fSAndroid Build Coastguard Worker    shared_libs: [
64*38e8c45fSAndroid Build Coastguard Worker        "libbase",
65*38e8c45fSAndroid Build Coastguard Worker        "libbinder",
66*38e8c45fSAndroid Build Coastguard Worker        "libbinder_ndk",
67*38e8c45fSAndroid Build Coastguard Worker        "libcrypto",
68*38e8c45fSAndroid Build Coastguard Worker        "libcutils",
69*38e8c45fSAndroid Build Coastguard Worker        "libinput",
70*38e8c45fSAndroid Build Coastguard Worker        "libkll",
71*38e8c45fSAndroid Build Coastguard Worker        "liblog",
72*38e8c45fSAndroid Build Coastguard Worker        "libprotobuf-cpp-lite",
73*38e8c45fSAndroid Build Coastguard Worker        "libstatslog",
74*38e8c45fSAndroid Build Coastguard Worker        "libutils",
75*38e8c45fSAndroid Build Coastguard Worker        "libstatspull",
76*38e8c45fSAndroid Build Coastguard Worker        "libstatssocket",
77*38e8c45fSAndroid Build Coastguard Worker        "packagemanager_aidl-cpp",
78*38e8c45fSAndroid Build Coastguard Worker        "server_configurable_flags",
79*38e8c45fSAndroid Build Coastguard Worker    ],
80*38e8c45fSAndroid Build Coastguard Worker    static_libs: [
81*38e8c45fSAndroid Build Coastguard Worker        "libattestation",
82*38e8c45fSAndroid Build Coastguard Worker        "libgui_window_info_static",
83*38e8c45fSAndroid Build Coastguard Worker        "libperfetto_client_experimental",
84*38e8c45fSAndroid Build Coastguard Worker        "perfetto_winscope_extensions_zero",
85*38e8c45fSAndroid Build Coastguard Worker    ],
86*38e8c45fSAndroid Build Coastguard Worker    target: {
87*38e8c45fSAndroid Build Coastguard Worker        android: {
88*38e8c45fSAndroid Build Coastguard Worker            shared_libs: [
89*38e8c45fSAndroid Build Coastguard Worker                "libgui",
90*38e8c45fSAndroid Build Coastguard Worker            ],
91*38e8c45fSAndroid Build Coastguard Worker        },
92*38e8c45fSAndroid Build Coastguard Worker    },
93*38e8c45fSAndroid Build Coastguard Worker    header_libs: [
94*38e8c45fSAndroid Build Coastguard Worker        "libinputdispatcher_headers",
95*38e8c45fSAndroid Build Coastguard Worker    ],
96*38e8c45fSAndroid Build Coastguard Worker}
97*38e8c45fSAndroid Build Coastguard Worker
98*38e8c45fSAndroid Build Coastguard Workercc_library_static {
99*38e8c45fSAndroid Build Coastguard Worker    name: "libinputdispatcher",
100*38e8c45fSAndroid Build Coastguard Worker    host_supported: true,
101*38e8c45fSAndroid Build Coastguard Worker    defaults: [
102*38e8c45fSAndroid Build Coastguard Worker        "inputflinger_defaults",
103*38e8c45fSAndroid Build Coastguard Worker        "libinputdispatcher_defaults",
104*38e8c45fSAndroid Build Coastguard Worker    ],
105*38e8c45fSAndroid Build Coastguard Worker    shared_libs: [
106*38e8c45fSAndroid Build Coastguard Worker        // This should consist only of dependencies from inputflinger. Other dependencies should be
107*38e8c45fSAndroid Build Coastguard Worker        // in cc_defaults so that they are included in the tests.
108*38e8c45fSAndroid Build Coastguard Worker        "libinputflinger_base",
109*38e8c45fSAndroid Build Coastguard Worker        "libinputreporter",
110*38e8c45fSAndroid Build Coastguard Worker    ],
111*38e8c45fSAndroid Build Coastguard Worker    export_header_lib_headers: [
112*38e8c45fSAndroid Build Coastguard Worker        "libinputdispatcher_headers",
113*38e8c45fSAndroid Build Coastguard Worker    ],
114*38e8c45fSAndroid Build Coastguard Worker    logtags: ["EventLogTags.logtags"],
115*38e8c45fSAndroid Build Coastguard Worker}
116