Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 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 | # |
Mike Lockwood | 53fbfed | 2010-07-15 15:01:17 -0400 | [diff] [blame] | 16 | |
| 17 | ifneq ($(TARGET_SIMULATOR),true) |
| 18 | |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 19 | LOCAL_PATH:= $(call my-dir) |
| 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | |
| 23 | LOCAL_SRC_FILES:= \ |
Mike Lockwood | 05a53a3 | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 24 | MtpClient.cpp \ |
| 25 | MtpCursor.cpp \ |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 26 | MtpDataPacket.cpp \ |
| 27 | MtpDebug.cpp \ |
Mike Lockwood | 05a53a3 | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 28 | MtpDevice.cpp \ |
Mike Lockwood | 873871f | 2010-07-12 18:54:16 -0400 | [diff] [blame] | 29 | MtpEventPacket.cpp \ |
Mike Lockwood | 05a53a3 | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 30 | MtpDeviceInfo.cpp \ |
Mike Lockwood | 05a53a3 | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 31 | MtpObjectInfo.cpp \ |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 32 | MtpPacket.cpp \ |
Mike Lockwood | 05a53a3 | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 33 | MtpProperty.cpp \ |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 34 | MtpRequestPacket.cpp \ |
| 35 | MtpResponsePacket.cpp \ |
| 36 | MtpServer.cpp \ |
Mike Lockwood | 05a53a3 | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 37 | MtpStorageInfo.cpp \ |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 38 | MtpStringBuffer.cpp \ |
| 39 | MtpStorage.cpp \ |
| 40 | MtpUtils.cpp \ |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 41 | |
Mike Lockwood | 05a53a3 | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 42 | LOCAL_MODULE:= libmtp |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 43 | |
Mike Lockwood | 05a53a3 | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 44 | LOCAL_CFLAGS := -DMTP_DEVICE -DMTP_HOST |
| 45 | |
| 46 | include $(BUILD_STATIC_LIBRARY) |
Mike Lockwood | 53fbfed | 2010-07-15 15:01:17 -0400 | [diff] [blame] | 47 | |
| 48 | endif |
Mike Lockwood | be9a95c | 2010-07-19 09:01:57 -0400 | [diff] [blame^] | 49 | |
| 50 | ifeq ($(HOST_OS),linux) |
| 51 | |
| 52 | include $(CLEAR_VARS) |
| 53 | |
| 54 | LOCAL_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 | |
| 72 | LOCAL_MODULE:= libmtp |
| 73 | |
| 74 | LOCAL_CFLAGS := -DMTP_HOST |
| 75 | |
| 76 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 77 | |
| 78 | endif |