blob: 52b4eadc99fcead2aa587614fecf57ede28fc3dc [file] [log] [blame]
Mike Lockwood30ff2c72010-05-09 16:23:47 -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#
16
17LOCAL_PATH := $(my-dir)
18
19# Static library for Linux host
20# ========================================================
21
22ifeq ($(HOST_OS),linux)
23
24include $(CLEAR_VARS)
25
26LOCAL_MODULE := libusbhost
27LOCAL_SRC_FILES := usbhost.c
28
29include $(BUILD_HOST_STATIC_LIBRARY)
30
31endif
32
Mike Lockwood12353892010-12-29 08:33:24 -050033# Shared library for target
Mike Lockwood30ff2c72010-05-09 16:23:47 -040034# ========================================================
35
36include $(CLEAR_VARS)
37
38LOCAL_MODULE := libusbhost
39LOCAL_SRC_FILES := usbhost.c
40
Mike Lockwoode15af092010-06-10 10:20:49 -040041LOCAL_CFLAGS := -g -DUSE_LIBLOG
42
Mike Lockwoode533c5f2011-01-04 20:04:36 -050043# needed for logcat
44LOCAL_SHARED_LIBRARIES := libcutils
45
Mike Lockwood12353892010-12-29 08:33:24 -050046include $(BUILD_SHARED_LIBRARY)