diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-03 01:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-03 01:37:00 +0000 |
commit | 0e865e2b7e566235912012e357111792f4e31d8c (patch) | |
tree | fd2d295c7beae0050cc8bd657f09ed294819eaf0 /po/CMakeLists.txt | |
download | gtk-qt-engine-0e865e2b7e566235912012e357111792f4e31d8c.tar.gz gtk-qt-engine-0e865e2b7e566235912012e357111792f4e31d8c.zip |
Added abandoned KDE3 version of the GTK Qt theme engine
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gtk-qt-engine@1084394 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r-- | po/CMakeLists.txt | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt new file mode 100644 index 0000000..c5fef00 --- /dev/null +++ b/po/CMakeLists.txt @@ -0,0 +1,45 @@ +# .po to .gmo stuff +FILE(GLOB _pofiles *.po) + +FOREACH(_file ${_pofiles}) + GET_FILENAME_COMPONENT(_file_we ${_file} NAME_WE) + SET(_out "${_file_we}.gmo") + SET(_in "${_file_we}.po") + + ADD_CUSTOM_COMMAND( + OUTPUT ${_out} + COMMAND ${MSGFMT_EXECUTABLE} -o ${_out} ${_in} + DEPENDS ${_in} + ) + + INSTALL( + FILES ${_out} + DESTINATION share/locale/${_file_we}/LC_MESSAGES/ + RENAME gtkqtengine.mo + ) + + SET(_outputs ${_outputs} ${_out}) +ENDFOREACH(_file) + +ADD_CUSTOM_TARGET( + pofiles ALL + DEPENDS ${_outputs} +) + + +# Stuff to generate the .pot +FILE(GLOB POT_UIFILES ../kcm_gtk/*.ui) +SET(POT_SOURCES ../kcm_gtk/kcmgtk.cpp) +SET(POT_OUTPUT gtkqtengine.pot) + +ADD_CUSTOM_COMMAND( + OUTPUT _${POT_OUTPUT} + COMMAND ${EXTRACTRC_PATH} ${POT_UIFILES} > rc.cpp + COMMAND ${XGETTEXT_PATH} --foreign-user -C -ci18n -ki18n -ktr2i18n -kI18N_NOOP -kI18N_NOOP2 -kaliasLocale -x "${KDE3_INCLUDE_DIR}/kde.pot" -o ${POT_OUTPUT} rc.cpp ${POT_SOURCES} + COMMAND rm rc.cpp +) + +ADD_CUSTOM_TARGET( + extract_messages + DEPENDS _${POT_OUTPUT} +) |