aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/pkgconfig.py
diff options
context:
space:
mode:
authorMike Sinkovsky <msink@permonline.ru>2017-01-08 14:39:11 +0500
committerJussi Pakkanen <jpakkane@gmail.com>2017-01-11 12:33:27 -0500
commit84902cb93a37e7f6a11b902ba64a11cb26ebcbc0 (patch)
treef49ecd55d5cda677f2e17924ec41214fa12e89eb /mesonbuild/modules/pkgconfig.py
parentf9344b03a8dbda44b5a1cae429588f44ddf72f2d (diff)
downloadmeson-84902cb93a37e7f6a11b902ba64a11cb26ebcbc0.zip
meson-84902cb93a37e7f6a11b902ba64a11cb26ebcbc0.tar.gz
meson-84902cb93a37e7f6a11b902ba64a11cb26ebcbc0.tar.bz2
style: [E301] expected 1 blank line, found 0
Diffstat (limited to 'mesonbuild/modules/pkgconfig.py')
-rw-r--r--mesonbuild/modules/pkgconfig.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py
index c558d48..e46c239 100644
--- a/mesonbuild/modules/pkgconfig.py
+++ b/mesonbuild/modules/pkgconfig.py
@@ -67,6 +67,7 @@ class PkgConfigModule(ExtensionModule):
'Requires.private: {}\n'.format(' '.join(priv_reqs)))
if len(conflicts) > 0:
ofile.write('Conflicts: {}\n'.format(' '.join(conflicts)))
+
def generate_libs_flags(libs):
msg = 'Library target {0!r} has {1!r} set. Compilers ' \
'may not find it from its \'-l{2}\' linker flag in the ' \
@@ -85,6 +86,7 @@ class PkgConfigModule(ExtensionModule):
if l.name_suffix_set:
mlog.warning(msg.format(l.name, 'name_suffix', lname, pcfile))
yield '-l%s' % lname
+
if len(libraries) > 0:
ofile.write('Libs: {}\n'.format(' '.join(generate_libs_flags(libraries))))
if len(priv_libs) > 0: