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