Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
[android] Fix MLT plugins being duplicated in the APK package
Dmitry Kazakov178b68b9011a
diff --git a/CMakeLists.txt b/CMakeLists.txtindex fdb43cdb67..3843fa06a0 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -1211,14 +1211,6 @@ if (Mlt7_FOUND)set_package_properties(SDL2 PROPERTIES DESCRIPTION "Simple DirectMedia Layer 2"URL "https://www.libsdl.org/"PURPOSE "Required for MLT to render audio buffers. Required **only** when MLT is found on the system." )-- if (ANDROID)- # Get the first item in the CMAKE_FIND_ROOT_PATH, hopefully it will be where plugins are saved.- list(GET CMAKE_FIND_ROOT_PATH 0 FIRST_FIND_PATH)- # TODO(sh_zam): Hardcoded, apparently generators doesn't work for this purpose?- file(GLOB MLT_PLUGINS "${FIRST_FIND_PATH}/lib/mlt-7/*.so")- list(APPEND ANDROID_EXTRA_LIBS ${MLT_PLUGINS})- endif()endif()macro_bool_to_01(Mlt7_FOUND HAVE_MLT)configure_file(config-mlt.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-mlt.h)diff --git a/packaging/android/apk/build.gradle b/packaging/android/apk/build.gradleindex ffcfb214b7..8a61bf331c 100644--- a/packaging/android/apk/build.gradle+++ b/packaging/android/apk/build.gradle@@ -68,6 +68,7 @@ tasks.register('copyLibs', Copy) {dependsOn('configure')from "$installPrefix/lib"into "libs/$abi"+ exclude "mlt-7/**"rename('^krita(.*).so$', 'lib_krita$1.so')}