lpcmanager

Added LPCLibrary.py
revamp
2018-02-05, Edouard Tisserant
37a540b68d3b
Parents 2451e9f90bac
Children 0c4758cbaa5d
Added LPCLibrary.py
  • +22 -0
    LPCLibrary.py
  • --- /dev/null Thu Jan 01 00:00:00 1970 +0000
    +++ b/LPCLibrary.py Mon Feb 05 11:21:51 2018 +0100
    @@ -0,0 +1,22 @@
    +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"))]
    +
    +