forked from lvgl/lv_platformio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
84 lines (77 loc) · 2.32 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
; 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
; http://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = emulator_64bits
; Shared options
[env]
build_flags =
; Don't use lv_conf.h. Tweak params via platfom.ini.
-D LV_CONF_SKIP
-D LV_CONF_INCLUDE_SIMPLE
-D LV_HOR_RES_MAX=320
-D LV_VER_RES_MAX=480
; Add more defines below to overide lvgl:/src/lv_conf_simple.h
lib_deps =
;lvgl=https://github.com/littlevgl/lvgl/archive/master.zip
lvgl@~7.10.1
lib_archive = false
[env:emulator_64bits]
platform = native@^1.1.3
extra_scripts = support/sdl2_build_extra.py
build_flags =
${env.build_flags}
-D LV_LOG_LEVEL=LV_LOG_LEVEL_INFO
-D LV_LOG_PRINTF=1
; Add recursive dirs for hal headers search
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/sdl2')]))"
-lSDL2
; SDL drivers options
-D LV_LVGL_H_INCLUDE_SIMPLE
-D LV_DRV_NO_CONF
-D USE_MONITOR
-D MONITOR_ZOOM=1
-D USE_MOUSE
-D USE_MOUSEWHEEL
-D USE_KEYBOARD
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('GUIGuiderExportCode')]))"
-I .pio/libdeps/emulator_64bits
-I .pio/libdeps/emulator_64bits/lvgl/src/lv_font
-I /usr/include/SDL2
lib_deps =
${env.lib_deps}
lv_drivers@~7.9.0
;lv_drivers=https://github.com/littlevgl/lv_drivers/archive/7d71907c1d6b02797d066f50984b866e080ebeed.zip
src_filter =
+<*>
+<../hal/sdl2>
+<../GUIGuiderExportCode>
[env:emulator_32bits]
extends = env:emulator_64bits
build_flags =
${env:emulator_64bits.build_flags}
-m32
[env:stm32f429_disco]
platform = ststm32@^8.0.0
board = disco_f429zi
framework = stm32cube
build_flags =
${env.build_flags}
-D LV_LOG_LEVEL=LV_LOG_LEVEL_NONE
; header's default is 25MHz, but board uses 8MHz crystal
-D HSE_VALUE=8000000
; Add recursive dirs for hal headers search
!python -c "import os; print(' '.join(['-I {}'.format(i[0].replace('\x5C','/')) for i in os.walk('hal/stm32f429_disco')]))"
lib_deps =
${env.lib_deps}
BSP-ili9341
BSP-stmpe811
src_filter =
+<*>
+<../hal/stm32f429_disco>