Fix lvgl-sys not respecting DEP_LV_CONFIG_PATH #45

Merged
Spadi0 merged 1 commit from fix-lv-conf-include into master 2021-05-19 12:24:01 +00:00
Spadi0 commented 2021-05-19 09:01:53 +00:00 (Migrated from github.com)

Previously, the vendored lv_conf.h file was always before the DEP_LV_CONFIG_PATH environment variable in the include path (lvgl-sys/vendor), meaning that it was always used. This caused the environment variable to always be ignored. This PR moves the vendored config file to its own directory (lvgl-sys/vendor/include/lv_conf.h) so that the DEP_LV_CONFIG_PATH environment variable is properly used.

This also requires changing the basic_sanity_check test to check against the horizontal and vertical resolution defined in the config file, not against a hard-coded value of 240.

Previously, the vendored `lv_conf.h` file was always before the `DEP_LV_CONFIG_PATH` environment variable in the include path (`lvgl-sys/vendor`), meaning that it was always used. This caused the environment variable to always be ignored. This PR moves the vendored config file to its own directory (`lvgl-sys/vendor/include/lv_conf.h`) so that the `DEP_LV_CONFIG_PATH` environment variable is properly used. This also requires changing the `basic_sanity_check` test to check against the horizontal and vertical resolution defined in the config file, not against a hard-coded value of `240`.
rafaelcaricio (Migrated from github.com) approved these changes 2021-05-19 12:05:55 +00:00
rafaelcaricio (Migrated from github.com) left a comment

Thank you!!!! 😊

Thank you!!!! 😊
Sign in to join this conversation.
No description provided.