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