mirror of
https://github.com/m5stack/lv_m5_emulator.git
synced 2026-05-20 11:19:24 -07:00
155 lines
3.5 KiB
INI
155 lines
3.5 KiB
INI
; PlatformIO Project Configuration File
|
|
;
|
|
; Build options: build flags, source filter
|
|
; Upload options: custom upload port, speed and extra flags
|
|
; Library options: dependencies, extra library storages
|
|
; Advanced options: extra scripting
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
[platformio]
|
|
default_envs = emulator_Core
|
|
|
|
[env]
|
|
build_flags =
|
|
-std=c++17
|
|
-I include
|
|
-I src/utility
|
|
|
|
; LVGL
|
|
-D LV_CONF_INCLUDE_SIMPLE
|
|
-D LV_LVGL_H_INCLUDE_SIMPLE
|
|
-D LVGL_USE_V8=1 ; lvgl v8
|
|
-D LVGL_USE_V9=0 ; lvgl v9
|
|
|
|
; SDL2 includes, uncomment the next two lines on MAC OS if you intalled sdl via homebrew
|
|
; !find /opt/homebrew/Cellar/sdl2 -name "include" | sed "s/^/-I /"
|
|
; !find /opt/homebrew/Cellar/sdl2 -name "libSDL2.a" | xargs dirname | sed "s/^/-L /"
|
|
lib_deps =
|
|
https://github.com/m5stack/M5GFX#develop
|
|
lvgl=https://github.com/lvgl/lvgl/archive/refs/tags/v8.3.0.zip ; lvgl v8
|
|
; lvgl=https://github.com/lvgl/lvgl#master ; lvgl v9
|
|
lib_archive = false
|
|
|
|
|
|
[env:emulator_common]
|
|
build_flags =
|
|
-l SDL2
|
|
${env.build_flags}
|
|
-D M5GFX_SHOW_FRAME
|
|
-D M5GFX_BACK_COLOR=0xFFFFFFU ; background color
|
|
-D M5GFX_SCALE=2
|
|
-D M5GFX_ROTATION=0
|
|
|
|
|
|
[env:emulator_Core]
|
|
platform = native@^1.2.1
|
|
extra_scripts = support/sdl2_build_extra.py
|
|
build_type = debug
|
|
build_flags =
|
|
${env:emulator_common.build_flags}
|
|
-D M5GFX_BOARD=board_M5Stack
|
|
build_src_filter =
|
|
+<*>
|
|
+<../.pio/libdeps/emulator_Core/lvgl/demos>
|
|
|
|
|
|
[env:board_M5Core]
|
|
platform = espressif32
|
|
board = m5stack-fire
|
|
framework = arduino
|
|
build_flags =
|
|
${env.build_flags}
|
|
-D M5GFX_BOARD=board_M5Stack
|
|
-D BOARD_HAS_PSRAM
|
|
build_src_filter =
|
|
+<*>
|
|
+<../.pio/libdeps/board_M5Core/lvgl/demos>
|
|
|
|
|
|
[env:emulator_Core2]
|
|
platform = native@^1.2.1
|
|
extra_scripts = support/sdl2_build_extra.py
|
|
build_type = debug
|
|
build_flags =
|
|
${env:emulator_common.build_flags}
|
|
-D M5GFX_BOARD=board_M5StackCore2
|
|
build_src_filter =
|
|
+<*>
|
|
+<../.pio/libdeps/emulator_Core2/lvgl/demos>
|
|
|
|
|
|
[env:board_M5Core2]
|
|
platform = espressif32
|
|
board = m5stack-core2
|
|
framework = arduino
|
|
build_flags =
|
|
${env.build_flags}
|
|
-D M5GFX_BOARD=board_M5StackCore2
|
|
-D BOARD_HAS_PSRAM
|
|
build_src_filter =
|
|
+<*>
|
|
+<../.pio/libdeps/board_M5Core2/lvgl/demos>
|
|
|
|
|
|
[env:emulator_CoreS3]
|
|
platform = native@^1.2.1
|
|
extra_scripts = support/sdl2_build_extra.py
|
|
build_type = debug
|
|
build_flags =
|
|
${env:emulator_common.build_flags}
|
|
-D M5GFX_BOARD=board_M5StackCoreS3
|
|
build_src_filter =
|
|
+<*>
|
|
+<../.pio/libdeps/emulator_CoreS3/lvgl/demos>
|
|
|
|
|
|
[env:board_M5CoreS3]
|
|
platform = espressif32
|
|
board = esp32-s3-devkitc-1
|
|
framework = arduino
|
|
build_flags =
|
|
${env.build_flags}
|
|
-D M5GFX_BOARD=board_M5StackCoreS3
|
|
-D BOARD_HAS_PSRAM
|
|
build_src_filter =
|
|
+<*>
|
|
+<../.pio/libdeps/board_M5CoreS3/lvgl/demos>
|
|
|
|
|
|
[env:emulator_StickCPlus]
|
|
platform = native@^1.2.1
|
|
extra_scripts = support/sdl2_build_extra.py
|
|
build_type = debug
|
|
build_flags =
|
|
${env:emulator_common.build_flags}
|
|
-D M5GFX_BOARD=board_M5StickCPlus
|
|
build_src_filter =
|
|
+<*>
|
|
+<../.pio/libdeps/emulator_StickCPlus/lvgl/demos>
|
|
|
|
|
|
[env:emulator_StickCPlus2]
|
|
platform = native@^1.2.1
|
|
extra_scripts = support/sdl2_build_extra.py
|
|
build_type = debug
|
|
build_flags =
|
|
${env:emulator_common.build_flags}
|
|
-D M5GFX_BOARD=board_M5StickCPlus2
|
|
build_src_filter =
|
|
+<*>
|
|
+<../.pio/libdeps/emulator_StickCPlus2/lvgl/demos>
|
|
|
|
|
|
[env:emulator_Dial]
|
|
platform = native@^1.2.1
|
|
extra_scripts = support/sdl2_build_extra.py
|
|
build_type = debug
|
|
build_flags =
|
|
${env:emulator_common.build_flags}
|
|
-D M5GFX_BOARD=board_M5Dial
|
|
build_src_filter =
|
|
+<*>
|
|
+<../.pio/libdeps/emulator_Dial/lvgl/demos>
|