blob: 943984665e6286b65c47775d409292480b52a2e7 [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
Kévin PETIT14893ec2014-02-12 10:54:32 +000017LOCAL_PATH := $(call my-dir)
Mike Lockwood30ff2c72010-05-09 16:23:47 -040018
19# Static library for Linux host
20# ========================================================
21
22ifeq ($(HOST_OS),linux)
23
24include $(CLEAR_VARS)
Mike Lockwood30ff2c72010-05-09 16:23:47 -040025LOCAL_MODULE := libusbhost
26LOCAL_SRC_FILES := usbhost.c
Mark Salyzyn03b87692014-05-15 15:16:47 -070027LOCAL_CFLAGS := -Werror
Elliott Hughese0a7c772016-09-16 10:43:56 -070028LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
29LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Mike Lockwood30ff2c72010-05-09 16:23:47 -040030include $(BUILD_HOST_STATIC_LIBRARY)
31
32endif
33
Mike Lockwood12353892010-12-29 08:33:24 -050034# Shared library for target
Mike Lockwood30ff2c72010-05-09 16:23:47 -040035# ========================================================
36
37include $(CLEAR_VARS)
Mike Lockwood30ff2c72010-05-09 16:23:47 -040038LOCAL_MODULE := libusbhost
39LOCAL_SRC_FILES := usbhost.c
Mark Salyzyn03b87692014-05-15 15:16:47 -070040LOCAL_CFLAGS := -g -DUSE_LIBLOG -Werror
Elliott Hughese0a7c772016-09-16 10:43:56 -070041LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
42LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Mike Lockwoode533c5f2011-01-04 20:04:36 -050043# needed for logcat
44LOCAL_SHARED_LIBRARIES := libcutils
Mike Lockwood12353892010-12-29 08:33:24 -050045include $(BUILD_SHARED_LIBRARY)
Guillaume Ranquet08c11992012-12-07 13:39:39 +010046
47# Static library for target
48# ========================================================
49
50include $(CLEAR_VARS)
Guillaume Ranquet08c11992012-12-07 13:39:39 +010051LOCAL_MODULE := libusbhost
52LOCAL_SRC_FILES := usbhost.c
Mark Salyzyn03b87692014-05-15 15:16:47 -070053LOCAL_CFLAGS := -Werror
Elliott Hughese0a7c772016-09-16 10:43:56 -070054LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
55LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Guillaume Ranquet08c11992012-12-07 13:39:39 +010056include $(BUILD_STATIC_LIBRARY)