##// END OF EJS Templates
Cleaning complete ready for testing.
jeandet -
r80:fa2d5230474e default
parent child
Show More
@@ -1,175 +1,174
1 1 SOCEXPLORER_ROOT = \"$${PWD}/../..\"
2 2
3 3 include($${PWD}/../../build_cfg/socexplorer.pri)
4 4
5 5 TARGET = socexplorerengine$${DEBUG_EXT}
6 6 TEMPLATE = lib
7 7
8 8 #more verbose plugin loader to debug plugin loading issues such as dependencies issues
9 9 SOCEXPLORER_PLUGIN_LOADER="custom"
10 10
11 11 SOCEXPLORER_CHAGESETNUM=$$system(hg id)
12 12 isEmpty(SOCEXPLORER_CHAGESETNUM){
13 SOCEXPLORER_CHAGESETNUM=2c7201cecc87+
13 SOCEXPLORER_CHAGESETNUM=3440ba47d0f1+
14 14 }
15 15 SOCEXPLORER_CHAGESETNUMSTR = '\\"$${SOCEXPLORER_CHAGESETNUM}\\"'
16 16 SOCEXPLORER_BRANCH=$$system(hg branch)
17 17 isEmpty(SOCEXPLORER_BRANCH){
18 18 SOCEXPLORER_BRANCH=default
19 19 }
20 20 SOCEXPLORER_BRANCHSTR = '\\"$${SOCEXPLORER_BRANCH}\\"'
21 21
22 DEFINES += SOCEXPLORER_VERSION="\"\\\"0.5.0"\\\"\"
22 DEFINES += SOCEXPLORER_VERSION="\"\\\"0.6.0"\\\"\"
23 23 DEFINES += SOCEXPLORER_CHAGESET=\"$${SOCEXPLORER_CHAGESETNUMSTR}\"
24 24 DEFINES += SOCEXPLORER_BRANCH=\"$${SOCEXPLORER_BRANCHSTR}\"
25 25
26 26
27 27 message("Building SOCEXPLORER changeset $${SOCEXPLORER_CHAGESETNUM}")
28 28
29 29 DEFINES += SOCEXPLORER_EXPORTS
30 30
31 31 include ( plugins/socexplorerplugin.prf )
32 32 include ( PeripheralWidget/PeripheralWidget.pri)
33 33
34 34 win32:CONFIG += dll
35 35 win32:CONFIG -= static
36 36 win32:LIBS+=-L$${SOCEXPLORER_ROOT}/bin/win32 -lsocexplorercommon$${DEBUG_EXT}
37 37
38 38 contains(SOCEXPLORER_PLUGIN_LOADER,"custom")
39 39 {
40 40 unix:LIBS+= -ldl
41 41 unix:DEFINES += SOCEXPLORER_CUSTOM_PLUGIN_LOADER
42 42 unix:HEADERS += \
43 43 pluginloader/unix/unixpluginloader.h
44 44 unix:SOURCES += \
45 45 pluginloader/unix/unixpluginloader.cpp
46 46 }
47 47
48 48 target.path = $$[QT_INSTALL_LIBS]
49 49 isEmpty(target.path) {
50 50 error(can\'t get QT_INSTALL_LIBS)
51 51 }
52 52
53 53 header.path = $$[QT_INSTALL_HEADERS]/SocExplorer
54 54 header.files = engine/socexplorerengine.h \
55 55 pluginloader/pluginscache.h \
56 56 plugins/socexplorerplugin.h \
57 57 proxy/socexplorerproxy.h \
58 58 engine/socexplorerxmlfile.h \
59 59 SOC/socexplorerenumdevice.h \
60 plugins/genericPySysdriver.h \
61 60 XmlEngine/XMLmodel.h \
62 61 XmlEngine/XMLdata.h \
63 62 XmlEngine/xmldriver.h \
64 63 SOC/socmodel.h \
65 64 SOC/registerdata.h \
66 65 SOC/socclk.h \
67 66 PeripheralWidget/src/peripheralwidget.h \
68 67 PeripheralWidget/src/registerwidget.h \
69 68 PeripheralWidget/src/socregsviewer.h \
70 69 PeripheralWidget/src/socregsviewernew.h \
71 70 memtester/memtester.h
72 71
73 72
74 73
75 74 isEmpty(header.path) {
76 75 error(can\'t get QT_INSTALL_HEADERS)
77 76 }
78 77
79 78 pluginif.files = pluginsInterface/*.h \
80 79 pluginsInterface/*.cpp
81 80
82 81 pluginif.path = $$[QT_INSTALL_HEADERS]/SocExplorer/pluginsInterface
83 82
84 83
85 84 INSTALLS += target header pluginif
86 85
87 86 INCLUDEPATH += engine \
88 87 pluginloader \
89 88 pluginsInterface \
90 89 proxy \
91 90 plugins \
92 91 pluginManagerWdgt \
93 92 ../common \
94 93 ../common/genericBinaryFiles \
95 94 ../ \
96 95 RegisterMVS \
97 96 XmlEngine \
98 97 SOC \
99 98 PeripheralWidget/src \
100 99 memtester
101 100
102 101
103 102 HEADERS += \
104 103 pluginloader/pluginscache.h \
105 104 pluginloader/pluginloader.h \
106 105 pluginManagerWdgt/plugintree.h \
107 106 pluginManagerWdgt/pluginmanagerWDGT.h \
108 107 pluginManagerWdgt/pluginlist.h \
109 108 pluginManagerWdgt/plugininfoswdgt.h \
110 109 XmlEngine/XMLmodel.h \
111 110 XmlEngine/XMLdata.h \
112 111 SOC/socmodel.h \
113 112 SOC/registerdata.h \
114 113 XmlEngine/xmldriver.h \
115 114 PeripheralWidget/src/peripheralwidget.h \
116 115 PeripheralWidget/src/registerwidget.h \
117 116 PeripheralWidget/src/socregsviewer.h \
118 117 SOC/socclk.h \
119 118 engine/socexplorerengine.h \
120 119 engine/socexplorerxmlfile.h \
121 120 plugins/socexplorerplugin.h \
122 121 pluginsInterface/socexplorerplugininterface.h \
123 122 pluginsInterface/socexplorerplugininterface_global.h \
124 123 proxy/socexplorerproxy.h \
125 124 SOC/socexplorerenumdevice.h \
126 125 PySocExplorerEngine.h \
127 126 memtester/memtester.h\
128 127 PeripheralWidget/src/socregsviewernew.h \
129 128 PeripheralWidget/src/collapsableperipheralwidget.h
130 129
131 130
132 131
133 132
134 133
135 134
136 135 SOURCES += \
137 136 pluginloader/pluginscache.cpp \
138 137 pluginloader/pluginloader.cpp \
139 138 pluginManagerWdgt/plugintree.cpp \
140 139 pluginManagerWdgt/pluginmanagerWDGT.cpp \
141 140 pluginManagerWdgt/pluginlist.cpp \
142 141 pluginManagerWdgt/plugininfoswdgt.cpp \
143 142 XmlEngine/XMLmodel.cpp \
144 143 XmlEngine/XMLdata.cpp \
145 144 SOC/socmodel.cpp \
146 145 SOC/registerdata.cpp \
147 146 XmlEngine/xmldriver.cpp \
148 147 PeripheralWidget/src/peripheralwidget.cpp \
149 148 PeripheralWidget/src/registerwidget.cpp \
150 149 PeripheralWidget/src/socregsviewer.cpp \
151 150 SOC/socclk.cpp \
152 151 engine/socexplorerengine.cpp \
153 152 engine/socexplorerxmlfile.cpp \
154 153 proxy/socexplorerproxy.cpp \
155 154 SOC/socexplorerenumdevice.cpp \
156 155 plugins/socexplorerplugin.cpp \
157 156 memtester/memtester.cpp \
158 157 PeripheralWidget/src/socregsviewernew.cpp \
159 158 PeripheralWidget/src/collapsableperipheralwidget.cpp
160 159
161 160
162 161 OTHER_FILES += \
163 162 plugins/socexplorerplugin.cpp \
164 163 pluginsInterface/socexplorerplugininterface.cpp \
165 164 plugins/socexplorerplugin.prf \
166 165 pythongenerator.sh \
167 166 pythonQtgeneratorCfg.txt
168 167
169 168 FORMS += \
170 169 PeripheralWidget/src/socregsviewernew.ui \
171 170 PeripheralWidget/src/collapsableperipheralwidget.ui
172 171
173 172
174 173 RESOURCES += \
175 174 PeripheralWidget/ressources/peripheralwidget.qrc
@@ -1,182 +1,179
1 1 /*------------------------------------------------------------------------------
2 2 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
3 3 β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β• β–ˆβ–ˆβ•”β•β•β•β•β•β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—
4 4 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β•šβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•
5 5 β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β•β•β• β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—
6 6 β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘
7 7 β•šβ•β•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•β•šβ•β• β•šβ•β•β•šβ•β• β•šβ•β•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β• β•šβ•β•β•šβ•β•β•β•β•β•β•β•šβ•β• β•šβ•β•
8 8
9 9 -- This file is a part of the SOC Explorer Software
10 10 -- Copyright (C) 2011, Plasma Physics Laboratory - CNRS
11 11 --
12 12 -- This program is free software; you can redistribute it and/or modify
13 13 -- it under the terms of the GNU General Public License as published by
14 14 -- the Free Software Foundation; either version 2 of the License, or
15 15 -- (at your option) any later version.
16 16 --
17 17 -- This program is distributed in the hope that it will be useful,
18 18 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
19 19 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 20 -- GNU General Public License for more details.
21 21 --
22 22 -- You should have received a copy of the GNU General Public License
23 23 -- along with this program; if not, write to the Free Software
24 24 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 25 -------------------------------------------------------------------------------*/
26 26 /*-- Author : Alexis Jeandet
27 27 -- Mail : alexis.jeandet@lpp.polytechnique.fr
28 28 ----------------------------------------------------------------------------*/
29 29 #ifndef SOCEXPLORERPLUGIN_H
30 30 #define SOCEXPLORERPLUGIN_H
31 31 #include <QWidget>
32 32 #include <QAction>
33 33 #include <QDockWidget>
34 34 #include <QMainWindow>
35 35 #include <QList>
36 36 #include <QMenu>
37 37 #include <socexplorer.h>
38 38 #include <QObject>
39 39 #include <QVariant>
40 40 #include <QVariantList>
41 41 #include <malloc.h>
42 42 #include <QFile>
43 43 #include <stdint.h>
44 44 #include <QTextStream>
45 45 #include <abstractbinfile.h>
46 46 #ifndef driver_Name
47 47 #define driver_Name "Plugin"
48 48 #endif
49 49 #ifndef driver_Author
50 50 #define driver_Author "No Author"
51 51 #endif
52 52 #ifndef driver_Version
53 53 #define driver_Version "0.0.0"
54 54 #endif
55 55 #ifndef driver_Description
56 56 #define driver_Description "No description."
57 57 #endif
58 58 #ifndef driver_can_be_root
59 59 #define driver_can_be_root 0
60 60 #endif
61 61 #ifndef driver_can_be_child
62 62 #define driver_can_be_child 0
63 63 #endif
64 64 #ifndef driver_VID
65 65 #define driver_VID 0
66 66 #endif
67 67 #ifndef driver_PID
68 68 #define driver_PID 0
69 69 #endif
70 70
71 71 #if defined(SOCEXPLORER_SDK_BUILD)
72 72 # define SOCEXPLORER_SDK_EXPORT Q_DECL_EXPORT
73 73 #else
74 74 # define SOCEXPLORER_SDK_EXPORT Q_DECL_IMPORT
75 75 #endif
76 76
77 class genericPySysdriver;
78 77
79 78 //! socexplorerplugin is the base class for any SocExplorer plugin, it gives a standard interface to communicate
80 79 //! between each plugins and to interact with SocExplorer software.
81 80
82 81 class SOCEXPLORER_SDK_EXPORT socexplorerplugin : public QDockWidget
83 82 {
84 83 Q_OBJECT
85 84 public:
86 //! Default plugin constructor, any plugin should call this constructor. This constructor creates a
87 //! default python wrapper instance. If you want to connect your own python wrapper, you have to clear
88 //! createPyObject option and instanciate your own genericPySysdriver derivated object.
85 //! Default plugin constructor, any plugin should call this constructor.
89 86 socexplorerplugin(QWidget *parent = 0,bool createPyObject=true):QDockWidget(parent)
90 87 {
91 88 closeAction=NULL;
92 89 menu=NULL;
93 90 ChildsMenu=NULL;
94 91 this->Connected = false;
95 92 this->setFeatures(QDockWidget::DockWidgetMovable|QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetVerticalTitleBar);
96 93 _Name = new QString(driver_Name);
97 94 _Author = new QString(driver_Author);
98 95 _Version = new QString(driver_Version);
99 96 _Description = new QString(driver_Description);
100 97 _canBeChild = driver_can_be_child;
101 98 _canBeRoot = driver_can_be_root;
102 99 _VID = driver_VID;
103 100 _PID = driver_PID;
104 101 }
105 102 //! Tells if the plugin is connected, it is used to enable or disable all childrens interfaces.
106 103 virtual int isConnected();
107 104 //! Gives the associated Vendor IDentifier, usefull to automatically associate plugins with found
108 105 //! hardware while board enumeration.
109 106 virtual int VID(){return _PID;}
110 107 //! Gives the associated Product IDentifier, usefull to automatically associate plugins with found
111 108 //! hardware while board enumeration.
112 109 virtual int PID(){return _VID;}
113 110 //! Gives the plugin's base name, usefull to automatically generate instance name.
114 111 virtual QString baseName();
115 112 //! Gives the base address of the current instance, for example if your plugin is supposed to drive
116 113 //! an UART it will correspond to the address of it's first register. This address have at least to
117 114 //! be set by SocExplorer and it can be user accessible if you want.
118 115 virtual int baseAddress();
119 116 //! Sets the base address of the current instance, for example if your plugin is supposed to drive
120 117 //! an UART it will correspond to the address of it's first register. This address have at least to
121 118 //! be set by SocExplorer and it can be user accessible if you want.
122 119 virtual void setBaseAddress(unsigned int baseAddress);
123 120
124 121 QList<socexplorerplugin*> childs;
125 122 socexplorerplugin* parent;
126 123 QAction* closeAction;
127 124 QString instanceName();
128 125 QString instance(){return instanceName();}
129 126 QMenu* menu;
130 127 QMenu* ChildsMenu;
131 128
132 129 signals:
133 130 //! Signal emited each time the plugin is about to be closed.
134 131 void closePlugin(socexplorerplugin* driver);
135 132 void activateSig(bool flag);
136 133 void registerObject(QObject* object,const QString& instanceName);
137 134
138 135 public slots:
139 136 virtual int registermenu(QMenu* menu);
140 137 virtual void postInstantiationTrigger();
141 138 //! Write slot this is the way your children plugins ask you for writing data.
142 139 //! If your plugin is supposed to have childern drivers you should implement this methode.
143 140 //! By default this methode forward the write request to the parent plugin.
144 141 //! \param Value Pointer the data buffer.
145 142 //! \param count Number of 32 bits words you should to write.
146 143 //! \param address Address from where you should to start to write.
147 144 //! \return Quantity of 32 bits words writtens.
148 145 virtual unsigned int Write(unsigned int* Value, unsigned int count,unsigned int address);
149 146 //! Read slot this is the way your children plugins ask you for reading data.
150 147 //! If your plugin is supposed to have childern drivers you should implement this methode.
151 148 //! By default this methode forward the write request to the parent plugin.
152 149 //! \param Value Pointer the data buffer.
153 150 //! \param count Number of 32 bits words you should to read.
154 151 //! \param address Address from where you should to start to read.
155 152 //! \return Quantity of 32 bits words read.
156 153 virtual unsigned int Read(unsigned int* Value, unsigned int count,unsigned int address);
157 154 virtual void closeMe();
158 155 virtual void activate(bool flag);
159 156 virtual void setInstanceName(const QString& newName);
160 157
161 158 virtual bool dumpMemory(unsigned int address,unsigned int count,QString file);
162 159 virtual bool memSet(unsigned int address,int value, unsigned int count);
163 160 virtual bool loadbin(unsigned int address,QString file);
164 161 virtual bool loadfile(abstractBinFile* file);
165 162 virtual bool dumpMemory(unsigned int address,unsigned int count,QString file,const QString& format);
166 163 QVariantList Read(unsigned int address, unsigned int count);
167 164 void Write(unsigned int address, QList<QVariant> dataList);
168 165 protected:
169 166 int BaseAddress;
170 167 bool Connected;
171 168 QString* _Name;
172 169 QString* _Author;
173 170 QString* _Version;
174 171 QString* _Description;
175 172 QString _instanceName;
176 173 int _canBeChild;
177 174 int _canBeRoot;
178 175 int _VID;
179 176 int _PID;
180 177 };
181 178
182 179 #endif // SOCEXPLORERPLUGIN_H
@@ -1,68 +1,66
1 1
2 2 DEFINES += driver_Version="\"\\\"$$VERSION"\\\"\"
3 3
4 4 win32 {
5 5 DEFINES += WIN32
6 6 DEFINES += WINTRANSLATIONPATH
7 7 DEFINES += SOCEXPLORER_TRANSLATION_PATH="\"\\\"./translations"\\\"\"
8 8 SOCEXPLORER_TRANSLATION_INSTALL_PATH = translations
9 9 SOCEXPLORER_INSTALL_PATH =
10 10 SOCEXPLORER_PLUGINS_INSTALL_PATH = $$SOCEXPLORER_PLUGIN_PATH
11 11 }
12 12
13 13 unix {
14 14 DEFINES += UNIX
15 15 DEFINES += UNIXTRANSLATIONPATH
16 16 DEFINES += SOCEXPLORER_TRANSLATION_PATH="\"\\\"/etc/SocExplorer/translations"\\\"\"
17 17 SOCEXPLORER_TRANSLATION_INSTALL_PATH = /etc/SocExplorer/translations
18 18 SOCEXPLORER_INSTALL_PATH = /usr/local/SocExplorer
19 19 SOCEXPLORER_PLUGINS_INSTALL_PATH = $$[QT_INSTALL_LIBS]"/SocExplorer/plugins"
20 20 DEFINES += SOCEXPLORER_CONFIG_PATH="\"\\\"/etc/SocExplorer"\\\"\"
21 21 DEFINES += SOCEXPLORER_SHARE_PATH="\"\\\"/usr/share/SocExplorer"\\\"\"
22 22 SOCEXPLORER_CONFIG_PATH=/etc/SocExplorer
23 23 }
24 24
25 25 isEmpty( SOCEXPLORER_SDK_BUILD ){
26 26 message( "building a plugin" )
27 27 QT += core gui xml
28 28 contains(QT_MAJOR_VERSION, 5) {
29 29 QT += widgets
30 30 }
31 31 CONFIG += pythonqt
32 32 TEMPLATE = lib
33 33 win32:CONFIG += dll
34 34 win32:CONFIG -= static
35 35 OBJECTS_DIR = obj
36 36 MOC_DIR = moc
37 37 DESTDIR = bin
38 38 unix{
39 39 target.path = $${SOCEXPLORER_PLUGINS_INSTALL_PATH}
40 40 INSTALLS += target
41 41 LIBS+= -lsocexplorerengine$${DEBUG_EXT} -lsocexplorercommon$${DEBUG_EXT}
42 42 }
43 43 win32{
44 44 INCLUDEPATH += $$[QT_INSTALL_HEADERS]/SocExplorer/common/libelf
45 45 LIBS+=$$[QT_INSTALL_LIBS]/socexplorerengine$${DEBUG_EXT}.dll $$[QT_INSTALL_LIBS]/socexplorercommon$${DEBUG_EXT}.dll
46 46 }
47 47 DEFINES += SOCEXPLORER_LIBRARY
48 48
49 49 SOURCES += \
50 50 $$[QT_INSTALL_HEADERS]/SocExplorer/pluginsInterface/socexplorerplugininterface.cpp
51 51
52 52 HEADERS += \
53 $$[QT_INSTALL_HEADERS]/SocExplorer/genericPySysdriver.h \
54 53 $$[QT_INSTALL_HEADERS]/SocExplorer/socexplorerplugin.h
55 54
56 55 INCLUDEPATH += $$[QT_INSTALL_HEADERS]/SocExplorer/common \
57 56 $$[QT_INSTALL_HEADERS]/SocExplorer \
58 57 $$[QT_INSTALL_HEADERS]/SocExplorer/pluginsInterface
59 58
60 59
61 60 }else{
62 61 message( "building SocExplorer" )
63 62 HEADERS += \
64 $$[QT_INSTALL_HEADERS]/SocExplorer/genericPySysdriver.h \
65 63 $$[QT_INSTALL_HEADERS]/SocExplorer/socexplorerplugin.h
66 64 }
67 65
68 66
@@ -1,331 +1,335
1 %global upstream_name socexplorer-0.5
1 %global upstream_name socexplorer-0.6
2 2
3 3 Name: socexplorer
4 Version: 0.5
4 Version: 0.6
5 5 Release: 0%{?dist}
6 6 Summary: SocExplorer is an open source generic System On Chip testing software/framework.
7 7 Group: Development/Tools
8 8 License: GPLv2+
9 9 URL: https://hephaistos.lpp.polytechnique.fr/redmine/projects/socexplorer
10 10 Source0: https://hephaistos.lpp.polytechnique.fr/redmine/attachments/download/376/socexplorer-0.5.zip
11 11
12 12 BuildRequires: python2-devel
13 13 BuildRequires: qt5-qtbase-devel
14 14 BuildRequires: qt5-qtwebkit-devel
15 15 BuildRequires: qt5-qttools-static
16 16 BuildRequires: qt5-qttools-devel
17 17 BuildRequires: qt5-qtsvg-devel
18 18 BuildRequires: qt5-qtxmlpatterns-devel
19 19 BuildRequires: qt5-qtmultimedia-devel
20 20 BuildRequires: elfutils-libelf-devel
21 21 BuildRequires: qt5-pythonqt-devel
22 22 BuildRequires: mercurial
23 23 BuildRequires: appdata-tools
24 24 BuildRequires: desktop-file-utils
25 25
26 26 Requires(post): python2
27 27 Requires(post): qt5-qtbase
28 28 Requires(post): qt5-qtwebkit
29 29 Requires(post): qt5-qtsvg
30 30 Requires(post): qt5-qtxmlpatterns
31 31 Requires(post): elfutils-libelf
32 32 Requires(post): qt5-pythonqt
33 33
34 Provides: socexplorer = 0.5-0
35 Obsoletes: socexplorer < 0.4-8
34 Provides: socexplorer = 0.6-0
35 Obsoletes: socexplorer < 0.5-0
36 36
37 37 %description
38 38 SocExplorer is an open source generic System On Chip testing software/framework. We write this software for the development and the validation of our instrument, the Low Frequency Receiver(LFR) for the Solar Orbiter mission. This instrument is based on an actel FPGA hosting a LEON3FT processor and some peripherals. To make it more collaborative, we use a plugin based system, the main executable is SocExplorer then all the functionality are provided by plugins. Like this everybody can provide his set of plugins to handle a new SOC or just a new peripheral. SocExplorer uses PythonQt to allow user to automate some tasks such as loading some plugins, configuring them and talking with his device.
39 39
40 40 %package devel
41 41 Summary: SocExplorer is an open source generic System On Chip testing software/framework.
42 42 Group: Development/Tools
43 43 Requires: %{name}%{?_isa} = %{version}-%{release}
44 44
45 45 %description devel
46 46 Header files and development libraries for SocExplorer package. SocExplorer is an open source generic System On Chip testing software/framework.
47 47
48 48 %prep
49 49 %setup -q -n %{upstream_name}
50 50
51 51
52 52
53 53 %build
54 54 %{_qt5_qmake}
55 55
56 56 make %{?_smp_mflags}
57 57
58 58 %install
59 59 make install INSTALL_ROOT=%{buildroot}
60 60 appdata-validate --nonet %{buildroot}/%{_datadir}/appdata/socexplorer.appdata.xml
61 61 desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/socexplorer.desktop
62 62
63 63 %post -p /sbin/ldconfig
64 64
65 65 %postun -p /sbin/ldconfig
66 66
67 67 %files
68 68 /etc/SocExplorer/python/PygmentsHighlighter.py
69 69 /etc/SocExplorer/python/PygmentsHighlighter.pyc
70 70 /etc/SocExplorer/python/PygmentsHighlighter.pyo
71 71 /etc/SocExplorer/python/PythonCompleter.py
72 72 /etc/SocExplorer/python/PythonCompleter.pyc
73 73 /etc/SocExplorer/python/PythonCompleter.pyo
74 74 /etc/SocExplorer/python/module_completion.py
75 75 /etc/SocExplorer/python/module_completion.pyc
76 76 /etc/SocExplorer/python/module_completion.pyo
77 77 /etc/SocExplorer/python/pygments/__init__.py
78 78 /etc/SocExplorer/python/pygments/__init__.pyc
79 79 /etc/SocExplorer/python/pygments/__init__.pyo
80 80 /etc/SocExplorer/python/pygments/cmdline.py
81 81 /etc/SocExplorer/python/pygments/cmdline.pyc
82 82 /etc/SocExplorer/python/pygments/cmdline.pyo
83 83 /etc/SocExplorer/python/pygments/console.py
84 84 /etc/SocExplorer/python/pygments/console.pyc
85 85 /etc/SocExplorer/python/pygments/console.pyo
86 86 /etc/SocExplorer/python/pygments/filter.py
87 87 /etc/SocExplorer/python/pygments/filter.pyc
88 88 /etc/SocExplorer/python/pygments/filter.pyo
89 89 /etc/SocExplorer/python/pygments/filters/__init__.py
90 90 /etc/SocExplorer/python/pygments/filters/__init__.pyc
91 91 /etc/SocExplorer/python/pygments/filters/__init__.pyo
92 92 /etc/SocExplorer/python/pygments/formatter.py
93 93 /etc/SocExplorer/python/pygments/formatter.pyc
94 94 /etc/SocExplorer/python/pygments/formatter.pyo
95 95 /etc/SocExplorer/python/pygments/formatters/__init__.py
96 96 /etc/SocExplorer/python/pygments/formatters/__init__.pyc
97 97 /etc/SocExplorer/python/pygments/formatters/__init__.pyo
98 98 /etc/SocExplorer/python/pygments/formatters/_mapping.py
99 99 /etc/SocExplorer/python/pygments/formatters/_mapping.pyc
100 100 /etc/SocExplorer/python/pygments/formatters/_mapping.pyo
101 101 /etc/SocExplorer/python/pygments/formatters/bbcode.py
102 102 /etc/SocExplorer/python/pygments/formatters/bbcode.pyc
103 103 /etc/SocExplorer/python/pygments/formatters/bbcode.pyo
104 104 /etc/SocExplorer/python/pygments/formatters/html.py
105 105 /etc/SocExplorer/python/pygments/formatters/html.pyc
106 106 /etc/SocExplorer/python/pygments/formatters/html.pyo
107 107 /etc/SocExplorer/python/pygments/formatters/img.py
108 108 /etc/SocExplorer/python/pygments/formatters/img.pyc
109 109 /etc/SocExplorer/python/pygments/formatters/img.pyo
110 110 /etc/SocExplorer/python/pygments/formatters/latex.py
111 111 /etc/SocExplorer/python/pygments/formatters/latex.pyc
112 112 /etc/SocExplorer/python/pygments/formatters/latex.pyo
113 113 /etc/SocExplorer/python/pygments/formatters/other.py
114 114 /etc/SocExplorer/python/pygments/formatters/other.pyc
115 115 /etc/SocExplorer/python/pygments/formatters/other.pyo
116 116 /etc/SocExplorer/python/pygments/formatters/rtf.py
117 117 /etc/SocExplorer/python/pygments/formatters/rtf.pyc
118 118 /etc/SocExplorer/python/pygments/formatters/rtf.pyo
119 119 /etc/SocExplorer/python/pygments/formatters/svg.py
120 120 /etc/SocExplorer/python/pygments/formatters/svg.pyc
121 121 /etc/SocExplorer/python/pygments/formatters/svg.pyo
122 122 /etc/SocExplorer/python/pygments/formatters/terminal.py
123 123 /etc/SocExplorer/python/pygments/formatters/terminal.pyc
124 124 /etc/SocExplorer/python/pygments/formatters/terminal.pyo
125 125 /etc/SocExplorer/python/pygments/formatters/terminal256.py
126 126 /etc/SocExplorer/python/pygments/formatters/terminal256.pyc
127 127 /etc/SocExplorer/python/pygments/formatters/terminal256.pyo
128 128 /etc/SocExplorer/python/pygments/lexer.py
129 129 /etc/SocExplorer/python/pygments/lexer.pyc
130 130 /etc/SocExplorer/python/pygments/lexer.pyo
131 131 /etc/SocExplorer/python/pygments/lexers/__init__.py
132 132 /etc/SocExplorer/python/pygments/lexers/__init__.pyc
133 133 /etc/SocExplorer/python/pygments/lexers/__init__.pyo
134 134 /etc/SocExplorer/python/pygments/lexers/_asybuiltins.py
135 135 /etc/SocExplorer/python/pygments/lexers/_asybuiltins.pyc
136 136 /etc/SocExplorer/python/pygments/lexers/_asybuiltins.pyo
137 137 /etc/SocExplorer/python/pygments/lexers/_clbuiltins.py
138 138 /etc/SocExplorer/python/pygments/lexers/_clbuiltins.pyc
139 139 /etc/SocExplorer/python/pygments/lexers/_clbuiltins.pyo
140 140 /etc/SocExplorer/python/pygments/lexers/_luabuiltins.py
141 141 /etc/SocExplorer/python/pygments/lexers/_luabuiltins.pyc
142 142 /etc/SocExplorer/python/pygments/lexers/_luabuiltins.pyo
143 143 /etc/SocExplorer/python/pygments/lexers/_mapping.py
144 144 /etc/SocExplorer/python/pygments/lexers/_mapping.pyc
145 145 /etc/SocExplorer/python/pygments/lexers/_mapping.pyo
146 146 /etc/SocExplorer/python/pygments/lexers/_phpbuiltins.py
147 147 /etc/SocExplorer/python/pygments/lexers/_phpbuiltins.pyc
148 148 /etc/SocExplorer/python/pygments/lexers/_phpbuiltins.pyo
149 149 /etc/SocExplorer/python/pygments/lexers/_postgres_builtins.py
150 150 /etc/SocExplorer/python/pygments/lexers/_postgres_builtins.pyc
151 151 /etc/SocExplorer/python/pygments/lexers/_postgres_builtins.pyo
152 152 /etc/SocExplorer/python/pygments/lexers/_scilab_builtins.py
153 153 /etc/SocExplorer/python/pygments/lexers/_scilab_builtins.pyc
154 154 /etc/SocExplorer/python/pygments/lexers/_scilab_builtins.pyo
155 155 /etc/SocExplorer/python/pygments/lexers/_vimbuiltins.py
156 156 /etc/SocExplorer/python/pygments/lexers/_vimbuiltins.pyc
157 157 /etc/SocExplorer/python/pygments/lexers/_vimbuiltins.pyo
158 158 /etc/SocExplorer/python/pygments/lexers/agile.py
159 159 /etc/SocExplorer/python/pygments/lexers/agile.pyc
160 160 /etc/SocExplorer/python/pygments/lexers/agile.pyo
161 161 /etc/SocExplorer/python/pygments/lexers/asm.py
162 162 /etc/SocExplorer/python/pygments/lexers/asm.pyc
163 163 /etc/SocExplorer/python/pygments/lexers/asm.pyo
164 164 /etc/SocExplorer/python/pygments/lexers/compiled.py
165 165 /etc/SocExplorer/python/pygments/lexers/compiled.pyc
166 166 /etc/SocExplorer/python/pygments/lexers/compiled.pyo
167 167 /etc/SocExplorer/python/pygments/lexers/dotnet.py
168 168 /etc/SocExplorer/python/pygments/lexers/dotnet.pyc
169 169 /etc/SocExplorer/python/pygments/lexers/dotnet.pyo
170 170 /etc/SocExplorer/python/pygments/lexers/functional.py
171 171 /etc/SocExplorer/python/pygments/lexers/functional.pyc
172 172 /etc/SocExplorer/python/pygments/lexers/functional.pyo
173 173 /etc/SocExplorer/python/pygments/lexers/hdl.py
174 174 /etc/SocExplorer/python/pygments/lexers/hdl.pyc
175 175 /etc/SocExplorer/python/pygments/lexers/hdl.pyo
176 176 /etc/SocExplorer/python/pygments/lexers/jvm.py
177 177 /etc/SocExplorer/python/pygments/lexers/jvm.pyc
178 178 /etc/SocExplorer/python/pygments/lexers/jvm.pyo
179 179 /etc/SocExplorer/python/pygments/lexers/math.py
180 180 /etc/SocExplorer/python/pygments/lexers/math.pyc
181 181 /etc/SocExplorer/python/pygments/lexers/math.pyo
182 182 /etc/SocExplorer/python/pygments/lexers/other.py
183 183 /etc/SocExplorer/python/pygments/lexers/other.pyc
184 184 /etc/SocExplorer/python/pygments/lexers/other.pyo
185 185 /etc/SocExplorer/python/pygments/lexers/parsers.py
186 186 /etc/SocExplorer/python/pygments/lexers/parsers.pyc
187 187 /etc/SocExplorer/python/pygments/lexers/parsers.pyo
188 188 /etc/SocExplorer/python/pygments/lexers/shell.py
189 189 /etc/SocExplorer/python/pygments/lexers/shell.pyc
190 190 /etc/SocExplorer/python/pygments/lexers/shell.pyo
191 191 /etc/SocExplorer/python/pygments/lexers/special.py
192 192 /etc/SocExplorer/python/pygments/lexers/special.pyc
193 193 /etc/SocExplorer/python/pygments/lexers/special.pyo
194 194 /etc/SocExplorer/python/pygments/lexers/sql.py
195 195 /etc/SocExplorer/python/pygments/lexers/sql.pyc
196 196 /etc/SocExplorer/python/pygments/lexers/sql.pyo
197 197 /etc/SocExplorer/python/pygments/lexers/templates.py
198 198 /etc/SocExplorer/python/pygments/lexers/templates.pyc
199 199 /etc/SocExplorer/python/pygments/lexers/templates.pyo
200 200 /etc/SocExplorer/python/pygments/lexers/text.py
201 201 /etc/SocExplorer/python/pygments/lexers/text.pyc
202 202 /etc/SocExplorer/python/pygments/lexers/text.pyo
203 203 /etc/SocExplorer/python/pygments/lexers/web.py
204 204 /etc/SocExplorer/python/pygments/lexers/web.pyc
205 205 /etc/SocExplorer/python/pygments/lexers/web.pyo
206 206 /etc/SocExplorer/python/pygments/plugin.py
207 207 /etc/SocExplorer/python/pygments/plugin.pyc
208 208 /etc/SocExplorer/python/pygments/plugin.pyo
209 209 /etc/SocExplorer/python/pygments/scanner.py
210 210 /etc/SocExplorer/python/pygments/scanner.pyc
211 211 /etc/SocExplorer/python/pygments/scanner.pyo
212 212 /etc/SocExplorer/python/pygments/style.py
213 213 /etc/SocExplorer/python/pygments/style.pyc
214 214 /etc/SocExplorer/python/pygments/style.pyo
215 215 /etc/SocExplorer/python/pygments/styles/__init__.py
216 216 /etc/SocExplorer/python/pygments/styles/__init__.pyc
217 217 /etc/SocExplorer/python/pygments/styles/__init__.pyo
218 218 /etc/SocExplorer/python/pygments/styles/autumn.py
219 219 /etc/SocExplorer/python/pygments/styles/autumn.pyc
220 220 /etc/SocExplorer/python/pygments/styles/autumn.pyo
221 221 /etc/SocExplorer/python/pygments/styles/borland.py
222 222 /etc/SocExplorer/python/pygments/styles/borland.pyc
223 223 /etc/SocExplorer/python/pygments/styles/borland.pyo
224 224 /etc/SocExplorer/python/pygments/styles/bw.py
225 225 /etc/SocExplorer/python/pygments/styles/bw.pyc
226 226 /etc/SocExplorer/python/pygments/styles/bw.pyo
227 227 /etc/SocExplorer/python/pygments/styles/colorful.py
228 228 /etc/SocExplorer/python/pygments/styles/colorful.pyc
229 229 /etc/SocExplorer/python/pygments/styles/colorful.pyo
230 230 /etc/SocExplorer/python/pygments/styles/default.py
231 231 /etc/SocExplorer/python/pygments/styles/default.pyc
232 232 /etc/SocExplorer/python/pygments/styles/default.pyo
233 233 /etc/SocExplorer/python/pygments/styles/emacs.py
234 234 /etc/SocExplorer/python/pygments/styles/emacs.pyc
235 235 /etc/SocExplorer/python/pygments/styles/emacs.pyo
236 236 /etc/SocExplorer/python/pygments/styles/friendly.py
237 237 /etc/SocExplorer/python/pygments/styles/friendly.pyc
238 238 /etc/SocExplorer/python/pygments/styles/friendly.pyo
239 239 /etc/SocExplorer/python/pygments/styles/fruity.py
240 240 /etc/SocExplorer/python/pygments/styles/fruity.pyc
241 241 /etc/SocExplorer/python/pygments/styles/fruity.pyo
242 242 /etc/SocExplorer/python/pygments/styles/manni.py
243 243 /etc/SocExplorer/python/pygments/styles/manni.pyc
244 244 /etc/SocExplorer/python/pygments/styles/manni.pyo
245 245 /etc/SocExplorer/python/pygments/styles/monokai.py
246 246 /etc/SocExplorer/python/pygments/styles/monokai.pyc
247 247 /etc/SocExplorer/python/pygments/styles/monokai.pyo
248 248 /etc/SocExplorer/python/pygments/styles/murphy.py
249 249 /etc/SocExplorer/python/pygments/styles/murphy.pyc
250 250 /etc/SocExplorer/python/pygments/styles/murphy.pyo
251 251 /etc/SocExplorer/python/pygments/styles/native.py
252 252 /etc/SocExplorer/python/pygments/styles/native.pyc
253 253 /etc/SocExplorer/python/pygments/styles/native.pyo
254 254 /etc/SocExplorer/python/pygments/styles/pastie.py
255 255 /etc/SocExplorer/python/pygments/styles/pastie.pyc
256 256 /etc/SocExplorer/python/pygments/styles/pastie.pyo
257 257 /etc/SocExplorer/python/pygments/styles/perldoc.py
258 258 /etc/SocExplorer/python/pygments/styles/perldoc.pyc
259 259 /etc/SocExplorer/python/pygments/styles/perldoc.pyo
260 260 /etc/SocExplorer/python/pygments/styles/rrt.py
261 261 /etc/SocExplorer/python/pygments/styles/rrt.pyc
262 262 /etc/SocExplorer/python/pygments/styles/rrt.pyo
263 263 /etc/SocExplorer/python/pygments/styles/tango.py
264 264 /etc/SocExplorer/python/pygments/styles/tango.pyc
265 265 /etc/SocExplorer/python/pygments/styles/tango.pyo
266 266 /etc/SocExplorer/python/pygments/styles/trac.py
267 267 /etc/SocExplorer/python/pygments/styles/trac.pyc
268 268 /etc/SocExplorer/python/pygments/styles/trac.pyo
269 269 /etc/SocExplorer/python/pygments/styles/vim.py
270 270 /etc/SocExplorer/python/pygments/styles/vim.pyc
271 271 /etc/SocExplorer/python/pygments/styles/vim.pyo
272 272 /etc/SocExplorer/python/pygments/styles/vs.py
273 273 /etc/SocExplorer/python/pygments/styles/vs.pyc
274 274 /etc/SocExplorer/python/pygments/styles/vs.pyo
275 275 /etc/SocExplorer/python/pygments/token.py
276 276 /etc/SocExplorer/python/pygments/token.pyc
277 277 /etc/SocExplorer/python/pygments/token.pyo
278 278 /etc/SocExplorer/python/pygments/unistring.py
279 279 /etc/SocExplorer/python/pygments/unistring.pyc
280 280 /etc/SocExplorer/python/pygments/unistring.pyo
281 281 /etc/SocExplorer/python/pygments/util.py
282 282 /etc/SocExplorer/python/pygments/util.pyc
283 283 /etc/SocExplorer/python/pygments/util.pyo
284 284 /etc/SocExplorer/plugin.conf.d/plugins.conf
285 285 %{_bindir}/SocExplorer_TCP_Terminal
286 286 %{_bindir}/socexplorer
287 287 %{_datadir}/SocExplorer/icon.png
288 288 %{_datadir}/SocExplorer/Grlib.xml
289 289 %{_datadir}/SocExplorer/LPP.xml
290 290 %{_datadir}/SocExplorer/IAP.xml
291 291 %{_datadir}/applications/socexplorer.desktop
292 292 %{_datadir}/appdata/socexplorer.appdata.xml
293 293 %{_qt5_libdir}/libsocexplorercommon.so*
294 294 %{_qt5_libdir}/libsocexplorerengine.so*
295 295
296 296
297 297 %files devel
298 298 %{_qt5_headerdir}/SocExplorer/
299 299 %{_qt5_archdatadir}/mkspecs/features/socexplorerplugin.prf
300 300 /usr/share/qtcreator/templates/wizards/SocExplorerPlugin/plugin.cpp
301 301 /usr/share/qtcreator/templates/wizards/SocExplorerPlugin/plugin.h
302 302 /usr/share/qtcreator/templates/wizards/SocExplorerPlugin/project.pro
303 303 /usr/share/qtcreator/templates/wizards/SocExplorerPlugin/wizard.xml
304 304
305 305
306 306 %changelog
307 * Thu Apr 2 2015 Alexis Jeandet <alexis.jeandet@member.fsf.org> - 0.6
308 -Uses r80 as source.
309 -Removed GenericPySysdriver interface, now socexplorer plugins can be subclassed in python.
310
307 311 * Thu Mar 26 2015 Alexis Jeandet <alexis.jeandet@member.fsf.org> - 0.5
308 312 -Uses r77 as source.
309 313
310 314 * Mon Mar 9 2015 Alexis Jeandet <alexis.jeandet@member.fsf.org> - 0.4
311 315 - Uses r75 as source.
312 316
313 317 * Tue Feb 10 2015 Alexis Jeandet <alexis.jeandet@member.fsf.org> - 0.4
314 318 - Uses r74 as source.
315 319
316 320 * Fri Feb 6 2015 Alexis Jeandet <alexis.jeandet@member.fsf.org> - 0.4
317 321 - Reseted patches uses r73 as source.
318 322
319 323 * Tue Dec 30 2014 Alexis Jeandet <alexis.jeandet@member.fsf.org> - 0.4
320 324 - Reseted patches uses r72 as source.
321 325
322 326 * Sun Jun 29 2014 Alexis Jeandet <alexis.jeandet@member.fsf.org> - 0.4
323 327 - Reseted patches uses r69 as source.
324 328
325 329 * Sat Jun 28 2014 Alexis Jeandet <alexis.jeandet@member.fsf.org> - 0.4
326 330 - Applied patch r65 to install also plugin as RPM
327 331 - Applied patch r66 to install xml soc descriptions in /usr/share/SocExplorer
328 332 - Applied patch r67 to add appdata for gnome-software visibility
329 333
330 334 * Tue Jun 24 2014 Alexis Jeandet <alexis.jeandet@member.fsf.org> - 0.4
331 335 - Initial Fedora packaging
General Comments 0
You need to be logged in to leave comments. Login now