diff --git a/.vscode/settings.json b/.vscode/settings.json index 465a07107..e0c3d059c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { "rust-analyzer.checkOnSave.allTargets": false, - "rust-analyzer.showUnlinkedFileNotification": false + "rust-analyzer.showUnlinkedFileNotification": false, + "C_Cpp.errorSquiggles": "disabled" } \ No newline at end of file diff --git a/sysdata/programs/dev/README.md b/sysdata/programs/dev/README.md new file mode 100644 index 000000000..2b2985ce7 --- /dev/null +++ b/sysdata/programs/dev/README.md @@ -0,0 +1,14 @@ +# Dev +Dev is a (currently) hypothetical tool meant to be used to ease development and compilation on ableOS. + +## Usage +A `meta.toml` file must be in the project root. A `src` folder and a `lib` folder must exist. +Binaries should be put into a folder named `bin`. + +``` +bin/ +lib/ +src/ +``` + +The folders `lib/` and `bin/` should both be left out of source tracking. \ No newline at end of file diff --git a/sysdata/programs/dev/meta.toml b/sysdata/programs/dev/meta.toml new file mode 100644 index 000000000..8ca8b7cb3 --- /dev/null +++ b/sysdata/programs/dev/meta.toml @@ -0,0 +1,16 @@ +[package] +name = "dev" +authors = ["able"] + +[dependants.libraries] +file_service = "0.0.1" + +[dependants.binaries] +susc.version = "1.0.0" + +[build.debug] +command = "susc src/main.hbl" + +[run.debug] +depends = ["build.debug"] +command = "bin/main.hbf" diff --git a/sysdata/programs/dev/src/main.c b/sysdata/programs/dev/src/main.c new file mode 100644 index 000000000..75d5431d0 --- /dev/null +++ b/sysdata/programs/dev/src/main.c @@ -0,0 +1,5 @@ +#include "lib/file_service.h" + +int main() { + File fhand = file_open("meta.toml"); +} \ No newline at end of file diff --git a/sysdata/programs/fisp_test/meta.toml b/sysdata/programs/fisp_test/meta.toml index 438a0d632..c0f4a7b12 100644 --- a/sysdata/programs/fisp_test/meta.toml +++ b/sysdata/programs/fisp_test/meta.toml @@ -12,4 +12,4 @@ command = "fisp src/main.fisp" [run.debug] depends = ["build.debug"] -command = "" +command = "bin/main.hbf" diff --git a/sysdata/programs/test/meta.toml b/sysdata/programs/test/meta.toml index 25cc59cb9..60e5f4b5a 100644 --- a/sysdata/programs/test/meta.toml +++ b/sysdata/programs/test/meta.toml @@ -9,8 +9,8 @@ authors = ["able"] htasm = "" [build.debug] -command = "hblang src/main.hbl" +command = "htasm src/main.S" [run.debug] depends = ["build.debug"] -command = "" +command = "bin/main.hbf" diff --git a/sysdata/programs/test/src/main.hbl b/sysdata/programs/test/src/main.S similarity index 91% rename from sysdata/programs/test/src/main.hbl rename to sysdata/programs/test/src/main.S index d183c596f..1b4a4ff09 100644 --- a/sysdata/programs/test/src/main.hbl +++ b/sysdata/programs/test/src/main.S @@ -1,3 +1,5 @@ +jmp start + start: li64 r1, 3 li64 r2, 1