feat(env/qnx): generate lv_conf.h at build time (#6596)

Co-authored-by: Elad Lahav <elahav@qnx.com>
This commit is contained in:
elahav 2024-08-01 03:33:39 -04:00 committed by GitHub
parent 7380149b07
commit 7791740de6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1075 deletions

View File

@ -110,4 +110,14 @@ $(SRC_ROOT)/layouts/grid \
$(SRC_ROOT)/layouts/flex \
$(SRC_ROOT)/osal
PRE_TARGET=$(PROJECT_ROOT)/lv_conf.h
include $(MKFILES_ROOT)/qtargets.mk
# Generate the lv_conf.h file from the template
$(PROJECT_ROOT)/lv_conf.h: $(PROJECT_ROOT)/../../lv_conf_template.h
cp $< $@
sed -i -e "s/#if 0/#if 1/" $@
sed -i -e "s/#define LV_COLOR_DEPTH 16/#define LV_COLOR_DEPTH 32/" $@
sed -i -e "s/#define LV_USE_QNX.*/#define LV_USE_QNX 1/" $@
sed -i -e "s/#define LV_QNX_BUF_COUNT.*/#define LV_QNX_BUF_COUNT 2/" $@

File diff suppressed because it is too large Load Diff