blob: c25285eb29284635d2594a8674c8ee86d0d3fca7 [file] [log] [blame]
Mike Lockwood56118b52010-05-11 17:16:59 -04001#
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#
Mike Lockwoodff164a72010-07-15 15:01:17 -040016
Mike Lockwood56118b52010-05-11 17:16:59 -040017LOCAL_PATH:= $(call my-dir)
18
Andy McFaddenaecf3902010-07-20 08:18:43 -070019ifneq ($(TARGET_SIMULATOR),true)
20
Mike Lockwood56118b52010-05-11 17:16:59 -040021include $(CLEAR_VARS)
22
23LOCAL_SRC_FILES:= \
Mike Lockwood56118b52010-05-11 17:16:59 -040024 MtpDataPacket.cpp \
25 MtpDebug.cpp \
Mike Lockwood98ef64e2010-06-29 16:42:13 -040026 MtpDevice.cpp \
Mike Lockwoodbe125a52010-07-12 18:54:16 -040027 MtpEventPacket.cpp \
Mike Lockwood98ef64e2010-06-29 16:42:13 -040028 MtpDeviceInfo.cpp \
Mike Lockwood98ef64e2010-06-29 16:42:13 -040029 MtpObjectInfo.cpp \
Mike Lockwood56118b52010-05-11 17:16:59 -040030 MtpPacket.cpp \
Mike Lockwood98ef64e2010-06-29 16:42:13 -040031 MtpProperty.cpp \
Mike Lockwood56118b52010-05-11 17:16:59 -040032 MtpRequestPacket.cpp \
33 MtpResponsePacket.cpp \
34 MtpServer.cpp \
Mike Lockwood98ef64e2010-06-29 16:42:13 -040035 MtpStorageInfo.cpp \
Mike Lockwood56118b52010-05-11 17:16:59 -040036 MtpStringBuffer.cpp \
37 MtpStorage.cpp \
38 MtpUtils.cpp \
Mike Lockwood56118b52010-05-11 17:16:59 -040039
Mike Lockwood98ef64e2010-06-29 16:42:13 -040040LOCAL_MODULE:= libmtp
Mike Lockwood56118b52010-05-11 17:16:59 -040041
Mike Lockwood98ef64e2010-06-29 16:42:13 -040042LOCAL_CFLAGS := -DMTP_DEVICE -DMTP_HOST
43
Mike Lockwoodda03aaa2010-12-29 08:32:32 -050044LOCAL_SHARED_LIBRARIES := libutils libcutils libusbhost libbinder
45
46include $(BUILD_SHARED_LIBRARY)
Mike Lockwoodff164a72010-07-15 15:01:17 -040047
48endif
Mike Lockwoodbbd9f362010-07-19 09:01:57 -040049
Mike Lockwood87626b12010-12-07 10:43:41 -080050ifeq ($(HOST_OS),linux)
51
52include $(CLEAR_VARS)
53
54LOCAL_SRC_FILES:= \
Mike Lockwood87626b12010-12-07 10:43:41 -080055 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 \
Mike Lockwood87626b12010-12-07 10:43:41 -080069
70LOCAL_MODULE:= libmtp
71
72LOCAL_CFLAGS := -DMTP_HOST
73
74include $(BUILD_HOST_STATIC_LIBRARY)
75
76endif