|
@@ -29,10 +29,7 @@ src_filter = ${common.default_src_filter} +<src/HAL/LINUX>
|
29
|
29
|
#
|
30
|
30
|
# Tested with Linux (Mint 20) : gcc [9.3.0, 10.2.0]: libsdl2-dev[2.0.10], libsdl2-net-dev[2.0.1], libglm-dev[0.9.9.7, 0.9.9.8]
|
31
|
31
|
#
|
32
|
|
-# Debugging with gdb in vscode is as easy as adding the launch task as usual, but platformio
|
33
|
|
-# will randomly remove your task when it recreates its tasks from a template. Add your gdb
|
34
|
|
-# launch task to '~/.platformio/penv/lib/python{PYTHON_VERSION}/site-packages/platformio/ide/tpls/vscode/.vscode'
|
35
|
|
-# to avoid this until platformio updates.
|
|
32
|
+# For VSCode debugging see buildroot/share/PlatformIO/debugging/launch.json
|
36
|
33
|
#
|
37
|
34
|
[simulator_common]
|
38
|
35
|
platform = native
|
|
@@ -43,7 +40,6 @@ release_flags = -g0 -O3 -flto
|
43
|
40
|
debug_build_flags = -fstack-protector-strong -g -g3 -ggdb
|
44
|
41
|
lib_compat_mode = off
|
45
|
42
|
src_filter = ${common.default_src_filter} +<src/HAL/NATIVE_SIM>
|
46
|
|
-
|
47
|
43
|
lib_deps = ${common.lib_deps}
|
48
|
44
|
MarlinSimUI=https://github.com/p3p/MarlinSimUI/archive/master.zip
|
49
|
45
|
Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/marlin_sim_native.zip
|
|
@@ -51,7 +47,6 @@ lib_deps = ${common.lib_deps}
|
51
|
47
|
extra_scripts = ${common.extra_scripts}
|
52
|
48
|
pre:buildroot/share/PlatformIO/scripts/simulator.py
|
53
|
49
|
|
54
|
|
-
|
55
|
50
|
[simulator_linux]
|
56
|
51
|
extends = simulator_common
|
57
|
52
|
build_flags = ${simulator_common.build_flags} -ldl -lpthread -lSDL2 -lSDL2_net -lGL
|
|
@@ -84,17 +79,6 @@ build_flags = ${simulator_linux.build_flags} ${simulator_linux.release_flags}
|
84
|
79
|
# Use 'sudo port install mesa' to get a <GL/gl.h> if no Xcode is installed.
|
85
|
80
|
# If Xcode is installed be sure to run `xcode-select --install` first.
|
86
|
81
|
#
|
87
|
|
-# For VSCode debugging paste the block below near the top of launch.json.
|
88
|
|
-# NOTE: The PlatformIO VSCode extension will remove it when regenerating launch.json.
|
89
|
|
-#
|
90
|
|
-# { "name": "Debug Sim",
|
91
|
|
-# "type": "cppdbg",
|
92
|
|
-# "request": "launch",
|
93
|
|
-# "program": "${workspaceFolder}/.pio/build/simulator_macos/MarlinSimulator",
|
94
|
|
-# "miDebuggerPath": "/opt/local/bin/ggdb",
|
95
|
|
-# "MIMode": "gdb",
|
96
|
|
-# "cwd": "${workspaceFolder}/.pio/build/simulator_macos" },
|
97
|
|
-#
|
98
|
82
|
[simulator_macos]
|
99
|
83
|
build_unflags = -lGL
|
100
|
84
|
custom_verbose = 0
|