|
|
@ -16,11 +16,11 @@ |
|
|
|
platform = native |
|
|
|
framework = |
|
|
|
build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined |
|
|
|
src_build_flags = -Wall -IMarlin/src/HAL/LINUX/include |
|
|
|
build_src_flags = -Wall -IMarlin/src/HAL/LINUX/include |
|
|
|
build_unflags = -Wall |
|
|
|
lib_ldf_mode = off |
|
|
|
lib_deps = |
|
|
|
src_filter = ${common.default_src_filter} +<src/HAL/LINUX> |
|
|
|
build_src_filter = ${common.default_src_filter} +<src/HAL/LINUX> |
|
|
|
|
|
|
|
# |
|
|
|
# Native Simulation |
|
|
@ -35,11 +35,11 @@ src_filter = ${common.default_src_filter} +<src/HAL/LINUX> |
|
|
|
platform = native |
|
|
|
framework = |
|
|
|
build_flags = ${common.build_flags} -std=gnu++17 -D__PLAT_NATIVE_SIM__ -DU8G_HAL_LINKS -I/usr/include/SDL2 -IMarlin -IMarlin/src/HAL/NATIVE_SIM/u8g |
|
|
|
src_build_flags = -Wall -Wno-expansion-to-defined -Wcast-align |
|
|
|
build_src_flags = -Wall -Wno-expansion-to-defined -Wcast-align |
|
|
|
release_flags = -g0 -O3 -flto |
|
|
|
debug_build_flags = -fstack-protector-strong -g -g3 -ggdb |
|
|
|
lib_compat_mode = off |
|
|
|
src_filter = ${common.default_src_filter} +<src/HAL/NATIVE_SIM> |
|
|
|
build_src_filter = ${common.default_src_filter} +<src/HAL/NATIVE_SIM> |
|
|
|
lib_deps = ${common.lib_deps} |
|
|
|
MarlinSimUI=https://github.com/p3p/MarlinSimUI/archive/0.0.2.zip |
|
|
|
Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/marlin_sim_native.zip |
|
|
@ -110,6 +110,6 @@ custom_gcc = g++ |
|
|
|
# |
|
|
|
[env:simulator_windows] |
|
|
|
extends = simulator_common |
|
|
|
src_build_flags = ${simulator_common.src_build_flags} -fpermissive |
|
|
|
build_src_flags = ${simulator_common.build_src_flags} -fpermissive |
|
|
|
build_flags = ${simulator_common.build_flags} ${simulator_common.debug_build_flags} -IC:\\msys64\\mingw64\\include\\SDL2 -fno-stack-protector -Wl,-subsystem,windows -ldl -lmingw32 -lSDL2main -lSDL2 -lSDL2_net -lopengl32 -lssp |
|
|
|
build_type = debug |
|
|
|