Add dev env setup
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ out/
|
|||||||
node_modules/
|
node_modules/
|
||||||
*.iso
|
*.iso
|
||||||
*.img
|
*.img
|
||||||
|
.clangd
|
||||||
@@ -36,6 +36,12 @@ st run build
|
|||||||
|
|
||||||
The built ISO can be found in `out/` directory.
|
The built ISO can be found in `out/` directory.
|
||||||
|
|
||||||
|
## How to setup development environment?
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./src/scripts/setup_dev.sh
|
||||||
|
```
|
||||||
|
|
||||||
## If you are an employer looking at this...
|
## If you are an employer looking at this...
|
||||||
|
|
||||||
I would appreciate if you messaged me and gave me some well-paid job. Also...
|
I would appreciate if you messaged me and gave me some well-paid job. Also...
|
||||||
|
|||||||
6
src/scripts/dev-setup/default.clangd
Normal file
6
src/scripts/dev-setup/default.clangd
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
CompileFlags:
|
||||||
|
CompilationDatabase: .
|
||||||
|
Add:
|
||||||
|
- "-I%%workspaceFolder%%/src/core/compat"
|
||||||
|
- "-I%%workspaceFolder%%/src/lib/quickjs"
|
||||||
|
- "-I%%workspaceFolder%%/out/system"
|
||||||
1
src/scripts/setup_dev.sh
Executable file
1
src/scripts/setup_dev.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
cp ./src/scripts/dev-setup/default.clangd .clangd && sed -i.bak "s|%%workspaceFolder%%|$(pwd)|g" .clangd && rm .clangd.bak
|
||||||
Reference in New Issue
Block a user