Add a first stub of the makefile generation function
[bertos.git] / wizard / bertos.py
index c731e57448c97b2c2c16a9f0a5a4ead81b7f2c36..78c34946b3ad093a1954764093b79c5c485ef703 100755 (executable)
@@ -9,6 +9,7 @@
 # Author: Lorenzo Berni <duplo@develer.com>
 #
 
+import os
 import sys
 from distutils.dep_util import newer
 
@@ -20,10 +21,17 @@ import BProject
 import BStartPage
 import BWizard
 
+import bertos_utils
+
 def newProject():
     wizard = BWizard.BWizard()
     wizard.show()
-    wizard.exec_()
+    if wizard.exec_():
+        prj = wizard.project()
+        output = prj.info("OUTPUT")
+        if output == "makefile":
+            ## Now only supports the BeRTOS build system
+            bertos_utils.createBertosProject(prj)
     
 def editProject():
     print "editProject"