This is a partial revert of the following commits
- b775dbba3a "build: fix ODR violation"
- b9df53313b "Use libc++ as static library"
UnsatisfiedLinkError with c++_shared should be fixed since we now use the last
NDK version and we dropped old android versions that triggered this crash.
This commit remove the ugly jniloader hack.
Here are the list of .so that are now shipped within the APK:
- c++_shared.so (from the NDK)
- libvlc.so (all VLC modules, VLC/LibVLC symbols) => link with c++_shared.so
- libvlcjni.so (all JNI symbols) => link with libvlc.so
- libmla.so (medialibrary, optional) => link with libvlc.so and c++_shared.so
The APK size won't change with this commit (the difference of .so sizes is
negligible).
Written with Bastion Penavayre and Thomas Guillem for making medialibrary build on Android
medialibrary: use clang
MediaWrapper class is now integrated into medialibrary module
Working from cli or from Android Studio
'./gradlew tasks' to see all options
'./graldew installDebug' to build and install a debug version of VLC
compile.sh is still working, you can still build apks with it.
This uses 2.4 and 2.9 MB for the two versions, but avoids having
to keep the full source repos lying around when we only use the
headers, when the full repos take up over 900 MB and 1.7 GB
respectively.
Signed-off-by: Martin Storsjö <martin@martin.st>
This avoids having to fetch a 84 MB binary package and keeping
26 MB of libraries, when a fake stub works just as well.
Signed-off-by: Martin Storsjö <martin@martin.st>