mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
feat(env/qnx): generate lv_conf.h at build time (#6596)
Co-authored-by: Elad Lahav <elahav@qnx.com>
This commit is contained in:
parent
7380149b07
commit
7791740de6
@ -110,4 +110,14 @@ $(SRC_ROOT)/layouts/grid \
|
|||||||
$(SRC_ROOT)/layouts/flex \
|
$(SRC_ROOT)/layouts/flex \
|
||||||
$(SRC_ROOT)/osal
|
$(SRC_ROOT)/osal
|
||||||
|
|
||||||
|
PRE_TARGET=$(PROJECT_ROOT)/lv_conf.h
|
||||||
|
|
||||||
include $(MKFILES_ROOT)/qtargets.mk
|
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
Loading…
x
Reference in New Issue
Block a user