blob: 4d86064e73d2cf16fc901723d2b78ec2224cc1fa [file] [log] [blame]
Mike Lockwood16864ba2010-05-11 17:16:59 -04001#
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#
16LOCAL_PATH:= $(call my-dir)
17
Mike Lockwood67589f42010-05-13 16:28:00 -040018ifneq ($(TARGET_SIMULATOR),true)
19
Mike Lockwood16864ba2010-05-11 17:16:59 -040020include $(CLEAR_VARS)
21
22LOCAL_SRC_FILES:= \
23 mtptest.cpp \
24 MtpDatabase.cpp \
25 MtpDataPacket.cpp \
26 MtpDebug.cpp \
27 MtpPacket.cpp \
28 MtpRequestPacket.cpp \
29 MtpResponsePacket.cpp \
30 MtpServer.cpp \
31 MtpStringBuffer.cpp \
32 MtpStorage.cpp \
33 MtpUtils.cpp \
34 SqliteDatabase.cpp \
35 SqliteStatement.cpp \
36
37LOCAL_MODULE:= mtptest
38
39LOCAL_C_INCLUDES := external/sqlite/dist
40
41LOCAL_CFLAGS := -DMTP_DEVICE
42
43LOCAL_SHARED_LIBRARIES := libutils libsqlite
44
45include $(BUILD_EXECUTABLE)
46
Mike Lockwood67589f42010-05-13 16:28:00 -040047endif
48
Mike Lockwood16864ba2010-05-11 17:16:59 -040049ifeq ($(HOST_OS),linux)
50
51include $(CLEAR_VARS)
52
53LOCAL_MODULE := ptptest
54LOCAL_SRC_FILES:= \
55 ptptest.cpp \
56 MtpClient.cpp \
57 MtpDataPacket.cpp \
58 MtpDebug.cpp \
59 MtpPacket.cpp \
60 MtpRequestPacket.cpp \
61 MtpResponsePacket.cpp \
62 MtpStringBuffer.cpp \
63
64
65LOCAL_STATIC_LIBRARIES := libusbhost
66LOCAL_LDLIBS := -lpthread
67
68LOCAL_CFLAGS := -g -DMTP_HOST
69LOCAL_LDFLAGS := -g
70
71include $(BUILD_HOST_EXECUTABLE)
72
73endif