Android.mk revision f5504da647324f7e5402d18d9cc10972bf7650aa
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
16sources := \
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    IMemory.cpp \
27    IPCThreadState.cpp \
28    IPermissionController.cpp \
29    IProcessInfoService.cpp \
30    IResultReceiver.cpp \
31    ProcessInfoService.cpp \
32    IServiceManager.cpp \
33    MemoryDealer.cpp \
34    MemoryBase.cpp \
35    MemoryHeapBase.cpp \
36    Parcel.cpp \
37    PermissionCache.cpp \
38    ProcessState.cpp \
39    Static.cpp \
40    Status.cpp \
41    TextOutput.cpp \
42
43LOCAL_PATH:= $(call my-dir)
44
45include $(CLEAR_VARS)
46LOCAL_MODULE := libbinder
47LOCAL_SHARED_LIBRARIES := liblog libcutils libutils
48
49LOCAL_CLANG := true
50LOCAL_SANITIZE := integer
51LOCAL_SRC_FILES := $(sources)
52ifneq ($(TARGET_USES_64_BIT_BINDER),true)
53ifneq ($(TARGET_IS_64_BIT),true)
54LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
55endif
56endif
57LOCAL_CFLAGS += -Werror
58include $(BUILD_SHARED_LIBRARY)
59
60include $(CLEAR_VARS)
61LOCAL_MODULE := libbinder
62LOCAL_STATIC_LIBRARIES += libutils
63LOCAL_SRC_FILES := $(sources)
64ifneq ($(TARGET_USES_64_BIT_BINDER),true)
65ifneq ($(TARGET_IS_64_BIT),true)
66LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
67endif
68endif
69LOCAL_CFLAGS += -Werror
70include $(BUILD_STATIC_LIBRARY)
71