Home | History | Annotate | Download | only in binder
      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_headers {
     16     name: "libbinder_headers",
     17     export_include_dirs: ["include"],
     18 }
     19 
     20 cc_library {
     21     name: "libbinder",
     22 
     23     // for vndbinder
     24     vendor_available: true,
     25 
     26     srcs: [
     27         "AppOpsManager.cpp",
     28         "Binder.cpp",
     29         "BpBinder.cpp",
     30         "BufferedTextOutput.cpp",
     31         "Debug.cpp",
     32         "IActivityManager.cpp",
     33         "IAppOpsCallback.cpp",
     34         "IAppOpsService.cpp",
     35         "IBatteryStats.cpp",
     36         "IInterface.cpp",
     37         "IMediaResourceMonitor.cpp",
     38         "IMemory.cpp",
     39         "IPCThreadState.cpp",
     40         "IPermissionController.cpp",
     41         "IProcessInfoService.cpp",
     42         "IResultReceiver.cpp",
     43         "IServiceManager.cpp",
     44         "IShellCallback.cpp",
     45         "MemoryBase.cpp",
     46         "MemoryDealer.cpp",
     47         "MemoryHeapBase.cpp",
     48         "Parcel.cpp",
     49         "PermissionCache.cpp",
     50         "PersistableBundle.cpp",
     51         "ProcessInfoService.cpp",
     52         "ProcessState.cpp",
     53         "Static.cpp",
     54         "Status.cpp",
     55         "TextOutput.cpp",
     56         "IpPrefix.cpp",
     57         "Value.cpp",
     58     ],
     59 
     60     cflags: [
     61         "-Wall",
     62         "-Wextra",
     63         "-Werror",
     64     ],
     65     product_variables: {
     66         binder32bit: {
     67             cflags: ["-DBINDER_IPC_32BIT=1"],
     68         },
     69     },
     70 
     71     shared_libs: [
     72         "libbase",
     73         "liblog",
     74         "libcutils",
     75         "libutils",
     76     ],
     77     export_shared_lib_headers: [
     78         "libbase",
     79         "libutils",
     80     ],
     81 
     82     export_include_dirs: [
     83         "include",
     84     ],
     85 
     86     clang: true,
     87     sanitize: {
     88         misc_undefined: ["integer"],
     89     },
     90 }
     91 
     92 subdirs = ["tests"]
     93