Home | History | Annotate | Download | only in hwservicemanager
      1 // 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 
     15 cc_binary {
     16     name: "hwservicemanager",
     17     init_rc: [
     18         "hwservicemanager.rc",
     19     ],
     20     srcs: [
     21         "AccessControl.cpp",
     22         "HidlService.cpp",
     23         "ServiceManager.cpp",
     24         "service.cpp",
     25         "TokenManager.cpp",
     26         "Vintf.cpp",
     27     ],
     28     cflags: [
     29         "-Wall",
     30         "-Wextra",
     31         "-Werror",
     32     ],
     33     shared_libs: [
     34         "android.hidl.token (a] 1.0",
     35         "libbase",
     36         "libcrypto", // for TokenManager
     37         "libcutils",
     38         "libhidlbase",
     39         "libhidltransport", // TODO(b/33276472#6) includes android.hidl.manager (a] 1.0
     40         "libhidl-gen-utils",
     41         "libhwbinder",
     42         "liblog",
     43         "libselinux",
     44         "libutils",
     45         "libvintf",
     46     ],
     47     product_variables: {
     48         binder32bit: {
     49             cflags: ["-DBINDER_IPC_32BIT=1"],
     50         },
     51     },
     52 }
     53