Android: Add formal Android support
[platform/upstream/libusb.git] / android / README
1 libusb for Android
2 ==================
3
4 To build libusb for Android do the following:
5
6  1. Download the latest NDK from:
7     http://developer.android.com/tools/sdk/ndk/index.html
8
9  2. Extract the NDK.
10
11  3. Open a shell and make sure there exist an NDK global variable
12     set to the directory where you extracted the NDK.
13
14  4. Change directory to libusb's "android/jni"
15
16  5. Run "$NDK/ndk-build".
17
18 The libusb library, examples and tests can then be found in:
19     "android/libs/$ARCH"
20
21 Where $ARCH is one of:
22     armeabi
23     armeabi-v7a
24     x86