1# Android build config for libusb examples 2# Copyright © 2012-2013 RealVNC Ltd. <toby.gray@realvnc.com> 3# 4# This library is free software; you can redistribute it and/or 5# modify it under the terms of the GNU Lesser General Public 6# License as published by the Free Software Foundation; either 7# version 2.1 of the License, or (at your option) any later version. 8# 9# This library is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12# Lesser General Public License for more details. 13# 14# You should have received a copy of the GNU Lesser General Public 15# License along with this library; if not, write to the Free Software 16# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17# 18 19LOCAL_PATH := $(call my-dir) 20LIBUSB_ROOT_REL := ../.. 21LIBUSB_ROOT_ABS := $(LOCAL_PATH)/../.. 22 23# dpfp 24 25include $(CLEAR_VARS) 26 27LOCAL_SRC_FILES := \ 28 $(LIBUSB_ROOT_REL)/examples/dpfp.c 29 30LOCAL_C_INCLUDES += \ 31 $(LOCAL_PATH)/.. \ 32 $(LIBUSB_ROOT_ABS) 33 34LOCAL_SHARED_LIBRARIES += libusb1.0 35 36LOCAL_MODULE := dpfp 37LOCAL_LICENSE_KINDS := SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-LGPL-3.0 38LOCAL_LICENSE_CONDITIONS := restricted 39LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../COPYING $(LOCAL_PATH)/../../NOTICE 40 41include $(BUILD_EXECUTABLE) 42 43# dpfp_threaded 44 45include $(CLEAR_VARS) 46 47LOCAL_SRC_FILES := \ 48 $(LIBUSB_ROOT_REL)/examples/dpfp.c 49 50LOCAL_C_INCLUDES += \ 51 $(LOCAL_PATH)/.. \ 52 $(LIBUSB_ROOT_ABS) 53 54LOCAL_CFLAGS := -DDPFP_THREADED -pthread 55 56LOCAL_SHARED_LIBRARIES += libusb1.0 57 58LOCAL_MODULE := dpfp_threaded 59LOCAL_LICENSE_KINDS := SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-LGPL-3.0 60LOCAL_LICENSE_CONDITIONS := restricted 61LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../COPYING $(LOCAL_PATH)/../../NOTICE 62 63include $(BUILD_EXECUTABLE) 64 65# fxload 66 67include $(CLEAR_VARS) 68 69LOCAL_SRC_FILES := \ 70 $(LIBUSB_ROOT_REL)/examples/ezusb.c \ 71 $(LIBUSB_ROOT_REL)/examples/fxload.c 72 73LOCAL_C_INCLUDES += \ 74 $(LOCAL_PATH)/.. \ 75 $(LIBUSB_ROOT_ABS) 76 77LOCAL_SHARED_LIBRARIES += libusb1.0 78 79LOCAL_MODULE := fxload 80LOCAL_LICENSE_KINDS := SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-LGPL-3.0 81LOCAL_LICENSE_CONDITIONS := restricted 82LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../COPYING $(LOCAL_PATH)/../../NOTICE 83 84include $(BUILD_EXECUTABLE) 85 86# hotplugtest 87 88include $(CLEAR_VARS) 89 90LOCAL_SRC_FILES := \ 91 $(LIBUSB_ROOT_REL)/examples/hotplugtest.c 92 93LOCAL_C_INCLUDES += \ 94 $(LOCAL_PATH)/.. \ 95 $(LIBUSB_ROOT_ABS) 96 97LOCAL_SHARED_LIBRARIES += libusb1.0 98 99LOCAL_MODULE := hotplugtest 100LOCAL_LICENSE_KINDS := SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-LGPL-3.0 101LOCAL_LICENSE_CONDITIONS := restricted 102LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../COPYING $(LOCAL_PATH)/../../NOTICE 103 104include $(BUILD_EXECUTABLE) 105 106# listdevs 107 108include $(CLEAR_VARS) 109 110LOCAL_SRC_FILES := \ 111 $(LIBUSB_ROOT_REL)/examples/listdevs.c 112 113LOCAL_C_INCLUDES += \ 114 $(LOCAL_PATH)/.. \ 115 $(LIBUSB_ROOT_ABS) 116 117LOCAL_SHARED_LIBRARIES += libusb1.0 118 119LOCAL_MODULE := listdevs 120LOCAL_LICENSE_KINDS := SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-LGPL-3.0 121LOCAL_LICENSE_CONDITIONS := restricted 122LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../COPYING $(LOCAL_PATH)/../../NOTICE 123 124include $(BUILD_EXECUTABLE) 125 126# sam3u_benchmark 127 128include $(CLEAR_VARS) 129 130LOCAL_SRC_FILES := \ 131 $(LIBUSB_ROOT_REL)/examples/sam3u_benchmark.c 132 133LOCAL_C_INCLUDES += \ 134 $(LOCAL_PATH)/.. \ 135 $(LIBUSB_ROOT_ABS) 136 137LOCAL_SHARED_LIBRARIES += libusb1.0 138 139LOCAL_MODULE := sam3u_benchmark 140LOCAL_LICENSE_KINDS := SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-LGPL-3.0 141LOCAL_LICENSE_CONDITIONS := restricted 142LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../COPYING $(LOCAL_PATH)/../../NOTICE 143 144include $(BUILD_EXECUTABLE) 145 146# xusb 147 148include $(CLEAR_VARS) 149 150LOCAL_SRC_FILES := \ 151 $(LIBUSB_ROOT_REL)/examples/xusb.c 152 153LOCAL_C_INCLUDES += \ 154 $(LOCAL_PATH)/.. \ 155 $(LIBUSB_ROOT_ABS) 156 157LOCAL_SHARED_LIBRARIES += libusb1.0 158 159LOCAL_MODULE := xusb 160LOCAL_LICENSE_KINDS := SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-LGPL-3.0 161LOCAL_LICENSE_CONDITIONS := restricted 162LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../COPYING $(LOCAL_PATH)/../../NOTICE 163 164include $(BUILD_EXECUTABLE) 165