diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-12-02 21:55:56 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-12-02 21:55:56 +0200 |
commit | 6d84b9b6468eca57763895efe51347047ca3088d (patch) | |
tree | 2396bfa11ba04aac451df8091a66322a2d8110ae /mesonbuild/build.py | |
parent | 7afb4c655281d60ef64d0378ff126a08f12a14ce (diff) | |
download | meson-6d84b9b6468eca57763895efe51347047ca3088d.zip meson-6d84b9b6468eca57763895efe51347047ca3088d.tar.gz meson-6d84b9b6468eca57763895efe51347047ca3088d.tar.bz2 |
Created new shared module build target type, and make sure -Wl,--no-undefined is not used when linking it.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 39e215f..b5ca5aa 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1129,6 +1129,16 @@ class SharedLibrary(BuildTarget): def type_suffix(self): return "@sha" +# A shared library that is meant to be used with dlopen rather than linking +# into something else. +class SharedModule(SharedLibrary): + def __init__(self, name, subdir, subproject, is_cross, sources, objects, environment, kwargs): + if 'version' in kwargs: + raise MesonException('Shared modules must not specify the version kwarg.') + if 'soversion' in kwargs: + raise MesonException('Shared modules must not specify the soversion kwarg.') + super().__init__(name, subdir, subproject, is_cross, sources, objects, environment, kwargs) + class CustomTarget: known_kwargs = {'input' : True, 'output' : True, |