Also read WINDRES envvar to find windres (#645)

This is, of course, only used when building with MinGW
pull/649/head
Nirbheek Chauhan 8 years ago committed by Jussi Pakkanen
parent c527e4a658
commit 201f2aebed
  1. 5
      mesonbuild/modules/windows.py

@ -32,7 +32,10 @@ class WindowsModule:
res_args = extra_args + ['/nologo', '/fo@OUTPUT@', '@INPUT@']
suffix = 'res'
else:
rescomp = dependencies.ExternalProgram('windres', silent=True)
# Pick-up env var WINDRES if set. This is often used for specifying
# an arch-specific windres.
rescomp_name = os.environ.get('WINDRES', 'windres')
rescomp = dependencies.ExternalProgram(rescomp_name, silent=True)
res_args = extra_args + ['@INPUT@', '@OUTPUT@']
suffix = 'o'
res_files = mesonlib.stringlistify(args)

Loading…
Cancel
Save