LVGL Berry remove constants

This commit is contained in:
Stephan Hadinger 2021-10-15 21:26:33 +02:00
parent 06fc8d2267
commit 560e676be3
3 changed files with 0 additions and 123 deletions

View File

@ -126,8 +126,6 @@ extern void be_load_driver_audio_lib(bvm *vm);
#ifdef USE_LVGL #ifdef USE_LVGL
extern void be_load_lv_color_class(bvm *vm); extern void be_load_lv_color_class(bvm *vm);
extern void be_load_lv_font_class(bvm *vm); extern void be_load_lv_font_class(bvm *vm);
extern void be_load_lv_all_lib(bvm *vm);
extern void be_load_ctypes_lvgl_definitions_lib(bvm *vm);
extern void be_load_LVGL_glob_class(bvm *vm); extern void be_load_LVGL_glob_class(bvm *vm);
// custom widgets // custom widgets
extern void be_load_lv_signal_bars_class(bvm *vm); extern void be_load_lv_signal_bars_class(bvm *vm);
@ -179,8 +177,6 @@ BERRY_API void be_load_custom_libs(bvm *vm)
be_load_lv_color_class(vm); be_load_lv_color_class(vm);
be_load_lv_font_class(vm); be_load_lv_font_class(vm);
be_load_lv_all_lib(vm);
be_load_ctypes_lvgl_definitions_lib(vm);
be_load_LVGL_glob_class(vm); be_load_LVGL_glob_class(vm);
// custom widgets // custom widgets
be_load_lv_signal_bars_class(vm); be_load_lv_signal_bars_class(vm);

View File

@ -1046,109 +1046,6 @@ const size_t lv_classes_size = sizeof(lv_classes) / sizeof(lv_classes[0]);
int lvbe_font_create(bvm *vm) { return be_call_c_func(vm, NULL, "+lv_group", ""); } int lvbe_font_create(bvm *vm) { return be_call_c_func(vm, NULL, "+lv_group", ""); }
extern void be_load_lv_style_class(bvm *vm);
extern void be_load_lv_font_class(bvm *vm);
extern void be_load_lv_color_class(bvm *vm);
extern void be_load_lv_img_class(bvm *vm);
extern void be_load_lv_obj_class(bvm *vm);
extern void be_load_lv_group_class(bvm *vm);
extern void be_load_lv_indev_class(bvm *vm);
extern void be_load_lv_chart_class(bvm *vm);
extern void be_load_lv_colorwheel_class(bvm *vm);
extern void be_load_lv_imgbtn_class(bvm *vm);
extern void be_load_lv_led_class(bvm *vm);
extern void be_load_lv_meter_class(bvm *vm);
extern void be_load_lv_msgbox_class(bvm *vm);
extern void be_load_lv_spinbox_class(bvm *vm);
extern void be_load_lv_arc_class(bvm *vm);
extern void be_load_lv_bar_class(bvm *vm);
extern void be_load_lv_btn_class(bvm *vm);
extern void be_load_lv_btnmatrix_class(bvm *vm);
extern void be_load_lv_canvas_class(bvm *vm);
extern void be_load_lv_checkbox_class(bvm *vm);
extern void be_load_lv_dropdown_class(bvm *vm);
extern void be_load_lv_label_class(bvm *vm);
extern void be_load_lv_line_class(bvm *vm);
extern void be_load_lv_roller_class(bvm *vm);
extern void be_load_lv_slider_class(bvm *vm);
extern void be_load_lv_switch_class(bvm *vm);
extern void be_load_lv_table_class(bvm *vm);
extern void be_load_lv_textarea_class(bvm *vm);
void be_load_lv_all_lib(bvm *vm) {
be_load_lv_style_class(vm);
be_load_lv_font_class(vm);
be_load_lv_color_class(vm);
#ifdef BE_LV_WIDGET_IMG
be_load_lv_img_class(vm);
#endif
be_load_lv_obj_class(vm);
be_load_lv_group_class(vm);
be_load_lv_indev_class(vm);
#ifdef BE_LV_WIDGET_CHART
be_load_lv_chart_class(vm);
#endif
#ifdef BE_LV_WIDGET_COLORWHEEL
be_load_lv_colorwheel_class(vm);
#endif
#ifdef BE_LV_WIDGET_IMGBTN
be_load_lv_imgbtn_class(vm);
#endif
#ifdef BE_LV_WIDGET_LED
be_load_lv_led_class(vm);
#endif
#ifdef BE_LV_WIDGET_METER
be_load_lv_meter_class(vm);
#endif
#ifdef BE_LV_WIDGET_MSGBOX
be_load_lv_msgbox_class(vm);
#endif
#ifdef BE_LV_WIDGET_SPINBOX
be_load_lv_spinbox_class(vm);
#endif
#ifdef BE_LV_WIDGET_ARC
be_load_lv_arc_class(vm);
#endif
#ifdef BE_LV_WIDGET_BAR
be_load_lv_bar_class(vm);
#endif
#ifdef BE_LV_WIDGET_BTN
be_load_lv_btn_class(vm);
#endif
#ifdef BE_LV_WIDGET_BTNMATRIX
be_load_lv_btnmatrix_class(vm);
#endif
#ifdef BE_LV_WIDGET_CANVAS
be_load_lv_canvas_class(vm);
#endif
#ifdef BE_LV_WIDGET_CHECKBOX
be_load_lv_checkbox_class(vm);
#endif
#ifdef BE_LV_WIDGET_DROPDOWN
be_load_lv_dropdown_class(vm);
#endif
#ifdef BE_LV_WIDGET_LABEL
be_load_lv_label_class(vm);
#endif
#ifdef BE_LV_WIDGET_LINE
be_load_lv_line_class(vm);
#endif
#ifdef BE_LV_WIDGET_ROLLER
be_load_lv_roller_class(vm);
#endif
#ifdef BE_LV_WIDGET_SLIDER
be_load_lv_slider_class(vm);
#endif
#ifdef BE_LV_WIDGET_SWITCH
be_load_lv_switch_class(vm);
#endif
#ifdef BE_LV_WIDGET_TABLE
be_load_lv_table_class(vm);
#endif
#ifdef BE_LV_WIDGET_TEXTAREA
be_load_lv_textarea_class(vm);
#endif
};
#ifdef __cplusplus #ifdef __cplusplus
} /* extern "C" */ } /* extern "C" */
#endif #endif

View File

@ -386,23 +386,7 @@ print("""
int lvbe_font_create(bvm *vm) { return be_call_c_func(vm, NULL, "+lv_group", ""); } int lvbe_font_create(bvm *vm) { return be_call_c_func(vm, NULL, "+lv_group", ""); }
""") """)
print() print()
for subtype in lv:
print(f" extern void be_load_lv_{subtype}_class(bvm *vm);")
print()
print(f" void be_load_lv_all_lib(bvm *vm) {{")
for subtype in lv:
define = f"BE_LV_WIDGET_" + subtype.upper()
if subtype in lv_widgets:
print(f"#ifdef {define}")
print(f" be_load_lv_{subtype}_class(vm);")
if subtype in lv_widgets:
print(f"#endif")
print(f" }};")
print("#ifdef __cplusplus") print("#ifdef __cplusplus")
print("} /* extern \"C\" */") print("} /* extern \"C\" */")
print("#endif") print("#endif")