aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-06-11 22:38:36 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-06-11 22:38:36 +0300
commit73ca870bef956f81d37795d66c639e40c0dff709 (patch)
treedcd16de034316fbefdbc42ca0997a398dcd8b967 /build.py
parent365f529c75a6b55278db2ee5749d26a29a56fa83 (diff)
downloadmeson-73ca870bef956f81d37795d66c639e40c0dff709.zip
meson-73ca870bef956f81d37795d66c639e40c0dff709.tar.gz
meson-73ca870bef956f81d37795d66c639e40c0dff709.tar.bz2
Can specify standalone command targets.
Diffstat (limited to 'build.py')
-rw-r--r--build.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/build.py b/build.py
index 7d9dd6b..2139187 100644
--- a/build.py
+++ b/build.py
@@ -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);