1208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian# Copyright (C) 2009 The Android Open Source Project
2208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian#
3208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian# Licensed under the Apache License, Version 2.0 (the "License");
4208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian# you may not use this file except in compliance with the License.
5208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian# You may obtain a copy of the License at
6208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian#
7208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian#      http://www.apache.org/licenses/LICENSE-2.0
8208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian#
9208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian# Unless required by applicable law or agreed to in writing, software
10208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian# distributed under the License is distributed on an "AS IS" BASIS,
11208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian# See the License for the specific language governing permissions and
13208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian# limitations under the License.
14208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian
15208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian# we have the common sources, plus some device-specific stuff
16386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnorsources := \
175da5ca520cca085528588f6067acb1c437001ef2Dianne Hackborn    AppOpsManager.cpp \
18386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnor    Binder.cpp \
19386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnor    BpBinder.cpp \
20002e1e58dfe19dd3e49a59c6827cbf51573941a2Mathias Agopian    BufferedTextOutput.cpp \
21002e1e58dfe19dd3e49a59c6827cbf51573941a2Mathias Agopian    Debug.cpp \
225da5ca520cca085528588f6067acb1c437001ef2Dianne Hackborn    IAppOpsCallback.cpp \
235da5ca520cca085528588f6067acb1c437001ef2Dianne Hackborn    IAppOpsService.cpp \
2463ff1c644f785c78adbf65b9abf6b998cee2c7a1Mike Lockwood    IBatteryStats.cpp \
25386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnor    IInterface.cpp \
26386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnor    IMemory.cpp \
27386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnor    IPCThreadState.cpp \
28386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnor    IPermissionController.cpp \
29386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnor    IServiceManager.cpp \
30386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnor    MemoryDealer.cpp \
31208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian    MemoryBase.cpp \
32208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian    MemoryHeapBase.cpp \
33386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnor    Parcel.cpp \
3499b49840d309727678b77403d6cc9f920111623fMathias Agopian    PermissionCache.cpp \
35386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnor    ProcessState.cpp \
36002e1e58dfe19dd3e49a59c6827cbf51573941a2Mathias Agopian    Static.cpp \
37002e1e58dfe19dd3e49a59c6827cbf51573941a2Mathias Agopian    TextOutput.cpp \
38208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian
39386a332b4f70718cccb08d5511d66e9f4f5bd409Dan EgnorLOCAL_PATH:= $(call my-dir)
40208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopian
41386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnorinclude $(CLEAR_VARS)
42386a332b4f70718cccb08d5511d66e9f4f5bd409Dan EgnorLOCAL_MODULE := libbinder
43386a332b4f70718cccb08d5511d66e9f4f5bd409Dan EgnorLOCAL_SHARED_LIBRARIES := liblog libcutils libutils
44386a332b4f70718cccb08d5511d66e9f4f5bd409Dan EgnorLOCAL_SRC_FILES := $(sources)
45e91fff0a2dfe7d312286b140c8069c820627da8cArve Hjønnevågifneq ($(TARGET_USES_64_BIT_BINDER),true)
46f3ad11cf3ce60436bcdeec577d1e35c67ccae460Arve Hjønnevågifneq ($(TARGET_IS_64_BIT),true)
47e91fff0a2dfe7d312286b140c8069c820627da8cArve HjønnevågLOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
48e91fff0a2dfe7d312286b140c8069c820627da8cArve Hjønnevågendif
49f3ad11cf3ce60436bcdeec577d1e35c67ccae460Arve Hjønnevågendif
50d4ecccfd206604a9b2d8a1220844fc2df85a5998Mark SalyzynLOCAL_CFLAGS += -Werror
51208059f67ed2dd9fa025e07fcb6954d3cb61c79eMathias Agopianinclude $(BUILD_SHARED_LIBRARY)
52386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnor
53386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnorinclude $(CLEAR_VARS)
54386a332b4f70718cccb08d5511d66e9f4f5bd409Dan EgnorLOCAL_MODULE := libbinder
55894e17847623781b4961bc611917ce8166285a2dAlex RayLOCAL_STATIC_LIBRARIES += libutils
56386a332b4f70718cccb08d5511d66e9f4f5bd409Dan EgnorLOCAL_SRC_FILES := $(sources)
57e91fff0a2dfe7d312286b140c8069c820627da8cArve Hjønnevågifneq ($(TARGET_USES_64_BIT_BINDER),true)
58f3ad11cf3ce60436bcdeec577d1e35c67ccae460Arve Hjønnevågifneq ($(TARGET_IS_64_BIT),true)
59e91fff0a2dfe7d312286b140c8069c820627da8cArve HjønnevågLOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
60e91fff0a2dfe7d312286b140c8069c820627da8cArve Hjønnevågendif
61f3ad11cf3ce60436bcdeec577d1e35c67ccae460Arve Hjønnevågendif
62d4ecccfd206604a9b2d8a1220844fc2df85a5998Mark SalyzynLOCAL_CFLAGS += -Werror
63386a332b4f70718cccb08d5511d66e9f4f5bd409Dan Egnorinclude $(BUILD_STATIC_LIBRARY)
64