mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(arduino): allow including lvgl_private.h even if the examles and demos are in the src folder (#7366)
This commit is contained in:
parent
51aadcd87d
commit
8fbf72a1dc
@ -37,7 +37,7 @@
|
||||
#include "../../src/core/lv_global.h"
|
||||
|
||||
#if LV_USE_PERF_MONITOR
|
||||
#include "../../src/display/lv_display_private.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#endif
|
||||
|
||||
/**********************
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "lv_demo_ebike_private.h"
|
||||
#include "lv_demo_ebike_home.h"
|
||||
#include "translations/lv_i18n.h"
|
||||
#include "../../src/lvgl_private.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "lv_demo_ebike.h"
|
||||
#if LV_USE_DEMO_EBIKE
|
||||
|
||||
#include "../../src/lvgl_private.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "translations/lv_i18n.h"
|
||||
#include "lv_demo_ebike_stats.h"
|
||||
#include "lv_demo_ebike_private.h"
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "lv_demo_music_main.h"
|
||||
#include "lv_demo_music_list.h"
|
||||
#if LV_DEMO_MUSIC_AUTO_PLAY && LV_USE_PERF_MONITOR
|
||||
#include "../../src/display/lv_display_private.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#endif
|
||||
|
||||
/*********************
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "assets/spectrum_1.h"
|
||||
#include "assets/spectrum_2.h"
|
||||
#include "assets/spectrum_3.h"
|
||||
#include "../../src/lvgl_private.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
@ -7,7 +7,7 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include "lv_demo_widgets.h"
|
||||
#include "../../src/lvgl_private.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#if LV_USE_DEMO_WIDGETS
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "../../src/themes/lv_theme_private.h"
|
||||
#include "../lv_examples.h"
|
||||
#if LV_BUILD_EXAMPLES && LV_USE_IMAGE
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
static lv_style_t style_btn;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "../../lv_examples.h"
|
||||
#include "../../../src/lvgl_private.h"
|
||||
|
||||
#if LV_USE_CHART && LV_DRAW_SW_COMPLEX && LV_BUILD_EXAMPLES
|
||||
#include "../../../lvgl_private.h"
|
||||
|
||||
static void hook_division_lines(lv_event_t * e);
|
||||
static void add_faded_area(lv_event_t * e);
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_SCALE && LV_BUILD_EXAMPLES
|
||||
|
||||
#include "../../../src/lvgl_private.h" //To expose the fields of lv_draw_task_t
|
||||
#include "../../../lvgl_private.h" /*To expose the fields of lv_draw_task_t*/
|
||||
|
||||
static void draw_event_cb(lv_event_t * e)
|
||||
{
|
||||
|
125
lvgl_private.h
Normal file
125
lvgl_private.h
Normal file
@ -0,0 +1,125 @@
|
||||
/**
|
||||
* @file lvgl_private.h
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LVGL_PRIVATE_H
|
||||
#define LVGL_PRIVATE_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include "src/core/lv_global.h"
|
||||
|
||||
#include "src/display/lv_display_private.h"
|
||||
#include "src/indev/lv_indev_private.h"
|
||||
#include "src/misc/lv_text_private.h"
|
||||
#include "src/misc/cache/lv_cache_entry_private.h"
|
||||
#include "src/misc/cache/lv_cache_private.h"
|
||||
#include "src/layouts/lv_layout_private.h"
|
||||
#include "src/stdlib/lv_mem_private.h"
|
||||
#include "src/others/file_explorer/lv_file_explorer_private.h"
|
||||
#include "src/others/sysmon/lv_sysmon_private.h"
|
||||
#include "src/others/monkey/lv_monkey_private.h"
|
||||
#include "src/others/ime/lv_ime_pinyin_private.h"
|
||||
#include "src/others/fragment/lv_fragment_private.h"
|
||||
#include "src/others/observer/lv_observer_private.h"
|
||||
#include "src/libs/qrcode/lv_qrcode_private.h"
|
||||
#include "src/libs/barcode/lv_barcode_private.h"
|
||||
#include "src/libs/gif/lv_gif_private.h"
|
||||
#include "src/draw/lv_draw_triangle_private.h"
|
||||
#include "src/draw/lv_draw_private.h"
|
||||
#include "src/draw/lv_draw_rect_private.h"
|
||||
#include "src/draw/lv_draw_image_private.h"
|
||||
#include "src/draw/lv_image_decoder_private.h"
|
||||
#include "src/draw/lv_draw_label_private.h"
|
||||
#include "src/draw/lv_draw_vector_private.h"
|
||||
#include "src/draw/lv_draw_buf_private.h"
|
||||
#include "src/draw/lv_draw_mask_private.h"
|
||||
#include "src/draw/sw/lv_draw_sw_gradient_private.h"
|
||||
#include "src/draw/sw/lv_draw_sw_private.h"
|
||||
#include "src/draw/sw/lv_draw_sw_mask_private.h"
|
||||
#include "src/draw/sw/blend/lv_draw_sw_blend_private.h"
|
||||
#include "src/drivers/libinput/lv_xkb_private.h"
|
||||
#include "src/drivers/libinput/lv_libinput_private.h"
|
||||
#include "src/font/lv_font_fmt_txt_private.h"
|
||||
#include "src/themes/lv_theme_private.h"
|
||||
#include "src/core/lv_refr_private.h"
|
||||
#include "src/core/lv_obj_style_private.h"
|
||||
#include "src/core/lv_obj_private.h"
|
||||
#include "src/core/lv_obj_scroll_private.h"
|
||||
#include "src/core/lv_obj_draw_private.h"
|
||||
#include "src/core/lv_obj_class_private.h"
|
||||
#include "src/core/lv_group_private.h"
|
||||
#include "src/core/lv_obj_event_private.h"
|
||||
#include "src/misc/lv_timer_private.h"
|
||||
#include "src/misc/lv_area_private.h"
|
||||
#include "src/misc/lv_fs_private.h"
|
||||
#include "src/misc/lv_profiler_builtin_private.h"
|
||||
#include "src/misc/lv_event_private.h"
|
||||
#include "src/misc/lv_bidi_private.h"
|
||||
#include "src/misc/lv_rb_private.h"
|
||||
#include "src/misc/lv_style_private.h"
|
||||
#include "src/misc/lv_color_op_private.h"
|
||||
#include "src/misc/lv_anim_private.h"
|
||||
#include "src/widgets/msgbox/lv_msgbox_private.h"
|
||||
#include "src/widgets/buttonmatrix/lv_buttonmatrix_private.h"
|
||||
#include "src/widgets/slider/lv_slider_private.h"
|
||||
#include "src/widgets/switch/lv_switch_private.h"
|
||||
#include "src/widgets/calendar/lv_calendar_private.h"
|
||||
#include "src/widgets/imagebutton/lv_imagebutton_private.h"
|
||||
#include "src/widgets/bar/lv_bar_private.h"
|
||||
#include "src/widgets/image/lv_image_private.h"
|
||||
#include "src/widgets/textarea/lv_textarea_private.h"
|
||||
#include "src/widgets/table/lv_table_private.h"
|
||||
#include "src/widgets/checkbox/lv_checkbox_private.h"
|
||||
#include "src/widgets/roller/lv_roller_private.h"
|
||||
#include "src/widgets/win/lv_win_private.h"
|
||||
#include "src/widgets/keyboard/lv_keyboard_private.h"
|
||||
#include "src/widgets/line/lv_line_private.h"
|
||||
#include "src/widgets/animimage/lv_animimage_private.h"
|
||||
#include "src/widgets/dropdown/lv_dropdown_private.h"
|
||||
#include "src/widgets/menu/lv_menu_private.h"
|
||||
#include "src/widgets/chart/lv_chart_private.h"
|
||||
#include "src/widgets/button/lv_button_private.h"
|
||||
#include "src/widgets/scale/lv_scale_private.h"
|
||||
#include "src/widgets/led/lv_led_private.h"
|
||||
#include "src/widgets/arc/lv_arc_private.h"
|
||||
#include "src/widgets/tileview/lv_tileview_private.h"
|
||||
#include "src/widgets/spinbox/lv_spinbox_private.h"
|
||||
#include "src/widgets/span/lv_span_private.h"
|
||||
#include "src/widgets/label/lv_label_private.h"
|
||||
#include "src/widgets/canvas/lv_canvas_private.h"
|
||||
#include "src/widgets/tabview/lv_tabview_private.h"
|
||||
#include "src/tick/lv_tick_private.h"
|
||||
#include "src/stdlib/builtin/lv_tlsf_private.h"
|
||||
#include "src/libs/rlottie/lv_rlottie_private.h"
|
||||
#include "src/libs/ffmpeg/lv_ffmpeg_private.h"
|
||||
#include "src/widgets/lottie/lv_lottie_private.h"
|
||||
#include "src/osal/lv_os_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
*********************/
|
||||
|
||||
/**********************
|
||||
* TYPEDEFS
|
||||
**********************/
|
||||
|
||||
/**********************
|
||||
* GLOBAL PROTOTYPES
|
||||
**********************/
|
||||
|
||||
/**********************
|
||||
* MACROS
|
||||
**********************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /*extern "C"*/
|
||||
#endif
|
||||
|
||||
#endif /*LVGL_PRIVATE_H*/
|
@ -7,7 +7,7 @@
|
||||
*********************/
|
||||
#include "lv_nuttx_libuv.h"
|
||||
|
||||
#include "../../../lvgl.h"
|
||||
#include "../../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#if LV_USE_NUTTX
|
||||
|
@ -1,10 +1,10 @@
|
||||
/**
|
||||
* @file lvgl_private.h
|
||||
*
|
||||
* This file exists only to be compatible with Arduino's library structure
|
||||
*/
|
||||
|
||||
#ifndef LVGL_PRIVATE_H
|
||||
#define LVGL_PRIVATE_H
|
||||
#ifndef LVGL_PRIVATE_SRC_H
|
||||
#define LVGL_PRIVATE_SRC_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -13,94 +13,7 @@ extern "C" {
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include "core/lv_global.h"
|
||||
|
||||
#include "display/lv_display_private.h"
|
||||
#include "indev/lv_indev_private.h"
|
||||
#include "misc/lv_text_private.h"
|
||||
#include "misc/cache/lv_cache_entry_private.h"
|
||||
#include "misc/cache/lv_cache_private.h"
|
||||
#include "layouts/lv_layout_private.h"
|
||||
#include "stdlib/lv_mem_private.h"
|
||||
#include "others/file_explorer/lv_file_explorer_private.h"
|
||||
#include "others/sysmon/lv_sysmon_private.h"
|
||||
#include "others/monkey/lv_monkey_private.h"
|
||||
#include "others/ime/lv_ime_pinyin_private.h"
|
||||
#include "others/fragment/lv_fragment_private.h"
|
||||
#include "others/observer/lv_observer_private.h"
|
||||
#include "libs/qrcode/lv_qrcode_private.h"
|
||||
#include "libs/barcode/lv_barcode_private.h"
|
||||
#include "libs/gif/lv_gif_private.h"
|
||||
#include "draw/lv_draw_triangle_private.h"
|
||||
#include "draw/lv_draw_private.h"
|
||||
#include "draw/lv_draw_rect_private.h"
|
||||
#include "draw/lv_draw_image_private.h"
|
||||
#include "draw/lv_image_decoder_private.h"
|
||||
#include "draw/lv_draw_label_private.h"
|
||||
#include "draw/lv_draw_vector_private.h"
|
||||
#include "draw/lv_draw_buf_private.h"
|
||||
#include "draw/lv_draw_mask_private.h"
|
||||
#include "draw/sw/lv_draw_sw_gradient_private.h"
|
||||
#include "draw/sw/lv_draw_sw_private.h"
|
||||
#include "draw/sw/lv_draw_sw_mask_private.h"
|
||||
#include "draw/sw/blend/lv_draw_sw_blend_private.h"
|
||||
#include "drivers/libinput/lv_xkb_private.h"
|
||||
#include "drivers/libinput/lv_libinput_private.h"
|
||||
#include "font/lv_font_fmt_txt_private.h"
|
||||
#include "themes/lv_theme_private.h"
|
||||
#include "core/lv_refr_private.h"
|
||||
#include "core/lv_obj_style_private.h"
|
||||
#include "core/lv_obj_private.h"
|
||||
#include "core/lv_obj_scroll_private.h"
|
||||
#include "core/lv_obj_draw_private.h"
|
||||
#include "core/lv_obj_class_private.h"
|
||||
#include "core/lv_group_private.h"
|
||||
#include "core/lv_obj_event_private.h"
|
||||
#include "misc/lv_timer_private.h"
|
||||
#include "misc/lv_area_private.h"
|
||||
#include "misc/lv_fs_private.h"
|
||||
#include "misc/lv_profiler_builtin_private.h"
|
||||
#include "misc/lv_event_private.h"
|
||||
#include "misc/lv_bidi_private.h"
|
||||
#include "misc/lv_rb_private.h"
|
||||
#include "misc/lv_style_private.h"
|
||||
#include "misc/lv_color_op_private.h"
|
||||
#include "misc/lv_anim_private.h"
|
||||
#include "widgets/msgbox/lv_msgbox_private.h"
|
||||
#include "widgets/buttonmatrix/lv_buttonmatrix_private.h"
|
||||
#include "widgets/slider/lv_slider_private.h"
|
||||
#include "widgets/switch/lv_switch_private.h"
|
||||
#include "widgets/calendar/lv_calendar_private.h"
|
||||
#include "widgets/imagebutton/lv_imagebutton_private.h"
|
||||
#include "widgets/bar/lv_bar_private.h"
|
||||
#include "widgets/image/lv_image_private.h"
|
||||
#include "widgets/textarea/lv_textarea_private.h"
|
||||
#include "widgets/table/lv_table_private.h"
|
||||
#include "widgets/checkbox/lv_checkbox_private.h"
|
||||
#include "widgets/roller/lv_roller_private.h"
|
||||
#include "widgets/win/lv_win_private.h"
|
||||
#include "widgets/keyboard/lv_keyboard_private.h"
|
||||
#include "widgets/line/lv_line_private.h"
|
||||
#include "widgets/animimage/lv_animimage_private.h"
|
||||
#include "widgets/dropdown/lv_dropdown_private.h"
|
||||
#include "widgets/menu/lv_menu_private.h"
|
||||
#include "widgets/chart/lv_chart_private.h"
|
||||
#include "widgets/button/lv_button_private.h"
|
||||
#include "widgets/scale/lv_scale_private.h"
|
||||
#include "widgets/led/lv_led_private.h"
|
||||
#include "widgets/arc/lv_arc_private.h"
|
||||
#include "widgets/tileview/lv_tileview_private.h"
|
||||
#include "widgets/spinbox/lv_spinbox_private.h"
|
||||
#include "widgets/span/lv_span_private.h"
|
||||
#include "widgets/label/lv_label_private.h"
|
||||
#include "widgets/canvas/lv_canvas_private.h"
|
||||
#include "widgets/tabview/lv_tabview_private.h"
|
||||
#include "tick/lv_tick_private.h"
|
||||
#include "stdlib/builtin/lv_tlsf_private.h"
|
||||
#include "libs/rlottie/lv_rlottie_private.h"
|
||||
#include "libs/ffmpeg/lv_ffmpeg_private.h"
|
||||
#include "widgets/lottie/lv_lottie_private.h"
|
||||
#include "osal/lv_os_private.h"
|
||||
#include "../lvgl_private.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
@ -122,4 +35,4 @@ extern "C" {
|
||||
} /*extern "C"*/
|
||||
#endif
|
||||
|
||||
#endif /*LVGL_PRIVATE_H*/
|
||||
#endif /* LVGL_PRIVATE_SRC_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user