diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-08 18:49:21 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-09 16:22:34 +0100 |
commit | 5e93c9bb7c78115298991122e694c47e027208c9 (patch) | |
tree | 813894089640f52a7a7b5048a31796712b52da79 | |
parent | 828d242728aec0e530630ef80e12bd6d781c26c5 (diff) | |
download | tde-cmake-5e93c9bb7c78115298991122e694c47e027208c9.tar.gz tde-cmake-5e93c9bb7c78115298991122e694c47e027208c9.zip |
Update TDEL10n module
+ Changed the concept of naming functions and macros.
+ Now all the functions and macros begin with "tde_l10n_".
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 990c0c11324b0c011b66593866a683e35f7ce546)
-rw-r--r-- | modules/TDEL10n.cmake | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/TDEL10n.cmake b/modules/TDEL10n.cmake index cb5464d..58a4313 100644 --- a/modules/TDEL10n.cmake +++ b/modules/TDEL10n.cmake @@ -88,13 +88,13 @@ endif( ) ################################################# ##### -##### tde_add_l10n_subdirectory +##### tde_l10n_add_subdirectory ##### ##### The function simulates the add_subdirectory() behavior, but ##### the CMakeL10n.txt file is used instead of CMakeLists.txt. ##### -function( tde_add_l10n_subdirectory _dir ) +function( tde_l10n_add_subdirectory _dir ) set( CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${_dir}" ) set( CMAKE_CURRENT_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/${_dir}" ) include( ${CMAKE_CURRENT_SOURCE_DIR}/CMakeL10n.txt ) @@ -103,19 +103,19 @@ endfunction( ) ################################################# ##### -##### tde_auto_add_l10n_subdirectories +##### tde_l10n_auto_add_subdirectories ##### ##### The function is equivalent to tde_auto_add_subdirectories, but ##### the CMakeL10n.txt file is used instead of CMakeLists.txt. ##### -function( tde_auto_add_l10n_subdirectories ) +function( tde_l10n_auto_add_subdirectories ) file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/*" ) foreach( _dir ${_dirs} ) if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} AND NOT ${_dir} STREQUAL ".svn" AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/CMakeL10n.txt ) - tde_add_l10n_subdirectory( ${_dir} ) + tde_l10n_add_subdirectory( ${_dir} ) endif( ) endforeach( ) endfunction( ) @@ -123,12 +123,12 @@ endfunction( ) ################################################# ##### -##### tde_create_l10n_template +##### tde_l10n_create_template ##### ##### Macro is used to generate a translation template - POT file. ##### ##### Syntax: -##### tde_create_l10n_template( +##### tde_l10n_create_template( ##### CATALOG file_name ##### [SOURCES source_spec [source_spec]] ##### [EXCLUDES regex [regex]] @@ -156,7 +156,7 @@ endfunction( ) ##### DESTINATION determines directory to save translation template. ##### -macro( tde_create_l10n_template ) +macro( tde_l10n_create_template ) unset( _catalog ) unset( _sources ) |