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