1#
2# Copyright (C) 2015 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
19binderwrapperCommonCFlags := -Wall -Werror -Wno-unused-parameter
20binderwrapperCommonCFlags += -Wno-sign-promo  # for libchrome
21binderwrapperCommonExportCIncludeDirs := $(LOCAL_PATH)/../include
22binderwrapperCommonCIncludes := $(LOCAL_PATH)/../include
23binderwrapperCommonSharedLibraries := \
24  libbinder \
25  libchrome \
26  libutils \
27
28# libbinderwrapper shared library
29# ========================================================
30
31include $(CLEAR_VARS)
32LOCAL_MODULE := libbinderwrapper
33LOCAL_CPP_EXTENSION := .cc
34LOCAL_CFLAGS := $(binderwrapperCommonCFlags)
35LOCAL_EXPORT_C_INCLUDE_DIRS := $(binderwrapperCommonExportCIncludeDirs)
36LOCAL_C_INCLUDES := $(binderwrapperCommonCIncludes)
37LOCAL_SHARED_LIBRARIES := $(binderwrapperCommonSharedLibraries)
38LOCAL_SRC_FILES := \
39  binder_wrapper.cc \
40  real_binder_wrapper.cc \
41
42include $(BUILD_SHARED_LIBRARY)
43
44# libbinderwrapper_test_support shared library
45# ========================================================
46
47include $(CLEAR_VARS)
48LOCAL_MODULE := libbinderwrapper_test_support
49LOCAL_CPP_EXTENSION := .cc
50LOCAL_CFLAGS := $(binderwrapperCommonCFlags)
51LOCAL_EXPORT_C_INCLUDE_DIRS := $(binderwrapperCommonExportCIncludeDirs)
52LOCAL_C_INCLUDES := $(binderwrapperCommonCIncludes)
53LOCAL_STATIC_LIBRARIES := libgtest
54LOCAL_SHARED_LIBRARIES := \
55  $(binderwrapperCommonSharedLibraries) \
56  libbinderwrapper \
57
58LOCAL_SRC_FILES := \
59  binder_test_base.cc \
60  stub_binder_wrapper.cc \
61
62include $(BUILD_SHARED_LIBRARY)
63