blob: 91cd9c50611498ec09c632c7d5bf763c4b4ab865 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
/**
* @file lv_test_conf.h
*
*/
#ifndef LV_TEST_CONF_H
#define LV_TEST_CONF_H
#define LV_CONF_SUPPRESS_DEFINE_CHECK 1
#ifdef __cplusplus
extern "C" {
#endif
/***********************
* PLATFORM CONFIGS
***********************/
#ifdef LVGL_CI_USING_SYS_HEAP
#define LV_USE_STDLIB_MALLOC LV_STDLIB_CLIB
#define LV_USE_STDLIB_STRING LV_STDLIB_CLIB
#define LV_USE_STDLIB_SPRINTF LV_STDLIB_CLIB
#define LV_USE_OS LV_OS_PTHREAD
#define LV_OBJ_STYLE_CACHE 0
#define LV_BIN_DECODER_RAM_LOAD 1 /* Run test with bin image loaded to RAM */
#endif
#ifdef LVGL_CI_USING_DEF_HEAP
#define LV_USE_STDLIB_MALLOC LV_STDLIB_BUILTIN
#define LV_USE_STDLIB_STRING LV_STDLIB_BUILTIN
#define LV_USE_STDLIB_SPRINTF LV_STDLIB_BUILTIN
#define LV_OBJ_STYLE_CACHE 1
#define LV_BIN_DECODER_RAM_LOAD 0
#endif
#ifdef MICROPYTHON
#define LV_USE_BUILTIN_MALLOC 0
#define LV_USE_BUILTIN_MEMCPY 1
#define LV_USE_BUILTIN_SNPRINTF 1
#define LV_STDLIB_INCLUDE "include/lv_mp_mem_custom_include.h"
#define LV_MALLOC m_malloc
#define LV_REALLOC m_realloc
#define LV_FREE m_free
#define LV_MEMSET lv_memset_builtin
#define LV_MEMCPY lv_memcpy_builtin
#define LV_SNPRINTF lv_snprintf_builtin
#define LV_VSNPRINTF lv_vsnprintf_builtin
#define LV_STRLEN lv_strlen_builtin
#define LV_STRNCPY lv_strncpy_builtin
#define LV_ENABLE_GC 1
#define LV_GC_INCLUDE "py/mpstate.h"
#define LV_GC_ROOT(x) MP_STATE_PORT(x)
#endif
#ifndef __ASSEMBLY__
void lv_test_assert_fail(void);
#define LV_ASSERT_HANDLER lv_test_assert_fail();
typedef void * lv_user_data_t;
#endif
/***********************
* TEST CONFIGS
***********************/
#if !(defined(LV_TEST_OPTION)) || LV_TEST_OPTION == 5
#define LV_COLOR_DEPTH 32
#define LV_DPI_DEF 160
#include "lv_test_conf_full.h"
#elif LV_TEST_OPTION == 6
#define LV_COLOR_DEPTH 32
#define LV_DPI_DEF 160
#define LV_USE_THORVG_INTERNAL 1
/* Use VG-Lite GPU. */
#define LV_USE_DRAW_VG_LITE 1
/* Enable VG-Lite custom external 'gpu_init()' function */
#define LV_VG_LITE_USE_GPU_INIT 1
/* Enable VG-Lite assert. */
#define LV_VG_LITE_USE_ASSERT 1
/* Simulate VG-Lite hardware using ThorVG */
#define LV_USE_VG_LITE_THORVG 1
/* Enable performance monitor log mode for build test */
#define LV_USE_PERF_MONITOR_LOG_MODE 1
#include "lv_test_conf_full.h"
#elif LV_TEST_OPTION == 4
#define LV_COLOR_DEPTH 24
#define LV_DPI_DEF 120
#elif LV_TEST_OPTION == 3
#define LV_COLOR_DEPTH 16
#define LV_DPI_DEF 90
#include "lv_test_conf_minimal.h"
#elif LV_TEST_OPTION == 2
#define LV_COLOR_DEPTH 8
#define LV_DPI_DEF 60
#include "lv_test_conf_minimal.h"
#elif LV_TEST_OPTION == 1
#define LV_COLOR_DEPTH 1
#define LV_DPI_DEF 30
#define LV_DRAW_SW_COMPLEX 0
#include "lv_test_conf_minimal.h"
#endif
#if defined(LVGL_CI_USING_SYS_HEAP) || defined(LVGL_CI_USING_DEF_HEAP)
#undef LV_LOG_PRINTF
/*Use a large value be sure any issues will cause crash*/
#define LV_DRAW_BUF_STRIDE_ALIGN 64
/*Use non power of 2 to avoid the case when `malloc` returns aligned pointer by default, and use a large value be sure any issues will cause crash*/
#define LV_DRAW_BUF_ALIGN 852
/*For screenshots*/
#undef LV_USE_PERF_MONITOR
#undef LV_USE_MEM_MONITOR
#undef LV_DPI_DEF
#define LV_DPI_DEF 130
#endif
#if defined(LVGL_CI_USING_SYS_HEAP)
#undef LV_USE_FLOAT
#endif
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /*LV_TEST_CONF_H*/
|