1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-02-04 07:13:00 +08:00

chore(conf): do not enable demos by default

This commit is contained in:
Gabor Kiss-Vamosi 2021-12-21 13:31:05 +01:00
parent 95d6307a97
commit 740d7400dd
2 changed files with 56 additions and 76 deletions

View File

@ -623,22 +623,22 @@
====================*/ ====================*/
/*Show some widget*/ /*Show some widget*/
#define LV_USE_DEMO_WIDGETS 1 #define LV_USE_DEMO_WIDGETS 0
#if LV_USE_DEMO_WIDGETS #if LV_USE_DEMO_WIDGETS
#define LV_DEMO_WIDGETS_SLIDESHOW 0 #define LV_DEMO_WIDGETS_SLIDESHOW 0
#endif #endif
/*Demonstrate the usage of encoder and keyboard*/ /*Demonstrate the usage of encoder and keyboard*/
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 1 #define LV_USE_DEMO_KEYPAD_AND_ENCODER 0
/*Benchmark your system*/ /*Benchmark your system*/
#define LV_USE_DEMO_BENCHMARK 1 #define LV_USE_DEMO_BENCHMARK 0
/*Stress test for LVGL*/ /*Stress test for LVGL*/
#define LV_USE_DEMO_STRESS 1 #define LV_USE_DEMO_STRESS 0
/*Music player demo*/ /*Music player demo*/
#define LV_USE_DEMO_MUSIC 1 #define LV_USE_DEMO_MUSIC 0
#if LV_USE_DEMO_MUSIC #if LV_USE_DEMO_MUSIC
# define LV_DEMO_MUSIC_SQUARE 0 # define LV_DEMO_MUSIC_SQUARE 0
# define LV_DEMO_MUSIC_LANDSCAPE 0 # define LV_DEMO_MUSIC_LANDSCAPE 0

View File

