diff options
Diffstat (limited to 'toolchain/specifydependencies.cmake')
-rw-r--r-- | toolchain/specifydependencies.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/toolchain/specifydependencies.cmake b/toolchain/specifydependencies.cmake index 21b169ae..e01c61a7 100644 --- a/toolchain/specifydependencies.cmake +++ b/toolchain/specifydependencies.cmake @@ -16,7 +16,26 @@ foreach(lib IN LISTS outout) #now we filter Qt5 libraries, because Qt wants to t endif() endif() endforeach() +if(extralibs) + set(extralibs "\"android-extra-libs\": \"${extralibs}\",") +endif() + +set(extraplugins) +foreach(folder "share" "lib/qml") #now we check for folders with extra stuff + set(plugin "${EXPORT_DIR}/${folder}") + if(EXISTS "${plugin}") + if(extraplugins) + set(extraplugins "${extraplugins},${plugin}") + else() + set(extraplugins "${plugin}") + endif() + endif() +endforeach() +if(extraplugins) + set(extraplugins "\"android-extra-plugins\": \"${extraplugins}\",") +endif() file(READ "${INPUT_FILE}" CONTENTS) string(REPLACE "##EXTRALIBS##" "${extralibs}" NEWCONTENTS "${CONTENTS}") +string(REPLACE "##EXTRAPLUGINS##" "${extraplugins}" NEWCONTENTS "${NEWCONTENTS}") file(WRITE "${OUTPUT_FILE}" ${NEWCONTENTS}) |