aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-06-24 23:07:57 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-06-24 23:07:57 +0300
commit0733c0f9a1cd7a38e3a8f5c746e50967eeb9c9a5 (patch)
tree41fe7f2443785c8961a2840206b2380b78ca527c /mesonbuild/build.py
parent35eb8c7b9a0ef755aa228619dd04f937410743c9 (diff)
downloadmeson-0733c0f9a1cd7a38e3a8f5c746e50967eeb9c9a5.zip
meson-0733c0f9a1cd7a38e3a8f5c746e50967eeb9c9a5.tar.gz
meson-0733c0f9a1cd7a38e3a8f5c746e50967eeb9c9a5.tar.bz2
Changed run_target to take command as kwarg and add depends. This makes it behave the same as custom_target.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index bfdbca8..c60f37f 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -937,10 +937,11 @@ class CustomTarget:
return "@cus"
class RunTarget:
- def __init__(self, name, command, args, subdir):
+ def __init__(self, name, command, args, dependencies, subdir):
self.name = name
self.command = command
self.args = args
+ self.dependencies = dependencies
self.subdir = subdir
def get_id(self):
@@ -950,7 +951,7 @@ class RunTarget:
return self.name
def get_dependencies(self):
- return []
+ return self.dependencies
def get_generated_sources(self):
return []