blob: 5079b43da99ac51fd00d175726b09f7a9e862700 [file] [log] [blame]
Steven Moreland66ac4012016-12-21 15:06:10 -08001// Copyright (C) 2016 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
Dan Willemsen376ac9b2016-09-13 16:32:54 -070015cc_binary {
16 name: "hwservicemanager",
Steven Morelandd83d1102016-10-25 15:01:47 -070017 init_rc: [
18 "hwservicemanager.rc",
19 ],
20 srcs: [
Martijn Coenen7ce83be2017-04-07 16:19:32 -070021 "AccessControl.cpp",
Steven Moreland2173d3c2016-11-09 15:00:58 -080022 "HidlService.cpp",
Steven Morelandd83d1102016-10-25 15:01:47 -070023 "ServiceManager.cpp",
24 "service.cpp",
Steven Moreland66ac4012016-12-21 15:06:10 -080025 "TokenManager.cpp",
Steven Moreland37aed802017-04-06 09:16:42 -070026 "Vintf.cpp",
Steven Morelandd83d1102016-10-25 15:01:47 -070027 ],
Dan Willemsen376ac9b2016-09-13 16:32:54 -070028 cflags: [
29 "-Wall",
30 "-Wextra",
31 "-Werror",
32 ],
33 shared_libs: [
Steven Moreland66ac4012016-12-21 15:06:10 -080034 "android.hidl.token@1.0",
Steven Moreland5fb3d652016-11-03 13:45:18 -070035 "libbase",
Steven Moreland78d1d052017-03-16 02:04:44 -070036 "libcrypto", // for TokenManager
Steven Moreland66ac4012016-12-21 15:06:10 -080037 "libcutils",
Yifan Hong275a88c2016-11-16 14:16:32 -080038 "libhidlbase",
Steven Morelanddc36fb22017-05-01 10:20:05 -070039 "libhidltransport",
Steven Moreland37aed802017-04-06 09:16:42 -070040 "libhidl-gen-utils",
Steven Moreland66ac4012016-12-21 15:06:10 -080041 "libhwbinder",
Dan Willemsen376ac9b2016-09-13 16:32:54 -070042 "liblog",
43 "libselinux",
Dan Willemsen376ac9b2016-09-13 16:32:54 -070044 "libutils",
Steven Moreland37aed802017-04-06 09:16:42 -070045 "libvintf",
Steven Morelandd83d1102016-10-25 15:01:47 -070046 ],
Dan Willemsen376ac9b2016-09-13 16:32:54 -070047 product_variables: {
48 binder32bit: {
49 cflags: ["-DBINDER_IPC_32BIT=1"],
50 },
51 },
52}