Android.mk revision c7a8e2422445030b9312470abca23c966b6367c7
1# 2# Copyright (C) 2010 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 19include $(CLEAR_VARS) 20 21LOCAL_SRC_FILES:= \ 22 MtpDataPacket.cpp \ 23 MtpDebug.cpp \ 24 MtpDevice.cpp \ 25 MtpEventPacket.cpp \ 26 MtpDeviceInfo.cpp \ 27 MtpObjectInfo.cpp \ 28 MtpPacket.cpp \ 29 MtpProperty.cpp \ 30 MtpRequestPacket.cpp \ 31 MtpResponsePacket.cpp \ 32 MtpServer.cpp \ 33 MtpStorageInfo.cpp \ 34 MtpStringBuffer.cpp \ 35 MtpStorage.cpp \ 36 MtpUtils.cpp \ 37 38LOCAL_MODULE:= libmtp 39 40LOCAL_CFLAGS := -DMTP_DEVICE -DMTP_HOST 41 42# Needed for <bionic_time.h> 43LOCAL_C_INCLUDES := bionic/libc/private 44 45LOCAL_SHARED_LIBRARIES := libutils libcutils libusbhost libbinder 46 47include $(BUILD_SHARED_LIBRARY) 48 49ifeq ($(HOST_OS),linux) 50 51include $(CLEAR_VARS) 52 53LOCAL_SRC_FILES:= \ 54 MtpDataPacket.cpp \ 55 MtpDebug.cpp \ 56 MtpDevice.cpp \ 57 MtpEventPacket.cpp \ 58 MtpDeviceInfo.cpp \ 59 MtpObjectInfo.cpp \ 60 MtpPacket.cpp \ 61 MtpProperty.cpp \ 62 MtpRequestPacket.cpp \ 63 MtpResponsePacket.cpp \ 64 MtpStorageInfo.cpp \ 65 MtpStringBuffer.cpp \ 66 MtpStorage.cpp \ 67 MtpUtils.cpp \ 68 69LOCAL_MODULE:= libmtp 70 71LOCAL_CFLAGS := -DMTP_HOST 72 73include $(BUILD_HOST_STATIC_LIBRARY) 74 75endif 76