aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'build.py')
-rw-r--r--build.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.py b/build.py
index d60c503..a4fd63f 100644
--- a/build.py
+++ b/build.py
@@ -667,7 +667,8 @@ class CustomTarget:
'output' : True,
'command' : True,
'install' : True,
- 'install_dir' : True}
+ 'install_dir' : True,
+ 'build_always' : True}
def __init__(self, name, subdir, kwargs):
self.name = name
self.subdir = subdir
@@ -740,6 +741,9 @@ class CustomTarget:
raise InvalidArguments('"install_dir" must be a string.')
else:
self.install = False
+ self.build_always = kwargs.get('build_always', True)
+ if not isinstance(self.build_always, bool):
+ raise InvalidArguments('Argument build_always must be a boolean.')
def get_basename(self):
return self.name