diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-10-12 21:14:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-12 21:14:09 +0300 |
commit | f194914b9fe0042cce83ee4371ca3ccc2efc7120 (patch) | |
tree | ec661f956c9bf48094bc29374f4b8c828a2772ec /mesonbuild/build.py | |
parent | cb21c72ac848c3dec4de0b26fef96a2319bdefda (diff) | |
parent | 674b520206422f546131aa5218d0b2ffddccbf37 (diff) | |
download | meson-f194914b9fe0042cce83ee4371ca3ccc2efc7120.zip meson-f194914b9fe0042cce83ee4371ca3ccc2efc7120.tar.gz meson-f194914b9fe0042cce83ee4371ca3ccc2efc7120.tar.bz2 |
Merge pull request #896 from centricular/pkgconfig-check-prefix-suffix
pkgconfig: Warn if library has name_prefix/suffix set
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index f212fe4..4fc8536 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -229,6 +229,8 @@ class BuildTarget(): self.include_dirs = [] self.link_targets = [] self.link_depends = [] + self.name_prefix_set = False + self.name_suffix_set = False self.filename = 'no_name' # The file with debugging symbols self.debug_filename = None @@ -514,6 +516,7 @@ class BuildTarget(): elif not isinstance(name_prefix, str): raise InvalidArguments('name_prefix must be a string.') self.prefix = name_prefix + self.name_prefix_set = True if 'name_suffix' in kwargs: name_suffix = kwargs['name_suffix'] if isinstance(name_suffix, list): @@ -523,6 +526,7 @@ class BuildTarget(): if not isinstance(name_suffix, str): raise InvalidArguments('name_suffix must be a string.') self.suffix = name_suffix + self.name_suffix_set = True if isinstance(self, StaticLibrary): # You can't disable PIC on OS X. The compiler ignores -fno-PIC. # PIC is always on for Windows (all code is position-independent |