Android.mk revision 23f1b33c5f88f07510ca5dc01b3afd7af6843d6c
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                  MtpDataPacket.cpp                     \
25                  MtpDebug.cpp                          \
26                  MtpDevice.cpp                         \
27                  MtpEventPacket.cpp                    \
28                  MtpDeviceInfo.cpp                     \
29                  MtpObjectInfo.cpp                     \
30                  MtpPacket.cpp                         \
31                  MtpProperty.cpp                       \
32                  MtpRequestPacket.cpp                  \
33                  MtpResponsePacket.cpp                 \
34                  MtpServer.cpp                         \
35                  MtpStorageInfo.cpp                    \
36                  MtpStringBuffer.cpp                   \
37                  MtpStorage.cpp                        \
38                  MtpUtils.cpp                          \
39
40LOCAL_MODULE:= libmtp
41
42LOCAL_CFLAGS := -DMTP_DEVICE -DMTP_HOST
43
44LOCAL_SHARED_LIBRARIES := libutils libcutils libusbhost libbinder
45
46include $(BUILD_SHARED_LIBRARY)
47
48endif
49
50ifeq ($(HOST_OS),linux)
51
52include $(CLEAR_VARS)
53
54LOCAL_SRC_FILES:=                                       \
55                  MtpDataPacket.cpp                     \
56                  MtpDebug.cpp                          \
57                  MtpDevice.cpp                         \
58                  MtpEventPacket.cpp                    \
59                  MtpDeviceInfo.cpp                     \
60                  MtpObjectInfo.cpp                     \
61                  MtpPacket.cpp                         \
62                  MtpProperty.cpp                       \
63                  MtpRequestPacket.cpp                  \
64                  MtpResponsePacket.cpp                 \
65                  MtpStorageInfo.cpp                    \
66                  MtpStringBuffer.cpp                   \
67                  MtpStorage.cpp                        \
68                  MtpUtils.cpp                          \
69
70LOCAL_MODULE:= libmtp
71
72LOCAL_CFLAGS := -DMTP_HOST
73
74include $(BUILD_HOST_STATIC_LIBRARY)
75
76endif
77