summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-03-04 20:19:22 +0100
committerMax Kellermann <max@musicpd.org>2018-03-04 20:19:22 +0100
commitcf7ec2c9d369b864479c070a8b4a25779bd2694c (patch)
tree28e3e16635b2dee49234cc5c06b4add95969e214
parentdadd3ca6716f37fdb530a48e9ef98e0fa6bc6a89 (diff)
doc/user.xml: add section about compiling for Android
-rw-r--r--doc/user.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/user.xml b/doc/user.xml
index feab01cc6..1636914ef 100644
--- a/doc/user.xml
+++ b/doc/user.xml
@@ -265,6 +265,52 @@ apt-get install g++ \
script.
</para>
</section>
+
+ <section id="android_build">
+ <title>Compiling for Android</title>
+
+ <para>
+ MPD can be compiled as an Android app. It can be installed
+ easily with <link linkend="install_android">Google
+ Play</link>, but if you want to build it from source, follow
+ this section.
+ </para>
+
+ <para>
+ You need:
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Android SDK
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <ulink
+ url="https://developer.android.com/ndk/downloads/index.html">Android
+ NDK</ulink>
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <para>
+ Just like with the native build, unpack the
+ <application>MPD</application> source tarball and change
+ into the directory. Then, instead of
+ <command>./configure</command>, type:
+ </para>
+
+ <programlisting>./android/build.py SDK_PATH NDK_PATH
+make android/build/mpd-debug.apk</programlisting>
+
+ <para>
+ This downloads various library sources, and then configures
+ and builds <application>MPD</application>.
+ </para>
+ </section>
</section>
<section id="systemd_socket">