Android.mk revision 98ef64e4a89ced79094d4ff3dc0123c1989f9e10
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#
16LOCAL_PATH:= $(call my-dir)
17
18ifneq ($(TARGET_SIMULATOR),true)
19
20include $(CLEAR_VARS)
21
22LOCAL_SRC_FILES:=                                       \
23                  MtpClient.cpp                         \
24                  MtpCursor.cpp                         \
25                  MtpDatabase.cpp                       \
26                  MtpDataPacket.cpp                     \
27                  MtpDebug.cpp                          \
28                  MtpDevice.cpp                         \
29                  MtpDeviceInfo.cpp                     \
30                  MtpMediaScanner.cpp                   \
31                  MtpObjectInfo.cpp                     \
32                  MtpPacket.cpp                         \
33                  MtpProperty.cpp                       \
34                  MtpRequestPacket.cpp                  \
35                  MtpResponsePacket.cpp                 \
36                  MtpServer.cpp                         \
37                  MtpStorageInfo.cpp                    \
38                  MtpStringBuffer.cpp                   \
39                  MtpStorage.cpp                        \
40                  MtpUtils.cpp                          \
41                  SqliteDatabase.cpp                    \
42                  SqliteStatement.cpp                   \
43
44LOCAL_MODULE:= libmtp
45
46LOCAL_C_INCLUDES := external/sqlite/dist
47
48LOCAL_CFLAGS := -DMTP_DEVICE -DMTP_HOST
49
50include $(BUILD_STATIC_LIBRARY)
51
52include $(CLEAR_VARS)
53
54LOCAL_SRC_FILES:=                                       \
55                  mtptest.cpp                           \
56
57LOCAL_MODULE:= mtptest
58
59LOCAL_CFLAGS := -DMTP_DEVICE
60
61LOCAL_SHARED_LIBRARIES := libutils libsqlite libstagefright libcutils \
62	libmedia
63
64LOCAL_STATIC_LIBRARIES := libmtp
65
66include $(BUILD_EXECUTABLE)
67
68endif
69
70include $(CLEAR_VARS)
71
72LOCAL_MODULE := scantest
73LOCAL_SRC_FILES:=                                       \
74                  scantest.cpp                          \
75                  MtpMediaScanner.cpp                   \
76                  MtpDatabase.cpp                       \
77                  MtpDataPacket.cpp                     \
78                  MtpPacket.cpp                         \
79                  MtpStringBuffer.cpp                   \
80                  MtpUtils.cpp                          \
81                  SqliteDatabase.cpp                    \
82                  SqliteStatement.cpp                   \
83
84
85#LOCAL_STATIC_LIBRARIES := libusbhost
86#LOCAL_LDLIBS := -lpthread
87
88LOCAL_C_INCLUDES := external/sqlite/dist
89LOCAL_SHARED_LIBRARIES := libutils libsqlite libstagefright libmedia
90
91
92LOCAL_CFLAGS := -g
93LOCAL_LDFLAGS := -g
94
95include $(BUILD_EXECUTABLE)
96