| Daniel Erat | be43a39 | 2015-09-08 13:20:02 -0600 | [diff] [blame] | 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 |  | 
|  | 17 | LOCAL_PATH := $(call my-dir) | 
|  | 18 |  | 
|  | 19 | binderwrapperCommonCFlags := -Wall -Werror -Wno-unused-parameter | 
|  | 20 | binderwrapperCommonCFlags += -Wno-sign-promo  # for libchrome | 
|  | 21 | binderwrapperCommonExportCIncludeDirs := $(LOCAL_PATH)/../include | 
|  | 22 | binderwrapperCommonCIncludes := $(LOCAL_PATH)/../include | 
|  | 23 | binderwrapperCommonSharedLibraries := \ | 
|  | 24 | libbinder \ | 
|  | 25 | libchrome \ | 
|  | 26 | libutils \ | 
|  | 27 |  | 
|  | 28 | # libbinderwrapper shared library | 
|  | 29 | # ======================================================== | 
|  | 30 |  | 
|  | 31 | include $(CLEAR_VARS) | 
|  | 32 | LOCAL_MODULE := libbinderwrapper | 
|  | 33 | LOCAL_CPP_EXTENSION := .cc | 
|  | 34 | LOCAL_CFLAGS := $(binderwrapperCommonCFlags) | 
|  | 35 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(binderwrapperCommonExportCIncludeDirs) | 
|  | 36 | LOCAL_C_INCLUDES := $(binderwrapperCommonCIncludes) | 
|  | 37 | LOCAL_SHARED_LIBRARIES := $(binderwrapperCommonSharedLibraries) | 
|  | 38 | LOCAL_SRC_FILES := \ | 
|  | 39 | binder_wrapper.cc \ | 
|  | 40 | real_binder_wrapper.cc \ | 
|  | 41 |  | 
|  | 42 | include $(BUILD_SHARED_LIBRARY) | 
|  | 43 |  | 
|  | 44 | # libbinderwrapper_test_support shared library | 
|  | 45 | # ======================================================== | 
|  | 46 |  | 
|  | 47 | include $(CLEAR_VARS) | 
|  | 48 | LOCAL_MODULE := libbinderwrapper_test_support | 
|  | 49 | LOCAL_CPP_EXTENSION := .cc | 
|  | 50 | LOCAL_CFLAGS := $(binderwrapperCommonCFlags) | 
|  | 51 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(binderwrapperCommonExportCIncludeDirs) | 
|  | 52 | LOCAL_C_INCLUDES := $(binderwrapperCommonCIncludes) | 
|  | 53 | LOCAL_STATIC_LIBRARIES := libgtest | 
|  | 54 | LOCAL_SHARED_LIBRARIES := \ | 
|  | 55 | $(binderwrapperCommonSharedLibraries) \ | 
|  | 56 | libbinderwrapper \ | 
|  | 57 |  | 
|  | 58 | LOCAL_SRC_FILES := \ | 
|  | 59 | binder_test_base.cc \ | 
|  | 60 | stub_binder_wrapper.cc \ | 
|  | 61 |  | 
|  | 62 | include $(BUILD_SHARED_LIBRARY) |