add dependecy check to some object types

This commit is contained in:
Gabor Kiss-Vamosi
2018-01-19 15:40:22 +01:00
parent 5db75661cf
commit 4ecee47caa
8 changed files with 42 additions and 7 deletions

View File

@@ -16,6 +16,15 @@ extern "C" {
#include "../../lv_conf.h"
#if USE_LV_KB != 0
/*Testing of dependencies*/
#if USE_LV_BTNM == 0
#error "lv_kb: lv_btnm is required. Enable it in lv_conf.h (USE_LV_BTNM 1) "
#endif
#if USE_LV_TA == 0
#error "lv_kb: lv_ta is required. Enable it in lv_conf.h (USE_LV_TA 1) "
#endif
#include "../lv_core/lv_obj.h"
#include "lv_btnm.h"