bshell: re-organise build into three separate components

bshell: the front-end binary
bshell.runtime: contains the parser, compiler, and classes needed to run bshell scripts
bshell.core: contains the builtin commandlets and aliases
This commit is contained in:
2026-05-25 10:33:29 +01:00
parent 58c76a1f57
commit edfb3e24a3
165 changed files with 5173 additions and 4995 deletions
+22
View File
@@ -0,0 +1,22 @@
#include <fx/macros.h>
#include <fx/reflection/assembly.h>
FX_ASSEMBLY_BEGIN(bshell_core)
FX_ASSEMBLY_NAME("bshell.core");
FX_ASSEMBLY_VERSION(0, 1, 0, 0);
FX_ASSEMBLY_EXPORT_TYPE("bshell.core", "get_verb", bshell_get_verb);
FX_ASSEMBLY_EXPORT_TYPE(
"bshell.core",
"write_output",
bshell_write_output);
FX_ASSEMBLY_EXPORT_TYPE(
"bshell.core",
"foreach_object",
bshell_foreach_object);
FX_ASSEMBLY_EXPORT_TYPE(
"bshell.core",
"get_command",
bshell_get_command);
FX_ASSEMBLY_EXPORT_TYPE("bshell.core", "percent", bshell_percent);
FX_ASSEMBLY_EXPORT_TYPE("bshell.core", "echo", bshell_echo);
FX_ASSEMBLY_END(bshell_core)