@ -1987,113 +1987,93 @@
/*Show some widget*/ /*Show some widget*/
#ifndef LV_USE_DEMO_WIDGETS #ifndef LV_USE_DEMO_WIDGETS
#ifdef _LV_KCONFIG_PRESENT
#ifdef CONFIG_LV_USE_DEMO_WIDGETS #ifdef CONFIG_LV_USE_DEMO_WIDGETS
#define LV_USE_DEMO_WIDGETS CONFIG_LV_USE_DEMO_WIDGETS #define LV_USE_DEMO_WIDGETS CONFIG_LV_USE_DEMO_WIDGETS
#else #else
#define LV_USE_DEMO_WIDGETS 0 #define LV_USE_DEMO_WIDGETS 0
#endif #endif
#else
#define LV_USE_DEMO_WIDGETS 1
#endif
#endif #endif
#if LV_USE_DEMO_WIDGETS #if LV_USE_DEMO_WIDGETS
#ifndef LV_DEMO_WIDGETS_SLIDESHOW #ifndef LV_DEMO_WIDGETS_SLIDESHOW
#ifdef CONFIG_LV_DEMO_WIDGETS_SLIDESHOW #ifdef CONFIG_LV_DEMO_WIDGETS_SLIDESHOW
#define LV_DEMO_WIDGETS_SLIDESHOW CONFIG_LV_DEMO_WIDGETS_SLIDESHOW #define LV_DEMO_WIDGETS_SLIDESHOW CONFIG_LV_DEMO_WIDGETS_SLIDESHOW
#else #else
#define LV_DEMO_WIDGETS_SLIDESHOW 0 #define LV_DEMO_WIDGETS_SLIDESHOW 0
#endif #endif
#endif #endif
#endif #endif
/*Demonstrate the usage of encoder and keyboard*/ /*Demonstrate the usage of encoder and keyboard*/
#ifndef LV_USE_DEMO_KEYPAD_AND_ENCODER #ifndef LV_USE_DEMO_KEYPAD_AND_ENCODER
#ifdef _LV_KCONFIG_PRESENT
#ifdef CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER #ifdef CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER
#define LV_USE_DEMO_KEYPAD_AND_ENCODER CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER #define LV_USE_DEMO_KEYPAD_AND_ENCODER CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER
#else #else
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 0 #define LV_USE_DEMO_KEYPAD_AND_ENCODER 0
#endif #endif
#else
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 1
#endif
#endif #endif
/*Benchmark your system*/ /*Benchmark your system*/
#ifndef LV_USE_DEMO_BENCHMARK #ifndef LV_USE_DEMO_BENCHMARK
#ifdef _LV_KCONFIG_PRESENT
#ifdef CONFIG_LV_USE_DEMO_BENCHMARK #ifdef CONFIG_LV_USE_DEMO_BENCHMARK
#define LV_USE_DEMO_BENCHMARK CONFIG_LV_USE_DEMO_BENCHMARK #define LV_USE_DEMO_BENCHMARK CONFIG_LV_USE_DEMO_BENCHMARK
#else #else
#define LV_USE_DEMO_BENCHMARK 0 #define LV_USE_DEMO_BENCHMARK 0
#endif #endif
#else
#define LV_USE_DEMO_BENCHMARK 1
#endif
#endif #endif
/*Stress test for LVGL*/ /*Stress test for LVGL*/
#ifndef LV_USE_DEMO_STRESS #ifndef LV_USE_DEMO_STRESS
#ifdef _LV_KCONFIG_PRESENT
#ifdef CONFIG_LV_USE_DEMO_STRESS #ifdef CONFIG_LV_USE_DEMO_STRESS
#define LV_USE_DEMO_STRESS CONFIG_LV_USE_DEMO_STRESS #define LV_USE_DEMO_STRESS CONFIG_LV_USE_DEMO_STRESS
#else #else
#define LV_USE_DEMO_STRESS 0 #define LV_USE_DEMO_STRESS 0
#endif #endif
#else
#define LV_USE_DEMO_STRESS 1
#endif
#endif #endif
/*Music player demo*/ /*Music player demo*/
#ifndef LV_USE_DEMO_MUSIC #ifndef LV_USE_DEMO_MUSIC
#ifdef _LV_KCONFIG_PRESENT
#ifdef CONFIG_LV_USE_DEMO_MUSIC #ifdef CONFIG_LV_USE_DEMO_MUSIC
#define LV_USE_DEMO_MUSIC CONFIG_LV_USE_DEMO_MUSIC #define LV_USE_DEMO_MUSIC CONFIG_LV_USE_DEMO_MUSIC
#else #else
#define LV_USE_DEMO_MUSIC 0 #define LV_USE_DEMO_MUSIC 0
#endif #endif
#else
#define LV_USE_DEMO_MUSIC 1
#endif
#endif #endif
#if LV_USE_DEMO_MUSIC #if LV_USE_DEMO_MUSIC
#ifndef LV_DEMO_MUSIC_SQUARE #ifndef LV_DEMO_MUSIC_SQUARE
#ifdef CONFIG_LV_DEMO_MUSIC_SQUARE #ifdef CONFIG_LV_DEMO_MUSIC_SQUARE
#define LV_DEMO_MUSIC_SQUARE CONFIG_LV_DEMO_MUSIC_SQUARE #define LV_DEMO_MUSIC_SQUARE CONFIG_LV_DEMO_MUSIC_SQUARE
#else #else
#define LV_DEMO_MUSIC_SQUARE 0 #define LV_DEMO_MUSIC_SQUARE 0
#endif #endif
#endif #endif
#ifndef LV_DEMO_MUSIC_LANDSCAPE #ifndef LV_DEMO_MUSIC_LANDSCAPE
#ifdef CONFIG_LV_DEMO_MUSIC_LANDSCAPE #ifdef CONFIG_LV_DEMO_MUSIC_LANDSCAPE
#define LV_DEMO_MUSIC_LANDSCAPE CONFIG_LV_DEMO_MUSIC_LANDSCAPE #define LV_DEMO_MUSIC_LANDSCAPE CONFIG_LV_DEMO_MUSIC_LANDSCAPE
#else #else
#define LV_DEMO_MUSIC_LANDSCAPE 0 #define LV_DEMO_MUSIC_LANDSCAPE 0
#endif #endif
#endif #endif
#ifndef LV_DEMO_MUSIC_ROUND #ifndef LV_DEMO_MUSIC_ROUND
#ifdef CONFIG_LV_DEMO_MUSIC_ROUND #ifdef CONFIG_LV_DEMO_MUSIC_ROUND
#define LV_DEMO_MUSIC_ROUND CONFIG_LV_DEMO_MUSIC_ROUND #define LV_DEMO_MUSIC_ROUND CONFIG_LV_DEMO_MUSIC_ROUND
#else #else
#define LV_DEMO_MUSIC_ROUND 0 #define LV_DEMO_MUSIC_ROUND 0
#endif #endif
#endif #endif
#ifndef LV_DEMO_MUSIC_LARGE #ifndef LV_DEMO_MUSIC_LARGE
#ifdef CONFIG_LV_DEMO_MUSIC_LARGE #ifdef CONFIG_LV_DEMO_MUSIC_LARGE
#define LV_DEMO_MUSIC_LARGE CONFIG_LV_DEMO_MUSIC_LARGE #define LV_DEMO_MUSIC_LARGE CONFIG_LV_DEMO_MUSIC_LARGE
#else #else
#define LV_DEMO_MUSIC_LARGE 0 #define LV_DEMO_MUSIC_LARGE 0
#endif #endif
#endif #endif
#ifndef LV_DEMO_MUSIC_AUTO_PLAY #ifndef LV_DEMO_MUSIC_AUTO_PLAY
#ifdef CONFIG_LV_DEMO_MUSIC_AUTO_PLAY #ifdef CONFIG_LV_DEMO_MUSIC_AUTO_PLAY
#define LV_DEMO_MUSIC_AUTO_PLAY CONFIG_LV_DEMO_MUSIC_AUTO_PLAY #define LV_DEMO_MUSIC_AUTO_PLAY CONFIG_LV_DEMO_MUSIC_AUTO_PLAY
#else #else
#define LV_DEMO_MUSIC_AUTO_PLAY 0 #define LV_DEMO_MUSIC_AUTO_PLAY 0
#endif #endif
#endif #endif
#endif #endif