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 # we have the common sources, plus some device-specific stuff
     16 sources := \
     17     AppOpsManager.cpp \
     18     Binder.cpp \
     19     BpBinder.cpp \
     20     BufferedTextOutput.cpp \
     21     Debug.cpp \
     22     IAppOpsCallback.cpp \
     23     IAppOpsService.cpp \
     24     IBatteryStats.cpp \
     25     IInterface.cpp \
     26     IMediaResourceMonitor.cpp \
     27     IMemory.cpp \
     28     IPCThreadState.cpp \
     29     IPermissionController.cpp \
     30     IProcessInfoService.cpp \
     31     IResultReceiver.cpp \
     32     IServiceManager.cpp \
     33     MemoryBase.cpp \
     34     MemoryDealer.cpp \
     35     MemoryHeapBase.cpp \
     36     Parcel.cpp \
     37     PermissionCache.cpp \
     38     PersistableBundle.cpp \
     39     ProcessInfoService.cpp \
     40     ProcessState.cpp \
     41     Static.cpp \
     42     Status.cpp \
     43     TextOutput.cpp \
     44 
     45 LOCAL_PATH:= $(call my-dir)
     46 
     47 include $(CLEAR_VARS)
     48 LOCAL_MODULE := libbinder
     49 LOCAL_SHARED_LIBRARIES := liblog libcutils libutils
     50 
     51 LOCAL_CLANG := true
     52 LOCAL_SANITIZE := integer
     53 LOCAL_SRC_FILES := $(sources)
     54 ifneq ($(TARGET_USES_64_BIT_BINDER),true)
     55 ifneq ($(TARGET_IS_64_BIT),true)
     56 LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
     57 endif
     58 endif
     59 LOCAL_CFLAGS += -Werror
     60 include $(BUILD_SHARED_LIBRARY)
     61 
     62 include $(CLEAR_VARS)
     63 LOCAL_MODULE := libbinder
     64 LOCAL_STATIC_LIBRARIES += libutils
     65 LOCAL_SRC_FILES := $(sources)
     66 ifneq ($(TARGET_USES_64_BIT_BINDER),true)
     67 ifneq ($(TARGET_IS_64_BIT),true)
     68 LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
     69 endif
     70 endif
     71 LOCAL_CFLAGS += -Werror
     72 include $(BUILD_STATIC_LIBRARY)
     73