diff options
author | Max Kellermann <max@musicpd.org> | 2017-12-29 17:12:55 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-10-14 23:41:38 +0200 |
commit | 94592c14062d5afc9482d11baa401648082022c0 (patch) | |
tree | 8723d462737f883181fb1aaa3f91ee3d0add9721 /python/build | |
parent | 13ce142df137f346526de2a31a7ccbd59a903cdd (diff) |
build with Meson instead of autotools
So long, autotools! This is my last MPD related project to migrate
away from it. It has its strengths, but also very obvious weaknesses
and weirdnesses. Today, many of its quirks are not needed anymore,
and are cumbersome and slow. Now welcome our new Meson overlords!
Diffstat (limited to 'python/build')
-rw-r--r-- | python/build/cmdline.py | 29 | ||||
-rw-r--r-- | python/build/meson.py | 2 |
2 files changed, 2 insertions, 29 deletions
diff --git a/python/build/cmdline.py b/python/build/cmdline.py deleted file mode 100644 index 50245f597..000000000 --- a/python/build/cmdline.py +++ /dev/null @@ -1,29 +0,0 @@ -def concatenate_cmdline_variables(src, names): - """Find duplicate variable declarations on the given source list, and - concatenate the values of those in the 'names' list.""" - - # the result list being constructed - dest = [] - - # a map of variable name to destination list index - positions = {} - - for item in src: - i = item.find('=') - if i > 0: - # it's a variable - name = item[:i] - if name in names: - # it's a known variable - if name in positions: - # already specified: concatenate instead of - # appending it - dest[positions[name]] += ' ' + item[i + 1:] - continue - else: - # not yet seen: append it and remember the list - # index - positions[name] = len(dest) - dest.append(item) - - return dest diff --git a/python/build/meson.py b/python/build/meson.py index a31b3471a..aa3d1b6b0 100644 --- a/python/build/meson.py +++ b/python/build/meson.py @@ -40,6 +40,7 @@ c = '%s' cpp = '%s' ar = '%s' strip = '%s' +pkgconfig = '%s' %s [properties] @@ -60,6 +61,7 @@ cpu_family = '%s' cpu = '%s' endian = '%s' """ % (toolchain.cc, toolchain.cxx, toolchain.ar, toolchain.strip, + toolchain.pkg_config, windres, toolchain.install_prefix, repr((toolchain.cppflags + ' ' + toolchain.cflags).split()), |