• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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# listdevs
24
25include $(CLEAR_VARS)
26
27LOCAL_SRC_FILES := \
28  $(LIBUSB_ROOT_REL)/examples/listdevs.c
29
30LOCAL_C_INCLUDES += \
31  $(LIBUSB_ROOT_ABS)
32
33LOCAL_SHARED_LIBRARIES += libusb1.0
34
35LOCAL_MODULE:= listdevs
36
37include $(BUILD_EXECUTABLE)
38
39# xusb
40
41include $(CLEAR_VARS)
42
43LOCAL_SRC_FILES := \
44  $(LIBUSB_ROOT_REL)/examples/xusb.c
45
46LOCAL_C_INCLUDES += \
47  $(LIBUSB_ROOT_ABS)
48
49LOCAL_SHARED_LIBRARIES += libusb1.0
50
51LOCAL_MODULE:= xusb
52
53include $(BUILD_EXECUTABLE)
54
55# hotplugtest
56
57include $(CLEAR_VARS)
58
59LOCAL_SRC_FILES := \
60  $(LIBUSB_ROOT_REL)/examples/hotplugtest.c
61
62LOCAL_C_INCLUDES += \
63  $(LIBUSB_ROOT_ABS)
64
65LOCAL_SHARED_LIBRARIES += libusb1.0
66
67LOCAL_MODULE:= hotplugtest
68
69include $(BUILD_EXECUTABLE)
70
71# fxload
72
73include $(CLEAR_VARS)
74
75LOCAL_SRC_FILES := \
76  $(LIBUSB_ROOT_REL)/examples/fxload.c \
77  $(LIBUSB_ROOT_REL)/examples/ezusb.c
78
79LOCAL_C_INCLUDES += \
80  $(LIBUSB_ROOT_ABS)
81
82LOCAL_SHARED_LIBRARIES += libusb1.0
83
84LOCAL_MODULE:= fxload
85
86include $(BUILD_EXECUTABLE)
87
88# sam3u_benchmake
89
90include $(CLEAR_VARS)
91
92LOCAL_SRC_FILES := \
93  $(LIBUSB_ROOT_REL)/examples/sam3u_benchmark.c
94
95LOCAL_C_INCLUDES += \
96  $(LIBUSB_ROOT_ABS)
97
98LOCAL_SHARED_LIBRARIES += libusb1.0
99
100LOCAL_MODULE:= sam3u_benchmark
101
102include $(BUILD_EXECUTABLE)
103
104# dpfp
105
106include $(CLEAR_VARS)
107
108LOCAL_SRC_FILES := \
109  $(LIBUSB_ROOT_REL)/examples/dpfp.c
110
111LOCAL_C_INCLUDES += \
112  $(LIBUSB_ROOT_ABS)
113
114LOCAL_SHARED_LIBRARIES += libusb1.0
115
116LOCAL_MODULE:= dpfp
117
118include $(BUILD_EXECUTABLE)
119
120# dpfp_threaded
121
122include $(CLEAR_VARS)
123
124LOCAL_SRC_FILES := \
125  $(LIBUSB_ROOT_REL)/examples/dpfp_threaded.c
126
127LOCAL_C_INCLUDES += \
128  $(LIBUSB_ROOT_ABS)
129
130LOCAL_SHARED_LIBRARIES += libusb1.0
131
132LOCAL_MODULE:= dpfp_threaded
133
134include $(BUILD_EXECUTABLE)
135