lpcmanager

Add svghmi extention to GOT6
som6
2019-10-30, Edouard Tisserant
779f22de092e
Parents ab5c17607555
Children 896d7199fe45
Add svghmi extention to GOT6
--- a/LPCExtension.py Thu Sep 05 11:37:10 2019 +0200
+++ b/LPCExtension.py Wed Oct 30 15:18:13 2019 +0100
@@ -12,6 +12,7 @@
# _lpcmanager_path, arch, etc are defined here because
# globals() of LPCManager.py are passed to extentions
+wanted_features_names = ["c_ext", "py_ext", "wxglade_hmi"]
features.libraries=[('Native', 'NativeLib.NativeLibrary', True)]
@@ -27,13 +28,19 @@
else: # MC8 ?
features.libraries += [('LPC', SimplePOULibraryFactory(_poulibpath("LPC")), True)]
+if product in SVG_GOT_modules:
+ wanted_features_names.extend(["svghmi"])
+
+if product in WX_GOT_modules:
+ wanted_features_names.extend(["wxglade_hmi"])
+
#
# --------- Configuration Tree Nodes (CTN) catalog extension ------------
#
_oldcatalog = features.catalog
catalog_index = dict(zip(zip(*_oldcatalog)[0],_oldcatalog))
-wanted_beremiz_features = [catalog_index[feature]
- for feature in ["c_ext", "py_ext", "wxglade_hmi"]]
+wanted_beremiz_features = [catalog_index[feature]
+ for feature in wanted_features_names]
features.catalog = wanted_beremiz_features + [
('lpchmi', _('Smarteh HMI'), _('Create customized HMI'), 'lpchmi.LPCHMI'),
('bacnet', _('Bacnet support'), _('Map located variables over Bacnet'), 'LPCBACnet.RootClass'),