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 | # |
| 16 | LOCAL_PATH:= $(call my-dir) |
| 17 | |
Mike Lockwood | 67589f4 | 2010-05-13 16:28:00 -0400 | [diff] [blame] | 18 | ifneq ($(TARGET_SIMULATOR),true) |
| 19 | |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 20 | include $(CLEAR_VARS) |
| 21 | |
| 22 | LOCAL_SRC_FILES:= \ |
| 23 | mtptest.cpp \ |
| 24 | MtpDatabase.cpp \ |
| 25 | MtpDataPacket.cpp \ |
| 26 | MtpDebug.cpp \ |
Mike Lockwood | fceef46 | 2010-05-14 15:35:17 -0400 | [diff] [blame] | 27 | MtpMediaScanner.cpp \ |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 28 | MtpPacket.cpp \ |
| 29 | MtpRequestPacket.cpp \ |
| 30 | MtpResponsePacket.cpp \ |
| 31 | MtpServer.cpp \ |
| 32 | MtpStringBuffer.cpp \ |
| 33 | MtpStorage.cpp \ |
| 34 | MtpUtils.cpp \ |
| 35 | SqliteDatabase.cpp \ |
| 36 | SqliteStatement.cpp \ |
| 37 | |
| 38 | LOCAL_MODULE:= mtptest |
| 39 | |
| 40 | LOCAL_C_INCLUDES := external/sqlite/dist |
| 41 | |
| 42 | LOCAL_CFLAGS := -DMTP_DEVICE |
| 43 | |
Mike Lockwood | fceef46 | 2010-05-14 15:35:17 -0400 | [diff] [blame] | 44 | LOCAL_SHARED_LIBRARIES := libutils libsqlite libstagefright |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 45 | |
| 46 | include $(BUILD_EXECUTABLE) |
| 47 | |
Mike Lockwood | 67589f4 | 2010-05-13 16:28:00 -0400 | [diff] [blame] | 48 | endif |
| 49 | |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 50 | ifeq ($(HOST_OS),linux) |
| 51 | |
| 52 | include $(CLEAR_VARS) |
| 53 | |
| 54 | LOCAL_MODULE := ptptest |
| 55 | LOCAL_SRC_FILES:= \ |
| 56 | ptptest.cpp \ |
| 57 | MtpClient.cpp \ |
| 58 | MtpDataPacket.cpp \ |
| 59 | MtpDebug.cpp \ |
Mike Lockwood | 335dd2b | 2010-05-19 10:33:39 -0400 | [diff] [blame^] | 60 | MtpDeviceInfo.cpp \ |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 61 | MtpPacket.cpp \ |
| 62 | MtpRequestPacket.cpp \ |
| 63 | MtpResponsePacket.cpp \ |
Mike Lockwood | 335dd2b | 2010-05-19 10:33:39 -0400 | [diff] [blame^] | 64 | MtpStorageInfo.cpp \ |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 65 | MtpStringBuffer.cpp \ |
Mike Lockwood | 335dd2b | 2010-05-19 10:33:39 -0400 | [diff] [blame^] | 66 | ../../libs/utils/VectorImpl.cpp \ |
| 67 | ../../libs/utils/SharedBuffer.cpp \ |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 68 | |
| 69 | |
Mike Lockwood | 335dd2b | 2010-05-19 10:33:39 -0400 | [diff] [blame^] | 70 | LOCAL_STATIC_LIBRARIES := libusbhost libcutils |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 71 | LOCAL_LDLIBS := -lpthread |
| 72 | |
| 73 | LOCAL_CFLAGS := -g -DMTP_HOST |
| 74 | LOCAL_LDFLAGS := -g |
| 75 | |
| 76 | include $(BUILD_HOST_EXECUTABLE) |
| 77 | |
Mike Lockwood | fceef46 | 2010-05-14 15:35:17 -0400 | [diff] [blame] | 78 | include $(CLEAR_VARS) |
| 79 | |
| 80 | LOCAL_MODULE := scantest |
| 81 | LOCAL_SRC_FILES:= \ |
| 82 | scantest.cpp \ |
| 83 | MtpMediaScanner.cpp \ |
| 84 | MtpDatabase.cpp \ |
| 85 | MtpDataPacket.cpp \ |
| 86 | MtpPacket.cpp \ |
| 87 | MtpStringBuffer.cpp \ |
| 88 | MtpUtils.cpp \ |
| 89 | SqliteDatabase.cpp \ |
| 90 | SqliteStatement.cpp \ |
| 91 | |
| 92 | |
| 93 | #LOCAL_STATIC_LIBRARIES := libusbhost |
| 94 | #LOCAL_LDLIBS := -lpthread |
| 95 | |
| 96 | LOCAL_C_INCLUDES := external/sqlite/dist |
| 97 | LOCAL_SHARED_LIBRARIES := libutils libsqlite libstagefright |
| 98 | |
| 99 | |
| 100 | LOCAL_CFLAGS := -g |
| 101 | LOCAL_LDFLAGS := -g |
| 102 | |
| 103 | include $(BUILD_EXECUTABLE) |
| 104 | |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 105 | endif |