mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-19 09:16:41 +00:00
Add linux_sdl environment
This commit is contained in:
parent
ee49a2c6b3
commit
7591ce4418
@ -183,7 +183,7 @@ typedef void* lv_group_user_data_t;
|
||||
typedef void* lv_fs_drv_user_data_t;
|
||||
|
||||
/*File system interface*/
|
||||
#define LV_USE_FS_IF 1
|
||||
#define LV_USE_FS_IF 0
|
||||
#if LV_USE_FS_IF
|
||||
# define LV_FS_IF_FATFS '\0'
|
||||
#if defined(STM32F4xx) // || defined(ARDUINO_ARCH_ESP8266)
|
||||
|
19
tools/linux_build_extra.py
Normal file
19
tools/linux_build_extra.py
Normal file
@ -0,0 +1,19 @@
|
||||
Import("env", "projenv")
|
||||
|
||||
# Override unused "upload" to execute compiled binary
|
||||
from SCons.Script import AlwaysBuild
|
||||
AlwaysBuild(env.Alias("build", "$BUILD_DIR/${PROGNAME}", "$BUILD_DIR/${PROGNAME}"))
|
||||
|
||||
# Add custom target to explorer
|
||||
env.AddTarget(
|
||||
name = "execute",
|
||||
dependencies = "$BUILD_DIR/${PROGNAME}",
|
||||
actions = "$BUILD_DIR/${PROGNAME}",
|
||||
# actions = 'cmd.exe /C "start cmd.exe /C $BUILD_DIR\${PROGNAME}.exe"',
|
||||
title = "Execute",
|
||||
description = "Build and execute",
|
||||
group="General"
|
||||
)
|
||||
|
||||
#print('=====================================')
|
||||
#print(env.Dump())
|
@ -1,6 +1,8 @@
|
||||
[env:emulator_64bits]
|
||||
[env:linux_sdl_64bits]
|
||||
platform = native@^1.1.3
|
||||
extra_scripts = tools/sdl2_build_extra.py
|
||||
extra_scripts =
|
||||
tools/sdl2_build_extra.py
|
||||
tools/linux_build_extra.py
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
; ----- Monitor
|
||||
@ -37,8 +39,8 @@ build_flags =
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_VERBOSE_MAKEFILE=TRUE
|
||||
;-D NO_PERSISTENCE
|
||||
-I.pio/libdeps/emulator_64bits/paho/src
|
||||
-I.pio/libdeps/emulator_64bits/ArduinoJson/src
|
||||
-I.pio/libdeps/linux_sdl_64bits/paho/src
|
||||
-I.pio/libdeps/linux_sdl_64bits/ArduinoJson/src
|
||||
-I lib/ArduinoJson/src
|
||||
-I lib/lv_fs_if
|
||||
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/sdl2')]))"
|
||||
@ -64,12 +66,12 @@ src_filter =
|
||||
+<*>
|
||||
-<*.h>
|
||||
+<../hal/sdl2>
|
||||
+<../.pio/libdeps/emulator_64bits/paho/src/*.c>
|
||||
+<../.pio/libdeps/emulator_64bits/paho/src/MQTTClient.c>
|
||||
-<../.pio/libdeps/emulator_64bits/paho/src/MQTTAsync.c>
|
||||
-<../.pio/libdeps/emulator_64bits/paho/src/MQTTAsyncUtils.c>
|
||||
-<../.pio/libdeps/emulator_64bits/paho/src/MQTTVersion.c>
|
||||
-<../.pio/libdeps/emulator_64bits/paho/src/SSLSocket.c>
|
||||
+<../.pio/libdeps/linux_sdl_64bits/paho/src/*.c>
|
||||
+<../.pio/libdeps/linux_sdl_64bits/paho/src/MQTTClient.c>
|
||||
-<../.pio/libdeps/linux_sdl_64bits/paho/src/MQTTAsync.c>
|
||||
-<../.pio/libdeps/linux_sdl_64bits/paho/src/MQTTAsyncUtils.c>
|
||||
-<../.pio/libdeps/linux_sdl_64bits/paho/src/MQTTVersion.c>
|
||||
-<../.pio/libdeps/linux_sdl_64bits/paho/src/SSLSocket.c>
|
||||
+<MQTTClient.c>
|
||||
-<MQTTAsync.c>
|
||||
-<MQTTAsyncUtils.c>
|
||||
@ -89,4 +91,4 @@ src_filter =
|
||||
+<lang/>
|
||||
-<log/>
|
||||
+<mqtt/>
|
||||
+<../.pio/libdeps/emulator_64bits/ArduinoJson/src/ArduinoJson.h>
|
||||
+<../.pio/libdeps/linux_sdl_64bits/ArduinoJson/src/ArduinoJson.h>
|
Loading…
x
Reference in New Issue
Block a user