Android.mk revision 16864bae0f51c32c456da2c43adf7a057c0c4882
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 mtptest.cpp \ 22 MtpDatabase.cpp \ 23 MtpDataPacket.cpp \ 24 MtpDebug.cpp \ 25 MtpPacket.cpp \ 26 MtpRequestPacket.cpp \ 27 MtpResponsePacket.cpp \ 28 MtpServer.cpp \ 29 MtpStringBuffer.cpp \ 30 MtpStorage.cpp \ 31 MtpUtils.cpp \ 32 SqliteDatabase.cpp \ 33 SqliteStatement.cpp \ 34 35LOCAL_MODULE:= mtptest 36 37LOCAL_C_INCLUDES := external/sqlite/dist 38 39LOCAL_CFLAGS := -DMTP_DEVICE 40 41LOCAL_SHARED_LIBRARIES := libutils libsqlite 42 43include $(BUILD_EXECUTABLE) 44 45ifeq ($(HOST_OS),linux) 46 47include $(CLEAR_VARS) 48 49LOCAL_MODULE := ptptest 50LOCAL_SRC_FILES:= \ 51 ptptest.cpp \ 52 MtpClient.cpp \ 53 MtpDataPacket.cpp \ 54 MtpDebug.cpp \ 55 MtpPacket.cpp \ 56 MtpRequestPacket.cpp \ 57 MtpResponsePacket.cpp \ 58 MtpStringBuffer.cpp \ 59 60 61LOCAL_STATIC_LIBRARIES := libusbhost 62LOCAL_LDLIBS := -lpthread 63 64LOCAL_CFLAGS := -g -DMTP_HOST 65LOCAL_LDFLAGS := -g 66 67include $(BUILD_HOST_EXECUTABLE) 68 69endif