lpcmanager

Finished moving library customization to LPCExtension
revamp
2018-02-05, Edouard Tisserant
ce13540e7e69
Finished moving library customization to LPCExtension
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# --------- Libraries Extension ------------
#
import features
from POULibrary import SimplePOULibraryFactory
# _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(_poulibpath("RTC"))]
elif arch in PLC_GOT_module:
features.libraries += [('Python', 'py_ext.PythonLibrary'),
('RTC', SimplePOULibraryFactory(_poulibpath("RTC"))),
('GOT', SimplePOULibraryFactory(_poulibpath("GOT")))]
else:
features.libraries += [('LPC', SimplePOULibraryFactory(_poulibpath("LPC")))]