group for lvgl

This commit is contained in:
Lyon 2022-08-26 01:14:49 +08:00
parent 2e8a0b8864
commit 973b3d5c5e
3 changed files with 34 additions and 19 deletions

View File

@ -16,7 +16,7 @@
<repository type="git">https://github.com/pikasTech/pikascript.git</repository>
<releases>
<release date="@DATE" version="1.10.3" url="https://gitee.com/Lyon1998/pikascript/attach_files/1151246/download">
<release date="2022-08-26" version="1.10.3" url="https://gitee.com/Lyon1998/pikascript/attach_files/1151246/download">
- PikaScript v1.10.3
</release>
@ -143,8 +143,7 @@
<component Cgroup="PikaScript" Csub="Core" Cversion="1.10.3">
<description>PikaScript Kernel</description>
<files>
<file attr="config" category="sourceC" name="pikascript-core/BaseObj.c" />
<file attr="config" category="sourceC" name="pikascript-core/BaseObj.c" />
<file attr="config" category="sourceC" name="pikascript-core/dataArg.c" />
<file attr="config" category="sourceC" name="pikascript-core/dataArgs.c" />
<file attr="config" category="sourceC" name="pikascript-core/dataLink.c" />
@ -184,7 +183,6 @@
<file attr="config" category="header" name="pikascript-core/__pika_ooc.h" />
<file attr="config" category="source" name="pikascript-core/__instruction_table.cfg" />
<file attr="config" category="header" name="__pika_ooc.h" />
<file category="header" name="PLOOC/plooc_class.h" condition="NO_PLOOC_Pack" />
<file category="header" name="PLOOC/plooc.h" condition="NO_PLOOC_Pack" />
@ -192,25 +190,22 @@
<file category="header" name="PLOOC/plooc_class_simple_c90.h" condition="NO_PLOOC_Pack" />
<file category="header" name="PLOOC/plooc_class_strict.h" condition="NO_PLOOC_Pack" />
<file category="header" name="PLOOC/plooc_class_black_box.h" condition="NO_PLOOC_Pack" />
<file attr="config" category="utility" name="rust-msc-latest-win10.exe" version="1.0.0" />
<file attr="config" category="utility" name="pikaPackage.exe" version="1.0.0" />
<file attr="config" category="utility" name="pikaBeforBuild-keil.bat" version="1.1.0" />
<file attr="config" category="utility" name="clean.bat" version="1.0.1" />
<file attr="config" category="source" name="requestment.txt" version="1.1.0" />
<file attr="config" category="source" name="main.py" />
</files>
<RTE_Components_h>
#define RTE_Script_PikaScript
</RTE_Components_h>
</RTE_Components_h>
</component>
<component Cgroup="PikaScript" Csub="PikaStdLib" Cversion="1.10.3" condition="Kernel">
<description>The standard library for PikaScript</description>
<files>
<file attr="config" category="sourceC" name="pikascript-lib/PikaStdLib/PikaDebuger_Debuger.c" />
<file attr="config" category="sourceC" name="pikascript-lib/PikaStdLib/PikaDebuger_Debuger.c" />
<file attr="config" category="sourceC" name="pikascript-lib/PikaStdLib/PikaStdData_ByteArray.c" />
<file attr="config" category="sourceC" name="pikascript-lib/PikaStdLib/PikaStdData_Dict.c" />
<file attr="config" category="sourceC" name="pikascript-lib/PikaStdLib/PikaStdData_FILEIO.c" />
@ -272,6 +267,13 @@
<file attr="config" category="header" name="pikascript-api/pika_lvgl_switch.h" />
<file attr="config" category="header" name="pikascript-api/pika_lvgl_table.h" />
<file attr="config" category="header" name="pikascript-api/pika_lvgl_textarea.h" />
</files>
</component>
<component Cgroup="PikaScript" Csub="pika_lvgl" Cversion="0.2.0" condition="Kernel">
<description>The lvgl module for PikaScript</description>
<files>
<file attr="config" category="sourceC" name="pikascript-lib/pika_lvgl/pika_lvgl.c" />
<file attr="config" category="sourceC" name="pikascript-lib/pika_lvgl/pika_lvgl_indev_t.c" />
<file attr="config" category="sourceC" name="pikascript-lib/pika_lvgl/pika_lvgl_lv_event.c" />

