xref: /aosp_15_r20/external/libusb/android/jni/tests.mk (revision 86b64dcb59b3a0b37502ecd56e119234366a6f7e)
1*86b64dcbSAndroid Build Coastguard Worker# Android build config for libusb tests
2*86b64dcbSAndroid Build Coastguard Worker# Copyright © 2012-2013 RealVNC Ltd. <[email protected]>
3*86b64dcbSAndroid Build Coastguard Worker#
4*86b64dcbSAndroid Build Coastguard Worker# This library is free software; you can redistribute it and/or
5*86b64dcbSAndroid Build Coastguard Worker# modify it under the terms of the GNU Lesser General Public
6*86b64dcbSAndroid Build Coastguard Worker# License as published by the Free Software Foundation; either
7*86b64dcbSAndroid Build Coastguard Worker# version 2.1 of the License, or (at your option) any later version.
8*86b64dcbSAndroid Build Coastguard Worker#
9*86b64dcbSAndroid Build Coastguard Worker# This library is distributed in the hope that it will be useful,
10*86b64dcbSAndroid Build Coastguard Worker# but WITHOUT ANY WARRANTY; without even the implied warranty of
11*86b64dcbSAndroid Build Coastguard Worker# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12*86b64dcbSAndroid Build Coastguard Worker# Lesser General Public License for more details.
13*86b64dcbSAndroid Build Coastguard Worker#
14*86b64dcbSAndroid Build Coastguard Worker# You should have received a copy of the GNU Lesser General Public
15*86b64dcbSAndroid Build Coastguard Worker# License along with this library; if not, write to the Free Software
16*86b64dcbSAndroid Build Coastguard Worker# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17*86b64dcbSAndroid Build Coastguard Worker#
18*86b64dcbSAndroid Build Coastguard Worker
19*86b64dcbSAndroid Build Coastguard WorkerLOCAL_PATH := $(call my-dir)
20*86b64dcbSAndroid Build Coastguard WorkerLIBUSB_ROOT_REL := ../..
21*86b64dcbSAndroid Build Coastguard WorkerLIBUSB_ROOT_ABS := $(LOCAL_PATH)/../..
22*86b64dcbSAndroid Build Coastguard Worker
23*86b64dcbSAndroid Build Coastguard Workerifeq ($(USE_PC_NAME),1)
24*86b64dcbSAndroid Build Coastguard Worker  LIBUSB_MODULE := usb-1.0
25*86b64dcbSAndroid Build Coastguard Workerelse
26*86b64dcbSAndroid Build Coastguard Worker  LIBUSB_MODULE := libusb1.0
27*86b64dcbSAndroid Build Coastguard Workerendif
28*86b64dcbSAndroid Build Coastguard Worker
29*86b64dcbSAndroid Build Coastguard Worker# stress
30*86b64dcbSAndroid Build Coastguard Worker
31*86b64dcbSAndroid Build Coastguard Workerinclude $(CLEAR_VARS)
32*86b64dcbSAndroid Build Coastguard Worker
33*86b64dcbSAndroid Build Coastguard WorkerLOCAL_SRC_FILES := \
34*86b64dcbSAndroid Build Coastguard Worker  $(LIBUSB_ROOT_REL)/tests/stress.c \
35*86b64dcbSAndroid Build Coastguard Worker  $(LIBUSB_ROOT_REL)/tests/testlib.c
36*86b64dcbSAndroid Build Coastguard Worker
37*86b64dcbSAndroid Build Coastguard WorkerLOCAL_C_INCLUDES += \
38*86b64dcbSAndroid Build Coastguard Worker  $(LOCAL_PATH)/.. \
39*86b64dcbSAndroid Build Coastguard Worker  $(LIBUSB_ROOT_ABS)
40*86b64dcbSAndroid Build Coastguard Worker
41*86b64dcbSAndroid Build Coastguard WorkerLOCAL_SHARED_LIBRARIES += $(LIBUSB_MODULE)
42*86b64dcbSAndroid Build Coastguard Worker
43*86b64dcbSAndroid Build Coastguard WorkerLOCAL_MODULE := stress
44*86b64dcbSAndroid Build Coastguard WorkerLOCAL_LICENSE_KINDS := SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-LGPL-3.0
45*86b64dcbSAndroid Build Coastguard WorkerLOCAL_LICENSE_CONDITIONS := restricted
46*86b64dcbSAndroid Build Coastguard WorkerLOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../COPYING $(LOCAL_PATH)/../../NOTICE
47*86b64dcbSAndroid Build Coastguard Worker
48*86b64dcbSAndroid Build Coastguard Workerinclude $(BUILD_EXECUTABLE)
49