add dependecy check to some object types
This commit is contained in:
@@ -9,6 +9,15 @@
|
||||
#include "../../lv_conf.h"
|
||||
#if USE_LV_IMG != 0
|
||||
|
||||
/*Testing of dependencies*/
|
||||
#if USE_LV_LABEL == 0
|
||||
#error "lv_img: lv_label is required. Enable it in lv_conf.h (USE_LV_LABEL 1) "
|
||||
#endif
|
||||
|
||||
#if USE_LV_FILESYSTEM == 0
|
||||
#error "lv_img: lv_fs is required. Enable it in lv_conf.h (USE_LV_FILESYSTEM 1) "
|
||||
#endif
|
||||
|
||||
#include "lv_img.h"
|
||||
#include "../lv_draw/lv_draw.h"
|
||||
#include "../lv_themes/lv_theme.h"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -16,6 +16,11 @@ extern "C" {
|
||||
#include "../../lv_conf.h"
|
||||
#if USE_LV_ROLLER != 0
|
||||
|
||||
/*Testing of dependencies*/
|
||||
#if USE_LV_DDLIST == 0
|
||||
#error "lv_roller: lv_ddlist is required. Enable it in lv_conf.h (USE_LV_DDLIST 1) "
|
||||
#endif
|
||||
|
||||
#include "../lv_core/lv_obj.h"
|
||||
#include "lv_ddlist.h"
|
||||
|
||||
|
||||
@@ -16,6 +16,11 @@ extern "C" {
|
||||
#include "../../lv_conf.h"
|
||||
#if USE_LV_SLIDER != 0
|
||||
|
||||
/*Testing of dependencies*/
|
||||
#if USE_LV_BAR == 0
|
||||
#error "lv_slider: lv_bar is required. Enable it in lv_conf.h (USE_LV_BAR 1) "
|
||||
#endif
|
||||
|
||||
#include "../lv_core/lv_obj.h"
|
||||
#include "lv_bar.h"
|
||||
|
||||
|
||||
@@ -9,6 +9,11 @@
|
||||
#include "../../lv_conf.h"
|
||||
#if USE_LV_SW != 0
|
||||
|
||||
/*Testing of dependencies*/
|
||||
#if USE_LV_SLIDER == 0
|
||||
#error "lv_sw: lv_slider is required. Enable it in lv_conf.h (USE_LV_SLIDER 1) "
|
||||
#endif
|
||||
|
||||
#include "lv_sw.h"
|
||||
#include "../lv_themes/lv_theme.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user