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 19# Static library for Linux host 20# ======================================================== 21 22ifeq ($(HOST_OS),linux) 23 24include $(CLEAR_VARS) 25LOCAL_MODULE := libusbhost 26LOCAL_SRC_FILES := usbhost.c 27LOCAL_CFLAGS := -Werror 28LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 29LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 30include $(BUILD_HOST_STATIC_LIBRARY) 31 32endif 33 34# Shared library for target 35# ======================================================== 36 37include $(CLEAR_VARS) 38LOCAL_MODULE := libusbhost 39LOCAL_SRC_FILES := usbhost.c 40LOCAL_CFLAGS := -g -DUSE_LIBLOG -Werror 41LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 42LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 43# needed for logcat 44LOCAL_SHARED_LIBRARIES := libcutils 45include $(BUILD_SHARED_LIBRARY) 46 47# Static library for target 48# ======================================================== 49 50include $(CLEAR_VARS) 51LOCAL_MODULE := libusbhost 52LOCAL_SRC_FILES := usbhost.c 53LOCAL_CFLAGS := -Werror 54LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 55LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 56include $(BUILD_STATIC_LIBRARY) 57