blob: d5860ef6ca2786c30c2802b35a685d80a286e216 [file] [log] [blame]
Mathias Agopian7922fa22009-05-18 15:08:03 -07001# 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
Mathias Agopian7922fa22009-05-18 15:08:03 -070015# we have the common sources, plus some device-specific stuff
Dan Egnor87957f72010-05-06 00:55:09 -070016sources := \
Dianne Hackborn2b4eff12013-02-12 15:12:21 -080017 AppOpsManager.cpp \
Dan Egnor87957f72010-05-06 00:55:09 -070018 Binder.cpp \
19 BpBinder.cpp \
Mathias Agopian4ea13dc2013-05-06 20:20:50 -070020 BufferedTextOutput.cpp \
21 Debug.cpp \
Dianne Hackborn2b4eff12013-02-12 15:12:21 -080022 IAppOpsCallback.cpp \
23 IAppOpsService.cpp \
Mike Lockwoode09c7bc2013-09-25 09:28:41 -070024 IBatteryStats.cpp \
Dan Egnor87957f72010-05-06 00:55:09 -070025 IInterface.cpp \
26 IMemory.cpp \
27 IPCThreadState.cpp \
28 IPermissionController.cpp \
Ruben Brunkfc34e9f2015-01-28 18:13:33 -080029 IProcessInfoService.cpp \
30 ProcessInfoService.cpp \
Dan Egnor87957f72010-05-06 00:55:09 -070031 IServiceManager.cpp \
32 MemoryDealer.cpp \
Mathias Agopian7922fa22009-05-18 15:08:03 -070033 MemoryBase.cpp \
34 MemoryHeapBase.cpp \
Dan Egnor87957f72010-05-06 00:55:09 -070035 Parcel.cpp \
Mathias Agopian19cbd632011-06-27 16:05:52 -070036 PermissionCache.cpp \
Dan Egnor87957f72010-05-06 00:55:09 -070037 ProcessState.cpp \
Mathias Agopian4ea13dc2013-05-06 20:20:50 -070038 Static.cpp \
39 TextOutput.cpp \
Mathias Agopian7922fa22009-05-18 15:08:03 -070040
Dan Egnor87957f72010-05-06 00:55:09 -070041LOCAL_PATH:= $(call my-dir)
42
43include $(CLEAR_VARS)
Dan Egnor87957f72010-05-06 00:55:09 -070044LOCAL_MODULE := libbinder
45LOCAL_SHARED_LIBRARIES := liblog libcutils libutils
46LOCAL_SRC_FILES := $(sources)
Arve Hjønnevågef3fe4d2014-01-28 19:57:02 -080047ifneq ($(TARGET_USES_64_BIT_BINDER),true)
Arve Hjønnevåg5420e7a2014-02-03 14:46:30 -080048ifneq ($(TARGET_IS_64_BIT),true)
Arve Hjønnevågef3fe4d2014-01-28 19:57:02 -080049LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
50endif
Arve Hjønnevåg5420e7a2014-02-03 14:46:30 -080051endif
Mark Salyzyn386eb9e2014-05-30 16:35:57 -070052LOCAL_CFLAGS += -Werror
Mathias Agopian7922fa22009-05-18 15:08:03 -070053include $(BUILD_SHARED_LIBRARY)
Dan Egnor87957f72010-05-06 00:55:09 -070054
55include $(CLEAR_VARS)
Dan Egnor87957f72010-05-06 00:55:09 -070056LOCAL_MODULE := libbinder
Alex Ray97005cb2013-07-23 13:42:12 -070057LOCAL_STATIC_LIBRARIES += libutils
Dan Egnor87957f72010-05-06 00:55:09 -070058LOCAL_SRC_FILES := $(sources)
Arve Hjønnevågef3fe4d2014-01-28 19:57:02 -080059ifneq ($(TARGET_USES_64_BIT_BINDER),true)
Arve Hjønnevåg5420e7a2014-02-03 14:46:30 -080060ifneq ($(TARGET_IS_64_BIT),true)
Arve Hjønnevågef3fe4d2014-01-28 19:57:02 -080061LOCAL_CFLAGS += -DBINDER_IPC_32BIT=1
62endif
Arve Hjønnevåg5420e7a2014-02-03 14:46:30 -080063endif
Mark Salyzyn386eb9e2014-05-30 16:35:57 -070064LOCAL_CFLAGS += -Werror
Dan Egnor87957f72010-05-06 00:55:09 -070065include $(BUILD_STATIC_LIBRARY)