diff options
author | Mike Sinkovsky <msink@permonline.ru> | 2017-01-08 14:39:11 +0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-11 12:33:27 -0500 |
commit | 84902cb93a37e7f6a11b902ba64a11cb26ebcbc0 (patch) | |
tree | f49ecd55d5cda677f2e17924ec41214fa12e89eb /mesonbuild | |
parent | f9344b03a8dbda44b5a1cae429588f44ddf72f2d (diff) | |
download | meson-84902cb93a37e7f6a11b902ba64a11cb26ebcbc0.zip meson-84902cb93a37e7f6a11b902ba64a11cb26ebcbc0.tar.gz meson-84902cb93a37e7f6a11b902ba64a11cb26ebcbc0.tar.bz2 |
style: [E301] expected 1 blank line, found 0
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 1 | ||||
-rw-r--r-- | mesonbuild/dependencies.py | 2 | ||||
-rw-r--r-- | mesonbuild/environment.py | 1 | ||||
-rw-r--r-- | mesonbuild/modules/pkgconfig.py | 2 | ||||
-rw-r--r-- | mesonbuild/wrap/wrap.py | 1 |
5 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 52a6f93..e9eb6bf 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -261,6 +261,7 @@ int dummy; # because the syntax we use for unity builds is specific to C/++/ObjC/++. # Assembly files cannot be unitified and neither can LLVM IR files langs_cant_unity = ('d', 'fortran') + def get_target_source_can_unity(self, target, source): if isinstance(source, File): source = source.fname diff --git a/mesonbuild/dependencies.py b/mesonbuild/dependencies.py index 1efebe9..9659ace 100644 --- a/mesonbuild/dependencies.py +++ b/mesonbuild/dependencies.py @@ -797,8 +797,10 @@ class GTestDependency(Dependency): def get_link_args(self): return self.link_args + def get_version(self): return '1.something_maybe' + def get_sources(self): return self.sources diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 64d9f8b..70074ed 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -326,6 +326,7 @@ class Environment(): if len(rest) == 2: defines[rest[0]] = rest[1] return defines + @staticmethod def get_gnu_version_from_defines(defines): dot = '.' 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: diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index d812b4e..7acbc76 100644 --- a/mesonbuild/wrap/wrap.py +++ b/mesonbuild/wrap/wrap.py @@ -158,6 +158,7 @@ class Resolver: subprocess.check_call(['git', 'remote', 'set-url', '--push', 'origin', push_url], cwd=checkoutdir) + def get_hg(self, p): checkoutdir = os.path.join(self.subdir_root, p.get('directory')) revno = p.get('revision') |