Rewrite the lunabuild toolchain with enhanced feature (#60)
[lunaix-os.git] / lunaix-os / usr / libc / LBuild
index 5c77fe202462e59c7616be63aca777b3360f9b43..148835f5b5dab9ca634c2e45577f9ee113d86586 100644 (file)
@@ -1,4 +1,4 @@
-sources([
+src.c += (
     "src/string.c",
     "src/termios.c",
     "src/itoa.c",
@@ -6,9 +6,9 @@ sources([
     "src/readdir.c",
     "src/pthread.c",
     "src/printf.c"
-])
+)
 
-sources([
+src.c += (
     "src/posix/signal.c",
     "src/posix/mount.c",
     "src/posix/errno.c",
@@ -18,11 +18,10 @@ sources([
     "src/posix/unistd.c",
     "src/posix/mann.c",
     "src/posix/lunaix.c"
-])
+)
 
-use({
-    env("ARCH"): {
-        "i386": "arch/i386",
-        "x86_64": "arch/x86_64",
-    }
-})
\ No newline at end of file
+match env.ARCH:
+    case "i386":
+        from .arch import i386
+    case "x86_64":
+        from .arch import x86_64