summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-26 11:00:23 -0500
committerDavid Robillard <d@drobilla.net>2017-12-26 11:00:23 -0500
commitd9f2bd6d383cea07388c84049bb511358d70aa57 (patch)
tree8b59877232f815904ee84aabaa8c2cc2525ea191
parentc509caadba7747e4dc724e0bd3cc87c1e8206a68 (diff)
downloadautowaf-d9f2bd6d383cea07388c84049bb511358d70aa57.tar.gz
autowaf-d9f2bd6d383cea07388c84049bb511358d70aa57.tar.bz2
autowaf-d9f2bd6d383cea07388c84049bb511358d70aa57.zip
Add autowaf.set_line_just
-rw-r--r--autowaf.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/autowaf.py b/autowaf.py
index 032e619..64aa435 100644
--- a/autowaf.py
+++ b/autowaf.py
@@ -21,6 +21,9 @@ g_is_child = False
global g_step
g_step = 0
+global line_just
+line_just = 40
+
# Compute dependencies globally
#import preproc
#preproc.go_absolute = True
@@ -360,6 +363,11 @@ def set_lib_env(conf, name, version):
conf.env['LIBPATH_' + NAME] = [conf.env.LIBDIR]
conf.env['LIB_' + NAME] = [lib_name]
+def set_line_just(conf, width):
+ global line_just
+ line_just = max(line_just, width)
+ conf.line_just = line_just
+
def display_header(title):
Logs.pprint('BOLD', title)