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