Skip to content

Commit

Permalink
feat(env/qnx): generate lv_conf.h at build time (lvgl#6596)
Browse files Browse the repository at this point in the history
Co-authored-by: Elad Lahav <[email protected]>
  • Loading branch information
elahav and Elad Lahav authored Aug 1, 2024
1 parent 7380149 commit 7791740
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1,075 deletions.
10 changes: 10 additions & 0 deletions env_support/qnx/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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/" $@
Loading

0 comments on commit 7791740

Please sign in to comment.