Android.mk revision ddc4497c17b23d4a9828f977d5ac11ee36059da9
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
17LOCAL_PATH:= $(call my-dir)
18
19ifneq ($(TARGET_SIMULATOR),true)
20
21include $(CLEAR_VARS)
22
23LOCAL_SRC_FILES:=                                       \
24                  MtpClient.cpp                         \
25                  MtpDataPacket.cpp                     \
26                  MtpDebug.cpp                          \
27                  MtpDevice.cpp                         \
28                  MtpEventPacket.cpp                    \
29                  MtpDeviceInfo.cpp                     \
30                  MtpObjectInfo.cpp                     \
31                  MtpPacket.cpp                         \
32                  MtpProperty.cpp                       \
33                  MtpRequestPacket.cpp                  \
34                  MtpResponsePacket.cpp                 \
35                  MtpServer.cpp                         \
36                  MtpStorageInfo.cpp                    \
37                  MtpStringBuffer.cpp                   \
38                  MtpStorage.cpp                        \
39                  MtpUtils.cpp                          \
40                  PtpCursor.cpp                         \
41
42LOCAL_MODULE:= libmtp
43
44LOCAL_CFLAGS := -DMTP_DEVICE -DMTP_HOST
45
46include $(BUILD_STATIC_LIBRARY)
47
48endif
49
50ifeq ($(HOST_OS),linux)
51
52include $(CLEAR_VARS)
53
54LOCAL_SRC_FILES:=                                       \
55                  MtpClient.cpp                         \
56                  MtpDataPacket.cpp                     \
57                  MtpDebug.cpp                          \
58                  MtpDevice.cpp                         \
59                  MtpEventPacket.cpp                    \
60                  MtpDeviceInfo.cpp                     \
61                  MtpObjectInfo.cpp                     \
62                  MtpPacket.cpp                         \
63                  MtpProperty.cpp                       \
64                  MtpRequestPacket.cpp                  \
65                  MtpResponsePacket.cpp                 \
66                  MtpStorageInfo.cpp                    \
67                  MtpStringBuffer.cpp                   \
68                  MtpStorage.cpp                        \
69                  MtpUtils.cpp                          \
70                  PtpCursor.cpp                         \
71
72LOCAL_MODULE:= libmtp
73
74LOCAL_CFLAGS := -DMTP_HOST
75
76include $(BUILD_HOST_STATIC_LIBRARY)
77
78endif
79