Mike Lockwood | 56118b5 | 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 | ff164a7 | 2010-07-15 15:01:17 -0400 | [diff] [blame] | 16 | |
Mike Lockwood | 56118b5 | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 17 | LOCAL_PATH:= $(call my-dir) |
| 18 | |
| 19 | include $(CLEAR_VARS) |
| 20 | |
| 21 | LOCAL_SRC_FILES:= \ |
Mike Lockwood | 56118b5 | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 22 | MtpDataPacket.cpp \ |
| 23 | MtpDebug.cpp \ |
Mike Lockwood | 98ef64e | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 24 | MtpDevice.cpp \ |
Mike Lockwood | be125a5 | 2010-07-12 18:54:16 -0400 | [diff] [blame] | 25 | MtpEventPacket.cpp \ |
Mike Lockwood | 98ef64e | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 26 | MtpDeviceInfo.cpp \ |
Mike Lockwood | 98ef64e | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 27 | MtpObjectInfo.cpp \ |
Mike Lockwood | 56118b5 | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 28 | MtpPacket.cpp \ |
Mike Lockwood | 98ef64e | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 29 | MtpProperty.cpp \ |
Mike Lockwood | 56118b5 | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 30 | MtpRequestPacket.cpp \ |
| 31 | MtpResponsePacket.cpp \ |
| 32 | MtpServer.cpp \ |
Mike Lockwood | 98ef64e | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 33 | MtpStorageInfo.cpp \ |
Mike Lockwood | 56118b5 | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 34 | MtpStringBuffer.cpp \ |
| 35 | MtpStorage.cpp \ |
| 36 | MtpUtils.cpp \ |
Mike Lockwood | 56118b5 | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 37 | |
Mike Lockwood | 98ef64e | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 38 | LOCAL_MODULE:= libmtp |
Mike Lockwood | 56118b5 | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 39 | |
Mike Lockwood | 98ef64e | 2010-06-29 16:42:13 -0400 | [diff] [blame] | 40 | LOCAL_CFLAGS := -DMTP_DEVICE -DMTP_HOST |
| 41 | |
Mike Lockwood | da03aaa | 2010-12-29 08:32:32 -0500 | [diff] [blame] | 42 | LOCAL_SHARED_LIBRARIES := libutils libcutils libusbhost libbinder |
| 43 | |
| 44 | include $(BUILD_SHARED_LIBRARY) |
Mike Lockwood | ff164a7 | 2010-07-15 15:01:17 -0400 | [diff] [blame] | 45 | |
Mike Lockwood | 87626b1 | 2010-12-07 10:43:41 -0800 | [diff] [blame] | 46 | ifeq ($(HOST_OS),linux) |
| 47 | |
| 48 | include $(CLEAR_VARS) |
| 49 | |
| 50 | LOCAL_SRC_FILES:= \ |
Mike Lockwood | 87626b1 | 2010-12-07 10:43:41 -0800 | [diff] [blame] | 51 | MtpDataPacket.cpp \ |
| 52 | MtpDebug.cpp \ |
| 53 | MtpDevice.cpp \ |
| 54 | MtpEventPacket.cpp \ |
| 55 | MtpDeviceInfo.cpp \ |
| 56 | MtpObjectInfo.cpp \ |
| 57 | MtpPacket.cpp \ |
| 58 | MtpProperty.cpp \ |
| 59 | MtpRequestPacket.cpp \ |
| 60 | MtpResponsePacket.cpp \ |
| 61 | MtpStorageInfo.cpp \ |
| 62 | MtpStringBuffer.cpp \ |
| 63 | MtpStorage.cpp \ |
| 64 | MtpUtils.cpp \ |
Mike Lockwood | 87626b1 | 2010-12-07 10:43:41 -0800 | [diff] [blame] | 65 | |
| 66 | LOCAL_MODULE:= libmtp |
| 67 | |
| 68 | LOCAL_CFLAGS := -DMTP_HOST |
| 69 | |
| 70 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 71 | |
| 72 | endif |