Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-Android
Commits
8230a7d3
Commit
8230a7d3
authored
Feb 02, 2011
by
JPeg
Browse files
Android: use Ant to build the APK
This will gracefully fail if ant is not installed
parent
2878e7ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
8230a7d3
all
:
compile
JAVA_SOURCES
=
vlc-android/src/vlc/android/
*
.java
all
:
vlc.apk
vlc-android/jni/Android.mk
:
@
echo
"=== Creating Android.mk ==="
;
\
...
...
@@ -52,12 +54,28 @@ vlc-android/libs/armeabi/libvlcjni.so: vlc-android/jni/Android.mk
@
cd
vlc-android/
;
\
$(ANDROID_NDK)
/ndk-build
compile
:
vlc-android/libs/armeabi/libvlcjni.so
vlc-android/local.properties
:
@
echo
"=== Preparing Ant ==="
echo
-e
"# Auto-generated file. Do not edit.
\n
sdk.dir=
$$
ANDROID_SDK"
>
vlc-android/local.properties
vlc-android/bin/VLC-debug.apk
:
vlc-android/libs/armeabi/libvlcjni.so $(JAVA_SOURCES) vlc-android/local.properties
@
echo
"=== Building APK =="
@
if
!
which ant
>>
/dev/null
;
then
\
echo
"Error: Ant is not installed. Not compiling APK."
;
\
exit
1
;
\
fi
;
\
cd
vlc-android
&&
ant debug
libvlcjni
:
vlc-android/libs/armeabi/libvlcjni.so
vlc.apk
:
libvlcjni vlc-android/bin/VLC-debug.apk
clean
:
rm
-rf
vlc-android/libs/
*
rm
-rf
vlc-android/obj/
*
rm
-rf
vlc-android/libs
rm
-rf
vlc-android/obj
rm
-rf
vlc-android/bin
distclean
:
clean
rm
-rf
vlc-android/jni/Android.mk
rm
-f
vlc-android/local.properties
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment