From c6ca975a0448621fdd7a5a2d5bbac22685722759 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Mon, 29 Aug 2022 23:44:05 +0100 Subject: [PATCH] update the script to generate pdsc --- port/cmsis-pack/PikaTech.PikaScript.pdsc | 12 ++++++------ port/cmsis-pack/pikascript/PikaTech.PikaScript.pdsc | 12 ++++++------ port/cmsis-pack/pikascript/PikaTech.PikaScript.xml | 8 +++++++- port/cmsis-pack/pikascript/makepdsc.py | 3 ++- 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/port/cmsis-pack/PikaTech.PikaScript.pdsc b/port/cmsis-pack/PikaTech.PikaScript.pdsc index d26f7604d..7e996f948 100644 --- a/port/cmsis-pack/PikaTech.PikaScript.pdsc +++ b/port/cmsis-pack/PikaTech.PikaScript.pdsc @@ -94,16 +94,16 @@ + + The existance of the LVGL + + + + The Kernel of the PikaScript - - - The existance of the LVGL - - - The Kernel of the PikaScript diff --git a/port/cmsis-pack/pikascript/PikaTech.PikaScript.pdsc b/port/cmsis-pack/pikascript/PikaTech.PikaScript.pdsc index d26f7604d..7e996f948 100644 --- a/port/cmsis-pack/pikascript/PikaTech.PikaScript.pdsc +++ b/port/cmsis-pack/pikascript/PikaTech.PikaScript.pdsc @@ -94,16 +94,16 @@ + + The existance of the LVGL + + + + The Kernel of the PikaScript - - - The existance of the LVGL - - - The Kernel of the PikaScript diff --git a/port/cmsis-pack/pikascript/PikaTech.PikaScript.xml b/port/cmsis-pack/pikascript/PikaTech.PikaScript.xml index fdd40e6ea..392dff46a 100644 --- a/port/cmsis-pack/pikascript/PikaTech.PikaScript.xml +++ b/port/cmsis-pack/pikascript/PikaTech.PikaScript.xml @@ -94,6 +94,12 @@ + + The existance of the LVGL + + + + The Kernel of the PikaScript @@ -170,7 +176,7 @@ - + The lvgl module for PikaScript @LVGL_LIB diff --git a/port/cmsis-pack/pikascript/makepdsc.py b/port/cmsis-pack/pikascript/makepdsc.py index 3ac53b98e..1bafaa240 100644 --- a/port/cmsis-pack/pikascript/makepdsc.py +++ b/port/cmsis-pack/pikascript/makepdsc.py @@ -50,6 +50,7 @@ def collect(name, groupList: list[Group], subfix=".xml"): formatc = '' formath = '' formatcfg = '' +formatccond = '' kernal_c = Group("kernalH", "pikascript-core", ".c") kernal_h = Group("kernalC", "pikascript-core", ".h", @@ -58,7 +59,7 @@ kernal_cfg = Group("kernalCfg", "pikascript-core", ".cfg", format=formatcfg) lib_c = Group("libC", "pikascript-lib/PikaStdLib", ".c", format=formatc) lib_h = Group("libH", "pikascript-lib/PikaStdLib", ".h", format=formath) -lvgl_c = Group("libC", "pikascript-lib/pika_lvgl", ".c", format=formatc) +lvgl_c = Group("libC", "pikascript-lib/pika_lvgl", ".c", format=formatccond) lvgl_h = Group("libH", "pikascript-lib/pika_lvgl", ".h", format=formath) api_c = Group("apiC", "pikascript-api", ".c", format=formatc)