lpcmanager

Added LPCLibrary.py
revamp
2018-02-05, Edouard Tisserant
37a540b68d3b
Added LPCLibrary.py
import features
from POULibrary import POULibrary
# _lpcmanager_path, arch, etc are defined here because
# globals() of LPCManager.py are passed to extentions
features.libraries=[('Native', 'NativeLib.NativeLibrary')]
def _poulibpath(name):
return os.path.join(_lpcmanager_path, 'Pous', "pous"+name+".xml")
if arch in PLC_MC9_module:
features.libraries += [('Python', 'py_ext.PythonLibrary'),
('RTC', SimplePOULibraryFactory("RTC")]
elif arch in PLC_GOT_module:
features.libraries += [('Python', 'py_ext.PythonLibrary'),
('RTC', SimplePOULibraryFactory("RTC")),
('GOT', SimplePOULibraryFactory("GOT"))]
else:
features.libraries += [('LPC', SimplePOULibraryFactory("LPC"))]