Commit 13ce142d authored by Max Kellermann's avatar Max Kellermann

python/build/meson.py: generate `windres` line

parent 89bf4c5f
...@@ -5,8 +5,10 @@ from build.project import Project ...@@ -5,8 +5,10 @@ from build.project import Project
def make_cross_file(toolchain): def make_cross_file(toolchain):
if toolchain.is_windows: if toolchain.is_windows:
system = 'windows' system = 'windows'
windres = "windres = '%s'" % toolchain.windres
else: else:
system = 'linux' system = 'linux'
windres = ''
if toolchain.is_arm: if toolchain.is_arm:
cpu_family = 'arm' cpu_family = 'arm'
...@@ -38,6 +40,7 @@ c = '%s' ...@@ -38,6 +40,7 @@ c = '%s'
cpp = '%s' cpp = '%s'
ar = '%s' ar = '%s'
strip = '%s' strip = '%s'
%s
[properties] [properties]
root = '%s' root = '%s'
...@@ -57,6 +60,7 @@ cpu_family = '%s' ...@@ -57,6 +60,7 @@ cpu_family = '%s'
cpu = '%s' cpu = '%s'
endian = '%s' endian = '%s'
""" % (toolchain.cc, toolchain.cxx, toolchain.ar, toolchain.strip, """ % (toolchain.cc, toolchain.cxx, toolchain.ar, toolchain.strip,
windres,
toolchain.install_prefix, toolchain.install_prefix,
repr((toolchain.cppflags + ' ' + toolchain.cflags).split()), repr((toolchain.cppflags + ' ' + toolchain.cflags).split()),
repr(toolchain.ldflags.split()), repr(toolchain.ldflags.split()),
......
...@@ -49,6 +49,7 @@ class CrossGccToolchain: ...@@ -49,6 +49,7 @@ class CrossGccToolchain:
self.ranlib = os.path.join(toolchain_bin, arch + '-ranlib') self.ranlib = os.path.join(toolchain_bin, arch + '-ranlib')
self.nm = os.path.join(toolchain_bin, arch + '-nm') self.nm = os.path.join(toolchain_bin, arch + '-nm')
self.strip = os.path.join(toolchain_bin, arch + '-strip') self.strip = os.path.join(toolchain_bin, arch + '-strip')
self.windres = os.path.join(toolchain_bin, arch + '-windres')
common_flags = '-O2 -g' common_flags = '-O2 -g'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment