features.py
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 18 Apr 2016 18:56:51 +0300
changeset 1478 69fe0b81e951
parent 944 52a17be9c4d1
child 1511 91538d0c242c
child 1909 bb883e063175
permissions -rw-r--r--
make attribute CFLAGS and LDFLAGS optional and add default empty value

Actually CFLAGS and LDFLAGS are not required and can be empty.
Without default empty value if target platform in project settings was
set to "Linux" CFLAGS and LDFLAGS was initialized with NoneType.
The result was broken build and it wasn't to save/load project with
such settings.

Traceback (most recent call last):
File "/home/developer/WorkData/PLC/beremiz/beremiz/ProjectController.py", line 956, in _Build
if not builder.build() :
File "/home/developer/WorkData/PLC/beremiz/beremiz/targets/toolchain_gcc.py", line 96, in build
Builder_CFLAGS = ' '.join(self.getBuilderCFLAGS())
TypeError: sequence item 0: expected string, NoneType found
784
a1d970365e41 Adding support for beremiz extensions to define custom file editors for project files
laurent
parents: 734
diff changeset
     1
libraries = [
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 784
diff changeset
     2
    ('Native', 'NativeLib.NativeLibrary'),
784
a1d970365e41 Adding support for beremiz extensions to define custom file editors for project files
laurent
parents: 734
diff changeset
     3
    ('Python', 'py_ext.PythonLibrary'),
a1d970365e41 Adding support for beremiz extensions to define custom file editors for project files
laurent
parents: 734
diff changeset
     4
    ('SVGUI', 'svgui.SVGUILibrary')]
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     5
720
6be032177e2a refactoring
Edouard Tisserant
parents: 717
diff changeset
     6
catalog = [
721
ecf4d203c4d4 refactoring
Edouard Tisserant
parents: 720
diff changeset
     7
    ('canfestival', _('CANopen support'), _('Map located variables over CANopen'), 'canfestival.canfestival.RootClass'),
734
5c42cafaee15 Moved LPC sources to a separate project
Edouard Tisserant
parents: 731
diff changeset
     8
    ('c_ext', _('C extension'), _('Add C code accessing located variables synchronously'), 'c_ext.CFile'),
728
e0424e96e3fd refactoring - library support is not anymore attached to configtree nodes, but handles by project controller
Edouard Tisserant
parents: 721
diff changeset
     9
    ('py_ext', _('Python file'), _('Add Python code executed asynchronously'), 'py_ext.PythonFile'),
e0424e96e3fd refactoring - library support is not anymore attached to configtree nodes, but handles by project controller
Edouard Tisserant
parents: 721
diff changeset
    10
    ('wxglade_hmi', _('WxGlade GUI'), _('Add a simple WxGlade based GUI.'), 'wxglade_hmi.WxGladeHMI'),
e0424e96e3fd refactoring - library support is not anymore attached to configtree nodes, but handles by project controller
Edouard Tisserant
parents: 721
diff changeset
    11
    ('svgui', _('SVGUI'), _('Experimental web based HMI'), 'svgui.SVGUI')]
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
    12
784
a1d970365e41 Adding support for beremiz extensions to define custom file editors for project files
laurent
parents: 734
diff changeset
    13
file_editors = []