Commit 62c09fbd authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Updated prepare-android to copy android libs to the right place

parent efac9aba
Makefile
android
iOS
Xamarin/Xamarin.Droid/Libs/arm64-v8a/
Xamarin/Xamarin.Droid/Libs/armeabi-v7a/
Xamarin/Xamarin.Droid/Libs/x86/
Xamarin/Xamarin.Droid/Libs/arm64-v8a
Xamarin/Xamarin.Droid/Libs/armeabi-v7a
Xamarin/Xamarin.Droid/Libs/x86
Xamarin/Xamarin.Droid/Libs/liblinphone.jar
## Ignore Visual Studio temporary files, build results, and
......
......@@ -207,81 +207,26 @@ all: generate-sdk
build: $(addsuffix -build, $(archs))
copy-libs:
\trm -rf libs-debug/armeabi
\trm -rf libs/armeabi
\tif test -d "liblinphone-sdk/android-arm"; then \\
\t\tmkdir -p libs-debug/armeabi && \\
\t\tcp -f liblinphone-sdk/android-arm/lib/libgnustl_shared.so libs-debug/armeabi && \\
\t\tcp -f liblinphone-sdk/android-arm/lib/lib*-armeabi.so libs-debug/armeabi && \\
\t\tcp -f liblinphone-sdk/android-arm/lib/mediastreamer/plugins/*.so libs-debug/armeabi && \\
\t\tmkdir -p libs/armeabi && \\
\t\tcp -f liblinphone-sdk/android-arm/lib/libgnustl_shared.so libs/armeabi && \\
\t\tcp -f liblinphone-sdk/android-arm/lib/lib*-armeabi.so libs/armeabi && \\
\t\tcp -f liblinphone-sdk/android-arm/lib/mediastreamer/plugins/*.so libs/armeabi && \\
\t\tsh android/android-arm/strip.sh libs/armeabi/*.so; \\
\trm -rf Xamarin/Xamarin.Droid/Libs/armeabi-v7a
\tif test -d "android/liblinphone-sdk/android-armv7"; then \\
\t\tmkdir -p Xamarin/Xamarin.Droid/Libs/armeabi-v7a && \\
\t\tcp -f android/liblinphone-sdk/android-armv7/lib/lib*.so Xamarin/Xamarin.Droid/Libs/armeabi-v7a && \\
\t\tcp -f android/liblinphone-sdk/android-armv7/lib/mediastreamer/plugins/*.so Xamarin/Xamarin.Droid/Libs/armeabi-v7a && \\
\t\tsh android/android-armv7/strip.sh Xamarin/Xamarin.Droid/Libs/armeabi-v7a/*.so; \\
\tfi
\tif test -f "liblinphone-sdk/android-arm/bin/gdbserver"; then \\
\t\tcp -f liblinphone-sdk/android-arm/bin/gdbserver libs-debug/armeabi && \\
\t\tcp -f liblinphone-sdk/android-arm/bin/gdb.setup libs-debug/armeabi && \\
\t\tcp -f liblinphone-sdk/android-arm/bin/gdbserver libs/armeabi && \\
\t\tcp -f liblinphone-sdk/android-arm/bin/gdb.setup libs/armeabi; \\
\trm -rf Xamarin/Xamarin.Droid/Libs/arm64-v8a
\tif test -d "android/liblinphone-sdk/android-arm64"; then \\
\t\tmkdir -p Xamarin/Xamarin.Droid/Libs/arm64-v8a && \\
\t\tcp -f android/liblinphone-sdk/android-arm64/lib/lib*.so Xamarin/Xamarin.Droid/Libs/arm64-v8a && \\
\t\tcp -f android/liblinphone-sdk/android-arm64/lib/mediastreamer/plugins/*.so Xamarin/Xamarin.Droid/Libs/arm64-v8a && \\
\t\tsh android/android-arm64/strip.sh Xamarin/Xamarin.Droid/Libs/arm64-v8a/*.so; \\
\tfi
\trm -rf libs-debug/armeabi-v7a
\trm -rf libs/armeabi-v7a
\tif test -d "liblinphone-sdk/android-armv7"; then \\
\t\tmkdir -p libs-debug/armeabi-v7a && \\
\t\tcp -f liblinphone-sdk/android-armv7/lib/libgnustl_shared.so libs-debug/armeabi-v7a && \\
\t\tcp -f liblinphone-sdk/android-armv7/lib/lib*-armeabi-v7a.so libs-debug/armeabi-v7a && \\
\t\tcp -f liblinphone-sdk/android-armv7/lib/mediastreamer/plugins/*.so libs-debug/armeabi-v7a && \\
\t\tmkdir -p libs/armeabi-v7a && \\
\t\tcp -f liblinphone-sdk/android-armv7/lib/libgnustl_shared.so libs/armeabi-v7a && \\
\t\tcp -f liblinphone-sdk/android-armv7/lib/lib*-armeabi-v7a.so libs/armeabi-v7a && \\
\t\tcp -f liblinphone-sdk/android-armv7/lib/mediastreamer/plugins/*.so libs/armeabi-v7a && \\
\t\tsh android/android-armv7/strip.sh libs/armeabi-v7a/*.so; \\
\tfi
\tif test -f "liblinphone-sdk/android-armv7/bin/gdbserver"; then \\
\t\tcp -f liblinphone-sdk/android-armv7/bin/gdbserver libs-debug/armeabi-v7a && \\
\t\tcp -f liblinphone-sdk/android-armv7/bin/gdb.setup libs-debug/armeabi-v7a && \\
\t\tcp -f liblinphone-sdk/android-armv7/bin/gdbserver libs/armeabi-v7a && \\
\t\tcp -f liblinphone-sdk/android-armv7/bin/gdb.setup libs/armeabi-v7a; \\
\tfi
\trm -rf libs-debug/arm64-v8a
\trm -rf libs/arm64-v8a
\tif test -d "liblinphone-sdk/android-arm64"; then \\
\t\tmkdir -p libs-debug/arm64-v8a && \\
\t\tcp -f liblinphone-sdk/android-arm64/lib/libgnustl_shared.so libs-debug/arm64-v8a && \\
\t\tcp -f liblinphone-sdk/android-arm64/lib/lib*-arm64-v8a.so libs-debug/arm64-v8a && \\
\t\tcp -f liblinphone-sdk/android-arm64/lib/mediastreamer/plugins/*.so libs-debug/arm64-v8a && \\
\t\tmkdir -p libs/arm64-v8a && \\
\t\tcp -f liblinphone-sdk/android-arm64/lib/libgnustl_shared.so libs/arm64-v8a && \\
\t\tcp -f liblinphone-sdk/android-arm64/lib/lib*-arm64-v8a.so libs/arm64-v8a && \\
\t\tcp -f liblinphone-sdk/android-arm64/lib/mediastreamer/plugins/*.so libs/arm64-v8a && \\
\t\tsh android/android-arm64/strip.sh libs/arm64-v8a/*.so; \\
\tfi
\tif test -f "liblinphone-sdk/android-arm64/bin/gdbserver"; then \\
\t\tcp -f liblinphone-sdk/android-arm64/bin/gdbserver libs-debug/arm64-v8a && \\
\t\tcp -f liblinphone-sdk/android-arm64/bin/gdb.setup libs-debug/arm64-v8a && \\
\t\tcp -f liblinphone-sdk/android-arm64/bin/gdbserver libs/arm64-v8a && \\
\t\tcp -f liblinphone-sdk/android-arm64/bin/gdb.setup libs/arm64-v8a; \\
\tfi
\trm -rf libs-debug/x86
\trm -rf libs/x86
\tif test -d "liblinphone-sdk/android-x86"; then \\
\t\tmkdir -p libs-debug/x86 && \\
\t\tcp -f liblinphone-sdk/android-x86/lib/libgnustl_shared.so libs-debug/x86 && \\
\t\tcp -f liblinphone-sdk/android-x86/lib/lib*-x86.so libs-debug/x86 && \\
\t\tcp -f liblinphone-sdk/android-x86/lib/mediastreamer/plugins/*.so libs-debug/x86 && \\
\t\tmkdir -p libs/x86 && \\
\t\tcp -f liblinphone-sdk/android-x86/lib/libgnustl_shared.so libs/x86 && \\
\t\tcp -f liblinphone-sdk/android-x86/lib/lib*-x86.so libs/x86 && \\
\t\tcp -f liblinphone-sdk/android-x86/lib/mediastreamer/plugins/*.so libs/x86 && \\
\t\tsh android/android-x86/strip.sh libs/x86/*.so; \\
\tfi
\tif test -f "liblinphone-sdk/android-x86/bin/gdbserver"; then \\
\t\tcp -f liblinphone-sdk/android-x86/bin/gdbserver libs-debug/x86 && \\
\t\tcp -f liblinphone-sdk/android-x86/bin/gdb.setup libs-debug/x86 && \\
\t\tcp -f liblinphone-sdk/android-x86/bin/gdbserver libs/x86 && \\
\t\tcp -f liblinphone-sdk/android-x86/bin/gdb.setup libs/x86; \\
\trm -rf Xamarin/Xamarin.Droid/Libs/x86
\tif test -d "android/liblinphone-sdk/android-x86"; then \\
\t\tmkdir -p Xamarin/Xamarin.Droid/Libs/x86 && \\
\t\tcp -f android/liblinphone-sdk/android-x86/lib/lib*.so Xamarin/Xamarin.Droid/Libs/x86 && \\
\t\tcp -f android/liblinphone-sdk/android-x86/lib/mediastreamer/plugins/*.so Xamarin/Xamarin.Droid/Libs/x86 && \\
\t\tsh android/android-x86/strip.sh Xamarin/Xamarin.Droid/Libs/x86/*.so; \\
\tfi
generate-sdk: build copy-libs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment