diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-03-22 19:25:19 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-03-22 19:25:19 +0200 |
commit | d30c7b596856854fed11000dcbebfa9a70c44207 (patch) | |
tree | fe211d08b8ad89da934b10c86c1c4d9570275e56 /build.py | |
parent | 5e50403d3f0625dabd6ec97aa02bade594a94768 (diff) | |
download | meson-d30c7b596856854fed11000dcbebfa9a70c44207.zip meson-d30c7b596856854fed11000dcbebfa9a70c44207.tar.gz meson-d30c7b596856854fed11000dcbebfa9a70c44207.tar.bz2 |
Can define entry symbol type.
Diffstat (limited to 'build.py')
-rw-r--r-- | build.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -266,6 +266,12 @@ class BuildTarget(): if not isinstance(main_class, str): raise InvalidArguments('Main class must be a string') self.main_class = main_class + if isinstance(self, Executable): + self.gui_app = kwargs.get('gui_app', False) + if not isinstance(self.gui_app, bool): + raise InvalidArguments('Argument gui_app must be boolean.') + elif 'gui_app' in kwargs: + raise InvalidArguments('Argument gui_app can only be used on executables.') def get_subdir(self): return self.subdir |