diff options
author | Jose Luis Marti <joseluis.marti@gmail.com> | 2024-02-10 22:39:30 +0100 |
---|---|---|
committer | Jose Luis Marti <joseluis.marti@gmail.com> | 2024-02-10 22:39:30 +0100 |
commit | 0a5edab8e50af37dd4b81bd32944ad602644e026 (patch) | |
tree | e379d4792176368dfce3ca7efff7b047d3852f9b | |
parent | 0a52609c11800e5ba71e7ec81dd5131123223968 (diff) |
[Android] Include missing binary addon libs in the apk package
-rw-r--r-- | tools/android/packaging/Makefile.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/android/packaging/Makefile.in b/tools/android/packaging/Makefile.in index d7a09fe017..98a15226a8 100644 --- a/tools/android/packaging/Makefile.in +++ b/tools/android/packaging/Makefile.in @@ -80,8 +80,12 @@ libs: $(PREFIX)/lib/@APP_NAME_LC@/lib@APP_NAME_LC@.so mkdir -p xbmc/lib/$(CPU) xbmc/assets/python@PYTHON_VERSION@/lib/ xbmc/obj/local/$(CPU) cp -fpL $(SRCLIBS) xbmc/obj/local/$(CPU)/ cp -fp $(PREFIX)/lib/@APP_NAME_LC@/lib@APP_NAME_LC@.so xbmc/obj/local/$(CPU)/ + (test -d $(PREFIX)/lib/@APP_NAME_LC@/addons && \ + find $(PREFIX)/lib/@APP_NAME_LC@/addons -name "*.so" -exec cp -fp {} xbmc/obj/local/$(CPU)/ \;) || true find $(PREFIX)/share/@APP_NAME_LC@/addons -name "*.so" -exec cp -fp {} xbmc/obj/local/$(CPU)/ \; || true find $(DEPENDS_PATH)/share/kodi/addons -name "*.so" -exec cp -fp {} xbmc/obj/local/$(CPU)/ \; || true + (test -d $(DEPENDS_PATH)/lib/kodi/addons && \ + find $(DEPENDS_PATH)/lib/kodi/addons -name "*.so" -exec cp -fp {} xbmc/obj/local/$(CPU)/ \;) || true find $(PREFIX)/lib/@APP_NAME_LC@/system -name "*.so" -exec cp -fp {} xbmc/obj/local/$(CPU)/ \; DIR=${CURDIR}; cd $(PREFIX)/lib/python@PYTHON_VERSION@/site-packages; for i in `find Cryptodome -name \*.so` ; do FN=`echo $$i | cut -c1- | tr "/" "_" | sed -e 's/\.abi[0-9]\\././'` ;cp $$i $$DIR/xbmc/obj/local/$(CPU)/$$FN ; done cd xbmc/obj/local/$(CPU)/; find . -name "*.so" -not -name "lib*.so" | sed "s/\.\///" | xargs -I@ mv @ lib@ |