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 IAppOpsCallback.cpp \ 21 IAppOpsService.cpp \ 22 IInterface.cpp \ 23 IMemory.cpp \ 24 IPCThreadState.cpp \ 25 IPermissionController.cpp \ 26 IServiceManager.cpp \ 27 MemoryDealer.cpp \ 28 MemoryBase.cpp \ 29 MemoryHeapBase.cpp \ 30 Parcel.cpp \ 31 PermissionCache.cpp \ 32 ProcessState.cpp \ 33 Static.cpp 34 35 LOCAL_PATH:= $(call my-dir) 36 37 include $(CLEAR_VARS) 38 LOCAL_LDLIBS += -lpthread 39 LOCAL_MODULE := libbinder 40 LOCAL_SHARED_LIBRARIES := liblog libcutils libutils 41 LOCAL_SRC_FILES := $(sources) 42 include $(BUILD_SHARED_LIBRARY) 43 44 include $(CLEAR_VARS) 45 LOCAL_LDLIBS += -lpthread 46 LOCAL_MODULE := libbinder 47 LOCAL_SRC_FILES := $(sources) 48 include $(BUILD_STATIC_LIBRARY) 49