mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
chore(conf): do not enable demos by default
This commit is contained in:
parent
95d6307a97
commit
740d7400dd
@ -623,22 +623,22 @@
|
||||
====================*/
|
||||
|
||||
/*Show some widget*/
|
||||
#define LV_USE_DEMO_WIDGETS 1
|
||||
#define LV_USE_DEMO_WIDGETS 0
|
||||
#if LV_USE_DEMO_WIDGETS
|
||||
#define LV_DEMO_WIDGETS_SLIDESHOW 0
|
||||
#endif
|
||||
|
||||
/*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*/
|
||||
#define LV_USE_DEMO_BENCHMARK 1
|
||||
#define LV_USE_DEMO_BENCHMARK 0
|
||||
|
||||
/*Stress test for LVGL*/
|
||||
#define LV_USE_DEMO_STRESS 1
|
||||
#define LV_USE_DEMO_STRESS 0
|
||||
|
||||
/*Music player demo*/
|
||||
#define LV_USE_DEMO_MUSIC 1
|
||||
#define LV_USE_DEMO_MUSIC 0
|
||||
#if LV_USE_DEMO_MUSIC
|
||||
# define LV_DEMO_MUSIC_SQUARE 0
|
||||
# define LV_DEMO_MUSIC_LANDSCAPE 0
|
||||
|
@ -1987,114 +1987,94 @@
|
||||
|
||||
/*Show some widget*/
|
||||
#ifndef LV_USE_DEMO_WIDGETS
|
||||
#ifdef _LV_KCONFIG_PRESENT
|
||||
#ifdef CONFIG_LV_USE_DEMO_WIDGETS
|
||||
#define LV_USE_DEMO_WIDGETS CONFIG_LV_USE_DEMO_WIDGETS
|
||||
#else
|
||||
#define LV_USE_DEMO_WIDGETS 0
|
||||
#endif
|
||||
#ifdef CONFIG_LV_USE_DEMO_WIDGETS
|
||||
#define LV_USE_DEMO_WIDGETS CONFIG_LV_USE_DEMO_WIDGETS
|
||||
#else
|
||||
#define LV_USE_DEMO_WIDGETS 1
|
||||
#define LV_USE_DEMO_WIDGETS 0
|
||||
#endif
|
||||
#endif
|
||||
#if LV_USE_DEMO_WIDGETS
|
||||
#ifndef LV_DEMO_WIDGETS_SLIDESHOW
|
||||
#ifdef CONFIG_LV_DEMO_WIDGETS_SLIDESHOW
|
||||
#define LV_DEMO_WIDGETS_SLIDESHOW CONFIG_LV_DEMO_WIDGETS_SLIDESHOW
|
||||
#else
|
||||
#define LV_DEMO_WIDGETS_SLIDESHOW 0
|
||||
#endif
|
||||
#ifndef LV_DEMO_WIDGETS_SLIDESHOW
|
||||
#ifdef CONFIG_LV_DEMO_WIDGETS_SLIDESHOW
|
||||
#define LV_DEMO_WIDGETS_SLIDESHOW CONFIG_LV_DEMO_WIDGETS_SLIDESHOW
|
||||
#else
|
||||
#define LV_DEMO_WIDGETS_SLIDESHOW 0
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Demonstrate the usage of encoder and keyboard*/
|
||||
#ifndef LV_USE_DEMO_KEYPAD_AND_ENCODER
|
||||
#ifdef _LV_KCONFIG_PRESENT
|
||||
#ifdef CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER
|
||||
#define LV_USE_DEMO_KEYPAD_AND_ENCODER CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER
|
||||
#else
|
||||
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 0
|
||||
#endif
|
||||
#ifdef CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER
|
||||
#define LV_USE_DEMO_KEYPAD_AND_ENCODER CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER
|
||||
#else
|
||||
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 1
|
||||
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Benchmark your system*/
|
||||
#ifndef LV_USE_DEMO_BENCHMARK
|
||||
#ifdef _LV_KCONFIG_PRESENT
|
||||
#ifdef CONFIG_LV_USE_DEMO_BENCHMARK
|
||||
#define LV_USE_DEMO_BENCHMARK CONFIG_LV_USE_DEMO_BENCHMARK
|
||||
#else
|
||||
#define LV_USE_DEMO_BENCHMARK 0
|
||||
#endif
|
||||
#ifdef CONFIG_LV_USE_DEMO_BENCHMARK
|
||||
#define LV_USE_DEMO_BENCHMARK CONFIG_LV_USE_DEMO_BENCHMARK
|
||||
#else
|
||||
#define LV_USE_DEMO_BENCHMARK 1
|
||||
#define LV_USE_DEMO_BENCHMARK 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Stress test for LVGL*/
|
||||
#ifndef LV_USE_DEMO_STRESS
|
||||
#ifdef _LV_KCONFIG_PRESENT
|
||||
#ifdef CONFIG_LV_USE_DEMO_STRESS
|
||||
#define LV_USE_DEMO_STRESS CONFIG_LV_USE_DEMO_STRESS
|
||||
#else
|
||||
#define LV_USE_DEMO_STRESS 0
|
||||
#endif
|
||||
#ifdef CONFIG_LV_USE_DEMO_STRESS
|
||||
#define LV_USE_DEMO_STRESS CONFIG_LV_USE_DEMO_STRESS
|
||||
#else
|
||||
#define LV_USE_DEMO_STRESS 1
|
||||
#define LV_USE_DEMO_STRESS 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Music player demo*/
|
||||
#ifndef LV_USE_DEMO_MUSIC
|
||||
#ifdef _LV_KCONFIG_PRESENT
|
||||
#ifdef CONFIG_LV_USE_DEMO_MUSIC
|
||||
#define LV_USE_DEMO_MUSIC CONFIG_LV_USE_DEMO_MUSIC
|
||||
#else
|
||||
#define LV_USE_DEMO_MUSIC 0
|
||||
#endif
|
||||
#ifdef CONFIG_LV_USE_DEMO_MUSIC
|
||||
#define LV_USE_DEMO_MUSIC CONFIG_LV_USE_DEMO_MUSIC
|
||||
#else
|
||||
#define LV_USE_DEMO_MUSIC 1
|
||||
#define LV_USE_DEMO_MUSIC 0
|
||||
#endif
|
||||
#endif
|
||||
#if LV_USE_DEMO_MUSIC
|
||||
#ifndef LV_DEMO_MUSIC_SQUARE
|
||||
#ifdef CONFIG_LV_DEMO_MUSIC_SQUARE
|
||||
#define LV_DEMO_MUSIC_SQUARE CONFIG_LV_DEMO_MUSIC_SQUARE
|
||||
#else
|
||||
#define LV_DEMO_MUSIC_SQUARE 0
|
||||
#endif
|
||||
#ifndef LV_DEMO_MUSIC_SQUARE
|
||||
#ifdef CONFIG_LV_DEMO_MUSIC_SQUARE
|
||||
#define LV_DEMO_MUSIC_SQUARE CONFIG_LV_DEMO_MUSIC_SQUARE
|
||||
#else
|
||||
#define LV_DEMO_MUSIC_SQUARE 0
|
||||
#endif
|
||||
#ifndef LV_DEMO_MUSIC_LANDSCAPE
|
||||
#ifdef CONFIG_LV_DEMO_MUSIC_LANDSCAPE
|
||||
#define LV_DEMO_MUSIC_LANDSCAPE CONFIG_LV_DEMO_MUSIC_LANDSCAPE
|
||||
#else
|
||||
#define LV_DEMO_MUSIC_LANDSCAPE 0
|
||||
#endif
|
||||
#endif
|
||||
#ifndef LV_DEMO_MUSIC_LANDSCAPE
|
||||
#ifdef CONFIG_LV_DEMO_MUSIC_LANDSCAPE
|
||||
#define LV_DEMO_MUSIC_LANDSCAPE CONFIG_LV_DEMO_MUSIC_LANDSCAPE
|
||||
#else
|
||||
#define LV_DEMO_MUSIC_LANDSCAPE 0
|
||||
#endif
|
||||
#ifndef LV_DEMO_MUSIC_ROUND
|
||||
#ifdef CONFIG_LV_DEMO_MUSIC_ROUND
|
||||
#define LV_DEMO_MUSIC_ROUND CONFIG_LV_DEMO_MUSIC_ROUND
|
||||
#else
|
||||
#define LV_DEMO_MUSIC_ROUND 0
|
||||
#endif
|
||||
#endif
|
||||
#ifndef LV_DEMO_MUSIC_ROUND
|
||||
#ifdef CONFIG_LV_DEMO_MUSIC_ROUND
|
||||
#define LV_DEMO_MUSIC_ROUND CONFIG_LV_DEMO_MUSIC_ROUND
|
||||
#else
|
||||
#define LV_DEMO_MUSIC_ROUND 0
|
||||
#endif
|
||||
#ifndef LV_DEMO_MUSIC_LARGE
|
||||
#ifdef CONFIG_LV_DEMO_MUSIC_LARGE
|
||||
#define LV_DEMO_MUSIC_LARGE CONFIG_LV_DEMO_MUSIC_LARGE
|
||||
#else
|
||||
#define LV_DEMO_MUSIC_LARGE 0
|
||||
#endif
|
||||
#endif
|
||||
#ifndef LV_DEMO_MUSIC_LARGE
|
||||
#ifdef CONFIG_LV_DEMO_MUSIC_LARGE
|
||||
#define LV_DEMO_MUSIC_LARGE CONFIG_LV_DEMO_MUSIC_LARGE
|
||||
#else
|
||||
#define LV_DEMO_MUSIC_LARGE 0
|
||||
#endif
|
||||
#ifndef LV_DEMO_MUSIC_AUTO_PLAY
|
||||
#ifdef CONFIG_LV_DEMO_MUSIC_AUTO_PLAY
|
||||
#define LV_DEMO_MUSIC_AUTO_PLAY CONFIG_LV_DEMO_MUSIC_AUTO_PLAY
|
||||
#else
|
||||
#define LV_DEMO_MUSIC_AUTO_PLAY 0
|
||||
#endif
|
||||
#endif
|
||||
#ifndef LV_DEMO_MUSIC_AUTO_PLAY
|
||||
#ifdef CONFIG_LV_DEMO_MUSIC_AUTO_PLAY
|
||||
#define LV_DEMO_MUSIC_AUTO_PLAY CONFIG_LV_DEMO_MUSIC_AUTO_PLAY
|
||||
#else
|
||||
#define LV_DEMO_MUSIC_AUTO_PLAY 0
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user