blob: e590babb485eb0441e1836232dc749bc598b46d0 [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
19include $(CLEAR_VARS)
20
21LOCAL_SRC_FILES:= \
Mike Lockwood56118b52010-05-11 17:16:59 -040022 MtpDataPacket.cpp \
23 MtpDebug.cpp \
Mike Lockwood98ef64e2010-06-29 16:42:13 -040024 MtpDevice.cpp \
Mike Lockwoodbe125a52010-07-12 18:54:16 -040025 MtpEventPacket.cpp \
Mike Lockwood98ef64e2010-06-29 16:42:13 -040026 MtpDeviceInfo.cpp \
Mike Lockwood98ef64e2010-06-29 16:42:13 -040027 MtpObjectInfo.cpp \
Mike Lockwood56118b52010-05-11 17:16:59 -040028 MtpPacket.cpp \
Mike Lockwood98ef64e2010-06-29 16:42:13 -040029 MtpProperty.cpp \
Mike Lockwood56118b52010-05-11 17:16:59 -040030 MtpRequestPacket.cpp \
31 MtpResponsePacket.cpp \
32 MtpServer.cpp \
Mike Lockwood98ef64e2010-06-29 16:42:13 -040033 MtpStorageInfo.cpp \
Mike Lockwood56118b52010-05-11 17:16:59 -040034 MtpStringBuffer.cpp \
35 MtpStorage.cpp \
36 MtpUtils.cpp \
Mike Lockwood56118b52010-05-11 17:16:59 -040037
Mike Lockwood98ef64e2010-06-29 16:42:13 -040038LOCAL_MODULE:= libmtp
Mike Lockwood56118b52010-05-11 17:16:59 -040039
Mike Lockwood98ef64e2010-06-29 16:42:13 -040040LOCAL_CFLAGS := -DMTP_DEVICE -DMTP_HOST
41
Mike Lockwoodda03aaa2010-12-29 08:32:32 -050042LOCAL_SHARED_LIBRARIES := libutils libcutils libusbhost libbinder
43
44include $(BUILD_SHARED_LIBRARY)
Mike Lockwoodff164a72010-07-15 15:01:17 -040045
Mike Lockwood87626b12010-12-07 10:43:41 -080046ifeq ($(HOST_OS),linux)
47
48include $(CLEAR_VARS)
49
50LOCAL_SRC_FILES:= \
Mike Lockwood87626b12010-12-07 10:43:41 -080051 MtpDataPacket.cpp \
52 MtpDebug.cpp \
53 MtpDevice.cpp \
54 MtpEventPacket.cpp \
55 MtpDeviceInfo.cpp \
56 MtpObjectInfo.cpp \
57 MtpPacket.cpp \
58 MtpProperty.cpp \
59 MtpRequestPacket.cpp \
60 MtpResponsePacket.cpp \
61 MtpStorageInfo.cpp \
62 MtpStringBuffer.cpp \
63 MtpStorage.cpp \
64 MtpUtils.cpp \
Mike Lockwood87626b12010-12-07 10:43:41 -080065
66LOCAL_MODULE:= libmtp
67
68LOCAL_CFLAGS := -DMTP_HOST
69
70include $(BUILD_HOST_STATIC_LIBRARY)
71
72endif