diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-11 22:38:36 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-11 22:38:36 +0300 |
commit | 73ca870bef956f81d37795d66c639e40c0dff709 (patch) | |
tree | dcd16de034316fbefdbc42ca0997a398dcd8b967 /build.py | |
parent | 365f529c75a6b55278db2ee5749d26a29a56fa83 (diff) | |
download | meson-73ca870bef956f81d37795d66c639e40c0dff709.zip meson-73ca870bef956f81d37795d66c639e40c0dff709.tar.gz meson-73ca870bef956f81d37795d66c639e40c0dff709.tar.bz2 |
Can specify standalone command targets.
Diffstat (limited to 'build.py')
-rw-r--r-- | build.py | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -659,6 +659,30 @@ class CustomTarget: def get_generated_sources(self): return [] +class RunTarget: + def __init__(self, name, command, args, subdir): + self.name = name + self.command = command + self.args = args + self.subdir = subdir + + def get_basename(self): + return self.name + + def get_dependencies(self): + return [] + + def get_generated_sources(self): + return [] + + def get_subdir(self): + return self.subdir + + def should_install(self): + return False + + def get_filename(self): + return self.name class Jar(BuildTarget): def __init__(self, name, subdir, is_cross, sources, objects, environment, kwargs): super().__init__(name, subdir, is_cross, sources, objects, environment, kwargs); |