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