diff python/zcc.py @ 393:6ae782a085e0

Added init program
author Windel Bouwman
date Sat, 17 May 2014 21:17:40 +0200
parents 6df89163e114
children
line wrap: on
line diff
--- a/python/zcc.py	Fri May 16 13:05:10 2014 +0200
+++ b/python/zcc.py	Sat May 17 21:17:40 2014 +0200
@@ -4,10 +4,9 @@
 import argparse
 import logging
 
-from ppci.tasks import TaskRunner
 from ppci.report import RstFormatter
-from ppci.recipe import RecipeLoader
-import ppci.buildtasks # Include not used, but it registers build tasks.
+from ppci.buildfunctions import construct
+import ppci.buildtasks  # Include not used, but it registers build tasks.
 import ppci
 
 
@@ -48,14 +47,7 @@
         fh.setFormatter(RstFormatter())
         logging.getLogger().addHandler(fh)
 
-    recipe_loader = RecipeLoader()
-    try:
-        project = recipe_loader.load_file(args.buildfile)
-    except OSError as e:
-        res = 1
-
-    runner = TaskRunner()
-    res = runner.run(project, args.targets)
+    res = construct(args.buildfile, args.targets)
 
     if args.report:
         logging.getLogger().removeHandler(fh)