Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-11-16 22:09:03 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-11-16 22:09:03 +0400
commit9c3586d9f91bd796c5347194a24cdc4b1b60c05c (patch)
treee31d836aeb93f417571b48c1cfa1700916e9d5d3 /source/creator
parent09ecfc318cb808a578d5211e44051d28e1de0706 (diff)
Remove check for whether po folder exist
It was just a temp thing to not break stuff before final git migration.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt64
1 files changed, 27 insertions, 37 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 0ef32f4dc02..495399b43cb 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -326,51 +326,41 @@ if(WITH_INTERNATIONAL)
)
set(_locale_dir "${CMAKE_SOURCE_DIR}/release/datafiles/locale")
+ set(_locale_target_dir ${TARGETDIR_VER}/datafiles/locale)
- if(EXISTS "${_locale_dir}/po")
- set(_locale_target_dir ${TARGETDIR_VER}/datafiles/locale)
+ file(GLOB _po_files "${_locale_dir}/po/*.po")
+ foreach(_po_file ${_po_files})
+ msgfmt_simple(${_po_file} _all_mo_files)
+ endforeach()
- file(GLOB _po_files "${_locale_dir}/po/*.po")
- foreach(_po_file ${_po_files})
- msgfmt_simple(${_po_file} _all_mo_files)
- endforeach()
+ # Create a custom target which will compile all po to mo
+ add_custom_target(
+ locales
+ DEPENDS ${_all_mo_files})
- # Create a custom target which will compile all po to mo
- add_custom_target(
- locales
- DEPENDS ${_all_mo_files})
+ add_dependencies(blender locales)
- add_dependencies(blender locales)
+ # Generate INSTALL rules
+ install(
+ FILES ${_locale_dir}/languages
+ DESTINATION ${_locale_target_dir}
+ )
- # Generate INSTALL rules
+ foreach(_mo_file ${_all_mo_files})
+ get_filename_component(_locale_name ${_mo_file} NAME_WE)
install(
- FILES ${_locale_dir}/languages
- DESTINATION ${_locale_target_dir}
+ FILES ${_mo_file}
+ DESTINATION ${_locale_target_dir}/${_locale_name}/LC_MESSAGES
+ RENAME blender.mo
)
+ unset(_locale_name)
+ endforeach()
- foreach(_mo_file ${_all_mo_files})
- get_filename_component(_locale_name ${_mo_file} NAME_WE)
- install(
- FILES ${_mo_file}
- DESTINATION ${_locale_target_dir}/${_locale_name}/LC_MESSAGES
- RENAME blender.mo
- )
- unset(_locale_name)
- endforeach()
-
- unset(_all_mo_files)
- unset(_po_files)
- unset(_po_file)
- unset(_mo_file)
- unset(_locale_target_dir)
- else()
- install(
- DIRECTORY
- ${_locale_dir}
- DESTINATION ${TARGETDIR_VER}/datafiles
- PATTERN ".svn" EXCLUDE
- )
- endif()
+ unset(_all_mo_files)
+ unset(_po_files)
+ unset(_po_file)
+ unset(_mo_file)
+ unset(_locale_target_dir)
unset(_locale_dir)
endif()