Adjust CMakeL10n rules for new 'core' folder for main modules.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/113/head
Slávek Banko 4 years ago
parent 7bdb6be95c
commit b44ff1c0a9
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -25,18 +25,18 @@ set( POT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../tde-i18n/template/messages/t
##### verify tqt3 sources ####################### ##### verify tqt3 sources #######################
if( NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../dependencies/tqt3/src ) if( NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/tqt3/src )
tde_message_fatal( "TQt3 source code is required but not found" ) tde_message_fatal( "TQt3 source code is required but not found" )
endif( ) endif( )
##### prepare tqt3/src/xml/qxml.cpp ############# ##### prepare tqt3/src/xml/qxml.cpp #############
if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../dependencies/tqt3/src/xml/qxml.cpp ) if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/tqt3/src/xml/qxml.cpp )
# hide "#define" to allow strings to be extracted using xgettext # hide "#define" to allow strings to be extracted using xgettext
file( READ ${CMAKE_CURRENT_SOURCE_DIR}/../dependencies/tqt3/src/xml/qxml.cpp _tqt_qxml ) file( READ ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/tqt3/src/xml/qxml.cpp _tqt_qxml )
string( REGEX REPLACE "\n(#define[^\n]*)(QT_TRANSLATE_NOOP)" "\n/*\\1*/\\2" _tqt_qxml ${_tqt_qxml} ) string( REGEX REPLACE "\n(#define[^\n]*)(QT_TRANSLATE_NOOP)" "\n/*\\1*/\\2" _tqt_qxml ${_tqt_qxml} )
file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/../dependencies/tqt3/src/xml/qxml.cpp.tde_l10n "${_tqt_qxml}" ) file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/tqt3/src/xml/qxml.cpp.tde_l10n "${_tqt_qxml}" )
endif( ) endif( )
@ -104,8 +104,8 @@ tde_l10n_create_template(
"." "."
"tdeabc/scripts/entrylist.tde_l10n" "tdeabc/scripts/entrylist.tde_l10n"
"tdecore/tde-config.cpp.cmake" "tdecore/tde-config.cpp.cmake"
"../dependencies/tqt3/src" "../../dependencies/tqt3/src"
"../dependencies/tqt3/src/xml/qxml.cpp.tde_l10n" "../../dependencies/tqt3/src/xml/qxml.cpp.tde_l10n"
EXCLUDES EXCLUDES
"/test/" "/tests/" "/test/" "/tests/"
"^arts/kde/mcop-dcop/" "^arts/kde/mcop-dcop/"

Loading…
Cancel
Save