mirror of
https://github.com/MaJerle/lwmem.git
synced 2025-01-13 21:42:53 +08:00
Update vscode & CMake related points
This commit is contained in:
parent
67537be39f
commit
4849aa0c23
5
.vscode/launch.json
vendored
5
.vscode/launch.json
vendored
@ -8,13 +8,12 @@
|
|||||||
"name": "(Windows) Launch",
|
"name": "(Windows) Launch",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}\\build\\LwLibPROJECT.exe",
|
"program": "${command:cmake.buildDirectory}\\LwLibPROJECT.exe",
|
||||||
"miDebuggerPath": "c:\\msys64\\mingw64\\bin\\gdb.exe",
|
"miDebuggerPath": "c:\\msys64\\mingw64\\bin\\gdb.exe",
|
||||||
"args": [],
|
"args": [],
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"cwd": "${fileDirname}",
|
"cwd": "${fileDirname}",
|
||||||
"environment": [],
|
"environment": []
|
||||||
"console": "integratedTerminal"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
10
.vscode/settings.json
vendored
Normal file
10
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"lwevt_types.h": "c",
|
||||||
|
"lwevt_type.h": "c",
|
||||||
|
"lwevt.h": "c",
|
||||||
|
"string.h": "c",
|
||||||
|
"lwevt_opt.h": "c"
|
||||||
|
},
|
||||||
|
"esbonio.sphinx.confDir": ""
|
||||||
|
}
|
8
.vscode/tasks.json
vendored
8
.vscode/tasks.json
vendored
@ -5,7 +5,7 @@
|
|||||||
"type": "cppbuild",
|
"type": "cppbuild",
|
||||||
"label": "Build project",
|
"label": "Build project",
|
||||||
"command": "cmake",
|
"command": "cmake",
|
||||||
"args": ["--build", "\"build\"", "-j", "8"],
|
"args": ["--build", "${command:cmake.buildDirectory}", "-j", "8"],
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}"
|
"cwd": "${workspaceFolder}"
|
||||||
},
|
},
|
||||||
@ -19,7 +19,7 @@
|
|||||||
"type": "shell",
|
"type": "shell",
|
||||||
"label": "Re-build project",
|
"label": "Re-build project",
|
||||||
"command": "cmake",
|
"command": "cmake",
|
||||||
"args": ["--build", "\"build\"", "--clean-first", "-v", "-j", "8"],
|
"args": ["--build", "${command:cmake.buildDirectory}", "--clean-first", "-v", "-j", "8"],
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}"
|
"cwd": "${workspaceFolder}"
|
||||||
},
|
},
|
||||||
@ -29,7 +29,7 @@
|
|||||||
"type": "shell",
|
"type": "shell",
|
||||||
"label": "Clean project",
|
"label": "Clean project",
|
||||||
"command": "cmake",
|
"command": "cmake",
|
||||||
"args": ["--build", "\"build\"", "--target", "clean"],
|
"args": ["--build", "${command:cmake.buildDirectory}", "--target", "clean"],
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}"
|
"cwd": "${workspaceFolder}"
|
||||||
},
|
},
|
||||||
@ -38,7 +38,7 @@
|
|||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"label": "Run application",
|
"label": "Run application",
|
||||||
"command": "${workspaceFolder}\\build\\LwLibPROJECT.exe",
|
"command": "${command:cmake.buildDirectory}\\LwLibPROJECT.exe",
|
||||||
"args": [],
|
"args": [],
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
},
|
},
|
||||||
|
7
cmake/i686-w64-mingw32-gcc.cmake
Normal file
7
cmake/i686-w64-mingw32-gcc.cmake
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
|
|
||||||
|
# Some default GCC settings
|
||||||
|
set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
|
||||||
|
set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
|
||||||
|
|
||||||
|
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
7
cmake/x86_64-w64-mingw32-gcc.cmake
Normal file
7
cmake/x86_64-w64-mingw32-gcc.cmake
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
|
|
||||||
|
# Some default GCC settings
|
||||||
|
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
|
||||||
|
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
|
||||||
|
|
||||||
|
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
Loading…
x
Reference in New Issue
Block a user