diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-11-09 00:44:48 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-11-09 00:44:48 +0400 |
commit | ac6d91b9396c15d8bf1aa550adb4ca8c7125dd81 (patch) | |
tree | 88d1f046c6548331fdb705f91fcc63b8595f9f03 /intern/locale/CMakeLists.txt | |
parent | 0d1a49936627f2885b058f23920490bc6ed7c282 (diff) |
Be ready for changes in bf-translations repository
Made it so if there's release/datafiles/locale/po
folder, then all the .po files will be converted
to .mo at blender compile time and installed to
an appropriate location.
Uses small own implementation msgfmt which is
based on msgfmt.py from Python project, but also
supports contexts.
There's no functional changes for until we've
switched to use source .po files instead of
pre-compiled .mo.
P.S. Well, there's one change which is msgfmt.cc
being compiled even if it's not used, but
would rather not clutter code with checks
since pretty soon we'll use this program
anyway.
Diffstat (limited to 'intern/locale/CMakeLists.txt')
-rw-r--r-- | intern/locale/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/intern/locale/CMakeLists.txt b/intern/locale/CMakeLists.txt index 1f14a0e7a6a..3599aa68545 100644 --- a/intern/locale/CMakeLists.txt +++ b/intern/locale/CMakeLists.txt @@ -45,3 +45,11 @@ if(WITH_INTERNATIONAL) endif() blender_add_lib(bf_intern_locale "${SRC}" "${INC}" "${INC_SYS}") + +# ----------------------------------------------------------------------------- +# Build msgfmt executable +set(MSFFMT_SRC + msgfmt.cc +) + +add_executable(msgfmt ${MSFFMT_SRC}) |