Android.mk revision dda7e2b7378755637f188cca7c5ae854427a28f7
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
18include $(CLEAR_VARS)
19
20LOCAL_SRC_FILES:=                                       \
21                  MtpClient.cpp                         \
22                  MtpCursor.cpp                         \
23                  MtpDataPacket.cpp                     \
24                  MtpDebug.cpp                          \
25                  MtpDevice.cpp                         \
26                  MtpDeviceInfo.cpp                     \
27                  MtpMediaScanner.cpp                   \
28                  MtpObjectInfo.cpp                     \
29                  MtpPacket.cpp                         \
30                  MtpProperty.cpp                       \
31                  MtpRequestPacket.cpp                  \
32                  MtpResponsePacket.cpp                 \
33                  MtpServer.cpp                         \
34                  MtpSqliteDatabase.cpp                 \
35                  MtpStorageInfo.cpp                    \
36                  MtpStringBuffer.cpp                   \
37                  MtpStorage.cpp                        \
38                  MtpUtils.cpp                          \
39                  SqliteDatabase.cpp                    \
40                  SqliteStatement.cpp                   \
41
42LOCAL_MODULE:= libmtp
43
44LOCAL_C_INCLUDES := external/sqlite/dist
45
46LOCAL_CFLAGS := -DMTP_DEVICE -DMTP_HOST
47
48include $(BUILD_STATIC_LIBRARY)
49
50ifneq ($(TARGET_SIMULATOR),true)
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 libcutils \
62	libmedia
63
64LOCAL_STATIC_LIBRARIES := libmtp
65
66include $(BUILD_EXECUTABLE)
67
68include $(CLEAR_VARS)
69
70LOCAL_MODULE := scantest
71LOCAL_SRC_FILES:=                                       \
72                  scantest.cpp                          \
73
74
75LOCAL_STATIC_LIBRARIES := libmtp
76
77LOCAL_C_INCLUDES := external/sqlite/dist
78LOCAL_SHARED_LIBRARIES := libutils libsqlite libmedia
79
80LOCAL_CFLAGS := -g
81LOCAL_LDFLAGS := -g
82
83include $(BUILD_EXECUTABLE)
84
85endif
86