Rewrite the lunabuild toolchain with enhanced feature (#60)
[lunaix-os.git] / lunaix-os / hal / char / LBuild
index c00a394db99cc03e38437c9779176e51a795cb13..55e3c8271e187971186e4337bb0c4863e140215e 100644 (file)
@@ -1,10 +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")
\ No newline at end of file
+)
\ No newline at end of file