first Android release

Finally, MPD runs on Android.  For some small value of "runs".  Very
much work left, too much to describe.
This commit is contained in:
Max Kellermann
2014-02-18 08:33:06 +01:00
parent 9574d11dc8
commit 4dcf0b8ae0
13 changed files with 559 additions and 3 deletions

View File

@@ -88,6 +88,10 @@
#include "archive/ArchiveList.hxx"
#endif
#ifdef ANDROID
#include "org_musicpd_Bridge.h"
#endif
#ifdef HAVE_GLIB
#include <glib.h>
#endif
@@ -365,6 +369,8 @@ shutdown_event_emitted(void)
#endif
#ifndef ANDROID
int main(int argc, char *argv[])
{
#ifdef WIN32
@@ -374,6 +380,8 @@ int main(int argc, char *argv[])
#endif
}
#endif
int mpd_main(int argc, char *argv[])
{
struct options options;
@@ -646,3 +654,14 @@ int mpd_main(int argc, char *argv[])
log_deinit();
return EXIT_SUCCESS;
}
#ifdef ANDROID
gcc_visibility_default
JNIEXPORT void JNICALL
Java_org_musicpd_Bridge_run(JNIEnv *, jclass)
{
mpd_main(0, nullptr);
}
#endif