mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
make compile_commands.json when opening directory
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
|||||||
!.vscode/launch.json
|
!.vscode/launch.json
|
||||||
bin
|
bin
|
||||||
obj
|
obj
|
||||||
|
compile_commands.json
|
||||||
|
|||||||
12
.vscode/tasks.json
vendored
12
.vscode/tasks.json
vendored
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
@@ -47,7 +48,14 @@
|
|||||||
"isDefault": false
|
"isDefault": false
|
||||||
},
|
},
|
||||||
"detail": "builds the program for web using emscripten"
|
"detail": "builds the program for web using emscripten"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "create compile_commands.json",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "bear -- make",
|
||||||
|
"runOptions": {
|
||||||
|
"runOn": "folderOpen"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"version": "2.0.0"
|
|
||||||
}
|
}
|
||||||
|
|||||||
2
makefile
2
makefile
@@ -12,6 +12,8 @@ SRC = $(wildcard src/*.c) $(wildcard src/**/*.c) $(wildcard src/**/**/*.c) $(wil
|
|||||||
OBJ = $(patsubst src/%,$(DIR_OBJ)/$(ARCH)/%,$(SRC:.c=.o))
|
OBJ = $(patsubst src/%,$(DIR_OBJ)/$(ARCH)/%,$(SRC:.c=.o))
|
||||||
TARGET = $(DIR_BIN)/$(ARCH)/$(NAME)$(EXT)
|
TARGET = $(DIR_BIN)/$(ARCH)/$(NAME)$(EXT)
|
||||||
|
|
||||||
|
all: linux-x86_64 win-x86_64 web
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(DIR_BIN) $(DIR_OBJ)
|
rm -rf $(DIR_BIN) $(DIR_OBJ)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user