Rewrite the lunabuild toolchain with enhanced feature (#60)
[lunaix-os.git] / lunaix-os / hal / char / LBuild
index dbc15be35a3dc8a14f3d344468518dcf57b93dcb..55e3c8271e187971186e4337bb0c4863e140215e 100644 (file)
@@ -1,15 +1,13 @@
-use("uart")
+from . import uart
 
 
-sources([
+if config.vga_console:
+    src.c += "lxconsole.c"
+
+if config.chargame_console:
+    src.c += "chargame.c"
+
+src.c += (
     "devnull.c",
     "serial.c",
     "devzero.c",
     "devnull.c",
     "serial.c",
     "devzero.c",
-])
-
-if config("vga_console"):
-
-    sources("lxconsole.c")
-
-if config("chargame_console"):
-    
-    sources("chargame.c")
\ No newline at end of file
+)
\ No newline at end of file