diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-11-16 18:39:36 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-11-16 18:42:39 +0400 |
commit | 60ca109340f70438da65f1b9b8080122d430d4e6 (patch) | |
tree | 8d3b84b20da7efe2404b9290feccb661babf8f47 /intern/locale | |
parent | 1a0fed9ee08e4499c7a5652f1519a73a290e2962 (diff) |
Attempt to fix compilation error on windows
Seems simply need to add .exe to msgfmt executable when
adding custom command to SCons.
Don't have windows by hand atm, so can not test for sure.
Diffstat (limited to 'intern/locale')
-rw-r--r-- | intern/locale/SConscript | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/intern/locale/SConscript b/intern/locale/SConscript index 546fd3e8b40..a8b6d17f9d3 100644 --- a/intern/locale/SConscript +++ b/intern/locale/SConscript @@ -63,6 +63,10 @@ if env['WITH_BF_INTERNATIONAL']: locale = env.Clone() + msgfmt_executable = targetpath + if env['OURPLATFORM'] in ('win32-vc', 'win64-vc', 'win32-mingw', 'win64-mingw'): + msgfmt_executable += ".exe" + # dependencies dependencies = [targetpath] @@ -75,7 +79,7 @@ if env['WITH_BF_INTERNATIONAL']: po_file = os.path.join(po_dir, f) mo_file = os.path.join(build_dir, os.path.splitext(f)[0] + ".mo") - command = "\"%s\" \"%s\" \"%s\"" % (targetpath, po_file, mo_file) + command = "\"%s\" \"%s\" \"%s\"" % (msgfmt_executable, po_file, mo_file) locale.Command(mo_file, po_file, command) locale.Depends(mo_file, dependencies) |