added default_vscode/c_cpp_properties.json
This commit is contained in:
parent
d1660e05cb
commit
c72734df14
@ -1,6 +1,8 @@
|
||||
## 2.2.4
|
||||
+ **default config**: C standard changed to C99
|
||||
+ **default config**: enabled more warnings
|
||||
+ added file `default_vscode/c_cpp_properties.json`
|
||||
+ fixed copying of `default_vscode` files
|
||||
|
||||
## 2.2.3
|
||||
+ removed `\r` characters from `detect_os.sh`
|
||||
|
||||
@ -106,8 +106,10 @@ do
|
||||
|
||||
if ask_yn "Copy default .vscode launch tasks?"; then
|
||||
new_project_vscode_dir="$new_project_dir/.vscode"
|
||||
mkdir -p "$new_project_vscode_dir"
|
||||
cp -vr "$CBUILD_INSTALL_DIR/default_vscode/"* "$new_project_vscode_dir/"
|
||||
mkdir -pv "$new_project_vscode_dir"
|
||||
for vscode_dir_f in $(find "$CBUILD_INSTALL_DIR/default_vscode/" -type f); do
|
||||
cp -vr "$vscode_dir_f" "$new_project_vscode_dir/"
|
||||
done
|
||||
sed "s,\%PROJECT_NAME\%,$project_name,g" \
|
||||
"$new_project_vscode_dir/launch.json" > "$new_project_vscode_dir/launch.json.temp"
|
||||
mv "$new_project_vscode_dir/launch.json.temp" "$new_project_vscode_dir/launch.json"
|
||||
|
||||
@ -33,9 +33,9 @@ ENABLED_DEPENDENCIES=''
|
||||
# └── profile/ - gcc *.gcda profiling info files
|
||||
OBJDIR="obj"
|
||||
OUTDIR="bin"
|
||||
STATIC_LIB_FILE="lib$PROJECT.a"
|
||||
STATIC_LIB_FILE="$PROJECT.a"
|
||||
|
||||
# example: "-I./dependencies/include/SDL2"
|
||||
# example: "-I./include"
|
||||
INCLUDE=""
|
||||
|
||||
# OS-specific options
|
||||
|
||||
14
default_vscode/c_cpp_properties.json
Normal file
14
default_vscode/c_cpp_properties.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "all",
|
||||
"defines": [],
|
||||
"includePath": [
|
||||
// "include",
|
||||
"${default}"
|
||||
],
|
||||
"cStandard": "c99"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user