From 0733c0f9a1cd7a38e3a8f5c746e50967eeb9c9a5 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 24 Jun 2016 23:07:57 +0300 Subject: Changed run_target to take command as kwarg and add depends. This makes it behave the same as custom_target. --- mesonbuild/build.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mesonbuild/build.py') 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 [] -- cgit v1.1