• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2009 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
15cc_library_shared {
16    name: "libhwbinder",
17    shared_libs: [
18        "libbase",
19        "liblog",
20        "libcutils",
21        "libutils",
22    ],
23    export_shared_lib_headers: [
24        "libbase",
25        "libutils",
26    ],
27    export_include_dirs: ["include"],
28    include_dirs: ["frameworks/native/include"],
29
30    vendor_available: true,
31    vndk: {
32        enabled: true,
33        support_system_process: true,
34    },
35    clang: true,
36    sanitize: {
37        misc_undefined: ["integer"],
38    },
39    srcs: [
40        "Binder.cpp",
41        "BpHwBinder.cpp",
42        "BufferedTextOutput.cpp",
43        "Debug.cpp",
44        "IInterface.cpp",
45        "IPCThreadState.cpp",
46        "Parcel.cpp",
47        "ProcessState.cpp",
48        "Static.cpp",
49        "TextOutput.cpp",
50    ],
51
52    product_variables: {
53        binder32bit: {
54            cflags: ["-DBINDER_IPC_32BIT=1"],
55        },
56    },
57
58    cflags: ["-Werror"],
59}
60