mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 21:10:06 +01:00
Add --no-allmo option
This commit is contained in:
23
build.py
23
build.py
@@ -338,6 +338,7 @@ def setDevModeOptions(args):
|
||||
#'--osx_carbon',
|
||||
#'--mac_arch=i386',
|
||||
#'--mac_arch=i386,x86_64',
|
||||
'--no_allmo',
|
||||
]
|
||||
if not isWindows:
|
||||
myDevModeOptions.append('--debug')
|
||||
@@ -450,6 +451,7 @@ def makeOptionParser():
|
||||
("docker_img", ("all", "Comma separated list of image tags to use for the build_docker command. Defaults to \"all\"")),
|
||||
("dump_waf_log", (False, "If the waf build tool fails then using this option will cause waf's configure log to be printed")),
|
||||
("regenerate_sysconfig", (False, "Waf uses Python's sysconfig and related tools to configure the build. In some cases that info can be incorrect, so this option regenerates it. Must have write access to Python's lib folder.")),
|
||||
("no_allmo", (False, "Skip regenerating the wxWidgets message catalogs")),
|
||||
]
|
||||
|
||||
parser = optparse.OptionParser("build options:")
|
||||
@@ -1428,16 +1430,17 @@ def cmd_build_wx(options, args):
|
||||
traceback.print_exc()
|
||||
sys.exit(1)
|
||||
|
||||
# Build the wx message catalogs, but first check that there is a msgfmt
|
||||
# command available
|
||||
if findCmd('msgfmt') and findCmd('make'):
|
||||
locale_pwd = pushDir(posixjoin(wxDir(), 'locale'))
|
||||
print('Building message catalogs in ' + os.getcwd())
|
||||
runcmd('make allmo')
|
||||
del locale_pwd
|
||||
else:
|
||||
print("WARNING: msgfmt and/or make commands not found, message catalogs not \n"
|
||||
" rebuilt. Please install gettext and associated tools.")
|
||||
if not options.no_allmo:
|
||||
# Build the wx message catalogs, but first check that there is a msgfmt
|
||||
# command available
|
||||
if findCmd('msgfmt') and findCmd('make'):
|
||||
locale_pwd = pushDir(posixjoin(wxDir(), 'locale'))
|
||||
print('Building message catalogs in ' + os.getcwd())
|
||||
runcmd('make allmo')
|
||||
del locale_pwd
|
||||
else:
|
||||
print("WARNING: msgfmt and/or make commands not found, message catalogs not \n"
|
||||
" rebuilt. Please install gettext and associated tools.")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user