forked from koniifer/ableos
Hypothetical ideas laid out
This commit is contained in:
parent
1cc414eaaf
commit
088e628cde
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"rust-analyzer.checkOnSave.allTargets": false,
|
||||
"rust-analyzer.showUnlinkedFileNotification": false
|
||||
"rust-analyzer.showUnlinkedFileNotification": false,
|
||||
"C_Cpp.errorSquiggles": "disabled"
|
||||
}
|
14
sysdata/programs/dev/README.md
Normal file
14
sysdata/programs/dev/README.md
Normal file
|
@ -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.
|
16
sysdata/programs/dev/meta.toml
Normal file
16
sysdata/programs/dev/meta.toml
Normal file
|
@ -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"
|
5
sysdata/programs/dev/src/main.c
Normal file
5
sysdata/programs/dev/src/main.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include "lib/file_service.h"
|
||||
|
||||
int main() {
|
||||
File fhand = file_open("meta.toml");
|
||||
}
|
|
@ -12,4 +12,4 @@ command = "fisp src/main.fisp"
|
|||
|
||||
[run.debug]
|
||||
depends = ["build.debug"]
|
||||
command = ""
|
||||
command = "bin/main.hbf"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
jmp start
|
||||
|
||||
start:
|
||||
li64 r1, 3
|
||||
li64 r2, 1
|
Loading…
Reference in a new issue