1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Use separate Messages.sh for each Python extension

This commit is contained in:
David Rosca 2018-03-09 18:09:53 +01:00
parent b17af37230
commit 3c8fcd5f70
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,10 @@
function(install_python_script name)
if (ENABLE_PYTHON_PLUGINS)
install(DIRECTORY ${name} DESTINATION "${FALKON_INSTALL_PLUGINDIR}/python")
install(
DIRECTORY ${name}
DESTINATION "${FALKON_INSTALL_PLUGINDIR}/python"
FILES_MATCHING PATTERN "*" PATTERN "Messages.sh" EXCLUDE
)
install(FILES i18n.py DESTINATION "${FALKON_INSTALL_PLUGINDIR}/python/${name}")
endif()
endfunction()

View File

@ -8,4 +8,4 @@ XGETTEXT_FLAGS_PYTHON="\
-ki18n:1 -ki18np:1,2 \
"
$XGETTEXT_PROGRAM $XGETTEXT_FLAGS_PYTHON `find hellopython -name '*.py'` -o $podir/falkon_hellopython.pot
$XGETTEXT_PROGRAM $XGETTEXT_FLAGS_PYTHON `find . -name '*.py'` -o $podir/falkon_hellopython.pot