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 15 cc_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 clang: true, 32 sanitize: { 33 misc_undefined: ["integer"], 34 }, 35 srcs: [ 36 "Binder.cpp", 37 "BpHwBinder.cpp", 38 "BufferedTextOutput.cpp", 39 "Debug.cpp", 40 "IInterface.cpp", 41 "IPCThreadState.cpp", 42 "Parcel.cpp", 43 "ProcessState.cpp", 44 "Static.cpp", 45 "TextOutput.cpp", 46 ], 47 48 product_variables: { 49 binder32bit: { 50 cflags: ["-DBINDER_IPC_32BIT=1"], 51 }, 52 }, 53 54 cflags: ["-Werror"], 55 } 56