Mike Lockwood | 30ff2c7 | 2010-05-09 16:23:47 -0400 | [diff] [blame] | 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 | |
Kévin PETIT | 14893ec | 2014-02-12 10:54:32 +0000 | [diff] [blame] | 17 | LOCAL_PATH := $(call my-dir) |
Mike Lockwood | 30ff2c7 | 2010-05-09 16:23:47 -0400 | [diff] [blame] | 18 | |
| 19 | # Static library for Linux host |
| 20 | # ======================================================== |
| 21 | |
| 22 | ifeq ($(HOST_OS),linux) |
| 23 | |
| 24 | include $(CLEAR_VARS) |
Mike Lockwood | 30ff2c7 | 2010-05-09 16:23:47 -0400 | [diff] [blame] | 25 | LOCAL_MODULE := libusbhost |
| 26 | LOCAL_SRC_FILES := usbhost.c |
Mark Salyzyn | 03b8769 | 2014-05-15 15:16:47 -0700 | [diff] [blame] | 27 | LOCAL_CFLAGS := -Werror |
Elliott Hughes | e0a7c77 | 2016-09-16 10:43:56 -0700 | [diff] [blame] | 28 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| 29 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Mike Lockwood | 30ff2c7 | 2010-05-09 16:23:47 -0400 | [diff] [blame] | 30 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 31 | |
| 32 | endif |
| 33 | |
Mike Lockwood | 1235389 | 2010-12-29 08:33:24 -0500 | [diff] [blame] | 34 | # Shared library for target |
Mike Lockwood | 30ff2c7 | 2010-05-09 16:23:47 -0400 | [diff] [blame] | 35 | # ======================================================== |
| 36 | |
| 37 | include $(CLEAR_VARS) |
Mike Lockwood | 30ff2c7 | 2010-05-09 16:23:47 -0400 | [diff] [blame] | 38 | LOCAL_MODULE := libusbhost |
| 39 | LOCAL_SRC_FILES := usbhost.c |
Mark Salyzyn | 03b8769 | 2014-05-15 15:16:47 -0700 | [diff] [blame] | 40 | LOCAL_CFLAGS := -g -DUSE_LIBLOG -Werror |
Elliott Hughes | e0a7c77 | 2016-09-16 10:43:56 -0700 | [diff] [blame] | 41 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| 42 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Mike Lockwood | e533c5f | 2011-01-04 20:04:36 -0500 | [diff] [blame] | 43 | # needed for logcat |
| 44 | LOCAL_SHARED_LIBRARIES := libcutils |
Mike Lockwood | 1235389 | 2010-12-29 08:33:24 -0500 | [diff] [blame] | 45 | include $(BUILD_SHARED_LIBRARY) |
Guillaume Ranquet | 08c1199 | 2012-12-07 13:39:39 +0100 | [diff] [blame] | 46 | |
| 47 | # Static library for target |
| 48 | # ======================================================== |
| 49 | |
| 50 | include $(CLEAR_VARS) |
Guillaume Ranquet | 08c1199 | 2012-12-07 13:39:39 +0100 | [diff] [blame] | 51 | LOCAL_MODULE := libusbhost |
| 52 | LOCAL_SRC_FILES := usbhost.c |
Mark Salyzyn | 03b8769 | 2014-05-15 15:16:47 -0700 | [diff] [blame] | 53 | LOCAL_CFLAGS := -Werror |
Elliott Hughes | e0a7c77 | 2016-09-16 10:43:56 -0700 | [diff] [blame] | 54 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
| 55 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Guillaume Ranquet | 08c1199 | 2012-12-07 13:39:39 +0100 | [diff] [blame] | 56 | include $(BUILD_STATIC_LIBRARY) |