View File

@ -143,9 +143,7 @@
<component Cgroup="PikaScript" Csub="Core" Cversion="@VERSION">
<description>PikaScript Kernel</description>
<files>
@KERNAL
@KERNAL
<file attr="config" category="header" name="__pika_ooc.h" />
<file category="header" name="PLOOC/plooc_class.h" condition="NO_PLOOC_Pack" />
<file category="header" name="PLOOC/plooc.h" condition="NO_PLOOC_Pack" />
@ -153,25 +151,29 @@
<file category="header" name="PLOOC/plooc_class_simple_c90.h" condition="NO_PLOOC_Pack" />
<file category="header" name="PLOOC/plooc_class_strict.h" condition="NO_PLOOC_Pack" />
<file category="header" name="PLOOC/plooc_class_black_box.h" condition="NO_PLOOC_Pack" />
<file attr="config" category="utility" name="rust-msc-latest-win10.exe" version="1.0.0" />
<file attr="config" category="utility" name="pikaPackage.exe" version="1.0.0" />
<file attr="config" category="utility" name="pikaBeforBuild-keil.bat" version="1.1.0" />
<file attr="config" category="utility" name="clean.bat" version="1.0.1" />
<file attr="config" category="source" name="requestment.txt" version="1.1.0" />
<file attr="config" category="source" name="main.py" />
</files>
<RTE_Components_h>
#define RTE_Script_PikaScript
</RTE_Components_h>
</RTE_Components_h>
</component>
<component Cgroup="PikaScript" Csub="PikaStdLib" Cversion="@VERSION" condition="Kernel">
<description>The standard library for PikaScript</description>
<files>
@LIB
@LIB
</files>
</component>
<component Cgroup="PikaScript" Csub="pika_lvgl" Cversion="@LVGL_VERSION" condition="Kernel">
<description>The lvgl module for PikaScript</description>
<files>
@LVGL_LIB
</files>
</component>

View File

@ -1,8 +1,10 @@
import os
version = "1.10.3"
version_lvgl = "0.2.0"
date = "2022-08-26"
class Group:
path: str
files: list
@ -63,14 +65,22 @@ api_h = Group("apiH", "pikascript-api", ".h", format=formath)
api_bat = Group("apiBat", "pikascript-api", "", format='@del "%s"', dvd="\\")
collect("kernal", [kernal_c, kernal_h, kernal_cfg])
collect("lib", [lib_c, lib_h, api_c, api_h, lvgl_c, lvgl_h])
collect("lib", [lib_c, lib_h, api_c, api_h])
collect('lib_lvgl', [lvgl_c, lvgl_h])
collect("clean", [api_bat], subfix=".bat")
pdsc_xml_str = open('PikaTech.PikaScript.xml', 'r').read()
kernal_xml_str = open('kernal.xml', 'r').read()
lib_xml_str = open('lib.xml', 'r').read()
lib_lvgl_xml_str = open('lib_lvgl.xml', 'r').read()
pdsc_gen_str = pdsc_xml_str.replace('@KERNAL', kernal_xml_str).replace('@LIB', lib_xml_str).replace('@VERSION', version)
pdsc_gen_str = pdsc_xml_str\
.replace('@LVGL_LIB', lib_lvgl_xml_str)\
.replace('@LVGL_VERSION', version_lvgl)\
.replace('@KERNAL', kernal_xml_str)\
.replace('@LIB', lib_xml_str)\
.replace('@VERSION', version)\
.replace('@DATE', date)\
with open('PikaTech.PikaScript.pdsc', 'w') as f:
f.write(pdsc_gen_str)
@ -79,3 +89,4 @@ with open('PikaTech.PikaScript.pdsc', 'w') as f:
# rm lib.xml
os.remove('kernal.xml')
os.remove('lib.xml')
os.remove('lib_lvgl.xml')