Skip to content

Commit

Permalink
emulator compilation on vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Nov 14, 2023
1 parent a907301 commit de277d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
13 changes: 0 additions & 13 deletions makefiles/virtual/main.c

This file was deleted.

2 changes: 1 addition & 1 deletion uCNC/src/hal/mcus/virtual/mcu_virtual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C"
// #include <ws2tcpip.h>
// #pragma comment(lib, "ws2_32.lib") // Winsock Library
// #include <windows.h>
#include "WindowsSerial.h"
#include "../../../../../makefiles/virtual/WindowsSerial.h"

/**
*
Expand Down
3 changes: 2 additions & 1 deletion uCNC/src/hal/mcus/virtual/virtual.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Virtual MCU #
###############

[env:windows_virtual]
[env:EMULATOR_WINDOWS]
platform = windows_x86
framework =
platform_packages = platformio/toolchain-gccmingw32
Expand All @@ -11,6 +11,7 @@ build_src_filter =
+<../makefiles/virtual>
-<src/tinyusb>
-<src/hal/mcus/avr>
-<../makefiles/virtual/clib>
debug_build_flags = -Og -g3
debug_init_cmds =
run
Expand Down
4 changes: 3 additions & 1 deletion uCNC/src/hal/mcus/virtual/win_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
LINKFLAGS=[
"-static-libgcc",
"-g3",
"-lws2_32"
# "-lSDL2main",
# "-lSDL2",
"-lws2_32"
]
)

0 comments on commit de277d9

Please sign in to comment.