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 \ |
| 60 | MtpPacket.cpp \ |
| 61 | MtpRequestPacket.cpp \ |
| 62 | MtpResponsePacket.cpp \ |
| 63 | MtpStringBuffer.cpp \ |
| 64 | |
| 65 | |
| 66 | LOCAL_STATIC_LIBRARIES := libusbhost |
| 67 | LOCAL_LDLIBS := -lpthread |
| 68 | |
| 69 | LOCAL_CFLAGS := -g -DMTP_HOST |
| 70 | LOCAL_LDFLAGS := -g |
| 71 | |
| 72 | include $(BUILD_HOST_EXECUTABLE) |
| 73 | |
Mike Lockwood | fceef46 | 2010-05-14 15:35:17 -0400 | [diff] [blame^] | 74 | include $(CLEAR_VARS) |
| 75 | |
| 76 | LOCAL_MODULE := scantest |
| 77 | LOCAL_SRC_FILES:= \ |
| 78 | scantest.cpp \ |
| 79 | MtpMediaScanner.cpp \ |
| 80 | MtpDatabase.cpp \ |
| 81 | MtpDataPacket.cpp \ |
| 82 | MtpPacket.cpp \ |
| 83 | MtpStringBuffer.cpp \ |
| 84 | MtpUtils.cpp \ |
| 85 | SqliteDatabase.cpp \ |
| 86 | SqliteStatement.cpp \ |
| 87 | |
| 88 | |
| 89 | #LOCAL_STATIC_LIBRARIES := libusbhost |
| 90 | #LOCAL_LDLIBS := -lpthread |
| 91 | |
| 92 | LOCAL_C_INCLUDES := external/sqlite/dist |
| 93 | LOCAL_SHARED_LIBRARIES := libutils libsqlite libstagefright |
| 94 | |
| 95 | |
| 96 | LOCAL_CFLAGS := -g |
| 97 | LOCAL_LDFLAGS := -g |
| 98 | |
| 99 | include $(BUILD_EXECUTABLE) |
| 100 | |
Mike Lockwood | 16864ba | 2010-05-11 17:16:59 -0400 | [diff] [blame] | 101 | endif |