mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-02 01:18:04 +08:00
fix(lv_conf_internal_gen.py) formatting fixes on the generated file (#2542)
* fix(lv_conf_internal_gen.py): change lv_conf.h to lv_conf_internal.h Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> * fix(lv_conf_internal_gen.py): remove the extra space before macro Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> * fix: regenerate lv_conf_internal.h Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Generates a checker file for lv_conf.h from lv_conf_template.h define all the not defined values
|
Generates lv_conf_internal.h from lv_conf_template.h to provide default values
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
@@ -91,7 +91,7 @@ for i in fin.read().splitlines():
|
|||||||
if r:
|
if r:
|
||||||
line = re.sub('\(.*?\)', '', r[1], 1) #remove parentheses from macros
|
line = re.sub('\(.*?\)', '', r[1], 1) #remove parentheses from macros
|
||||||
dr = re.sub('.*# *define', '', i, 1)
|
dr = re.sub('.*# *define', '', i, 1)
|
||||||
d = "# define " + dr
|
d = "# define" + dr
|
||||||
|
|
||||||
fout.write(
|
fout.write(
|
||||||
f'#ifndef {line}\n'
|
f'#ifndef {line}\n'
|
||||||
|
|||||||
Reference in New Issue
Block a user