Skip to content

Commit

Permalink
Update vscode & CMake related points
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed May 18, 2022
1 parent e2cef42 commit d2ca50b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 36 deletions.
7 changes: 3 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
"name": "(Windows) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}\\build\\LwLibPROJECT.exe",
"program": "${command:cmake.buildDirectory}\\LwLibPROJECT.exe",
"miDebuggerPath": "c:\\msys64\\mingw64\\bin\\gdb.exe",
"args": [],
"stopAtEntry": true,
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"console": "externalTerminal"
"environment": []
}
]
}
34 changes: 6 additions & 28 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,10 @@
{
"files.associations": {
"lwesp_conn.h": "c",
"lwesp_mem.h": "c",
"lwesp_private.h": "c",
"lwesp_typedefs.h": "c",
"lwesp.h": "c",
"lwesp_includes.h": "c",
"lwesp_opt.h": "c",
"lwesp_debug.h": "c",
"lwesp_parser.h": "c",
"lwesp_int.h": "c",
"lwesp_opts.h": "c",
"station_manager.h": "c",
"lwesp_ll.h": "c",
"array": "c",
"string_view": "c",
"initializer_list": "c",
"utility": "c",
"cayenne_async_mqtt.h": "c",
"lwesp_mqtt_client_api.h": "c",
"lwesp_timeout.h": "c",
"lwesp_mqtt_client.h": "c",
"lwesp_cayenne.h": "c",
"lwesp_unicode.h": "c",
"lwesp_buff.h": "c",
"windows.h": "c",
"mqtt_client_api.h": "c",
"lwesp_cayenne_evt.h": "c"
"lwevt_types.h": "c",
"lwevt_type.h": "c",
"lwevt.h": "c",
"string.h": "c",
"lwevt_opt.h": "c"
},
"restructuredtext.confPath": "c:\\Users\\majerlet\\Github\\lwdtc\\docs"
"esbonio.sphinx.confDir": ""
}
8 changes: 4 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "cppbuild",
"label": "Build project",
"command": "cmake",
"args": ["--build", "\"build\"", "-j", "8"],
"args": ["--build", "${command:cmake.buildDirectory}", "-j", "8"],
"options": {
"cwd": "${workspaceFolder}"
},
Expand All @@ -19,7 +19,7 @@
"type": "shell",
"label": "Re-build project",
"command": "cmake",
"args": ["--build", "\"build\"", "--clean-first", "-v", "-j", "8"],
"args": ["--build", "${command:cmake.buildDirectory}", "--clean-first", "-v", "-j", "8"],
"options": {
"cwd": "${workspaceFolder}"
},
Expand All @@ -29,7 +29,7 @@
"type": "shell",
"label": "Clean project",
"command": "cmake",
"args": ["--build", "\"build\"", "--target", "clean"],
"args": ["--build", "${command:cmake.buildDirectory}", "--target", "clean"],
"options": {
"cwd": "${workspaceFolder}"
},
Expand All @@ -38,7 +38,7 @@
{
"type": "shell",
"label": "Run application",
"command": "${workspaceFolder}\\build\\LwLibPROJECT.exe",
"command": "${command:cmake.buildDirectory}\\LwLibPROJECT.exe",
"args": [],
"problemMatcher": [],
},
Expand Down
7 changes: 7 additions & 0 deletions cmake/i686-w64-mingw32-gcc.cmake
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions cmake/x86_64-w64-mingw32-gcc.cmake
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit d2ca50b

Please sign in to comment.