@@ -1,174 +1,174 | |||||
1 | SOCEXPLORER_ROOT = \"$${PWD}/../..\" |
|
1 | SOCEXPLORER_ROOT = \"$${PWD}/../..\" | |
2 |
|
2 | |||
3 | include($${PWD}/../../build_cfg/socexplorer.pri) |
|
3 | include($${PWD}/../../build_cfg/socexplorer.pri) | |
4 |
|
4 | |||
5 | TARGET = socexplorerengine$${DEBUG_EXT} |
|
5 | TARGET = socexplorerengine$${DEBUG_EXT} | |
6 | TEMPLATE = lib |
|
6 | TEMPLATE = lib | |
7 |
|
7 | |||
8 | #more verbose plugin loader to debug plugin loading issues such as dependencies issues |
|
8 | #more verbose plugin loader to debug plugin loading issues such as dependencies issues | |
9 | SOCEXPLORER_PLUGIN_LOADER="custom" |
|
9 | SOCEXPLORER_PLUGIN_LOADER="custom" | |
10 |
|
10 | |||
11 | SOCEXPLORER_CHAGESETNUM=$$system(hg id) |
|
11 | SOCEXPLORER_CHAGESETNUM=$$system(hg id) | |
12 | isEmpty(SOCEXPLORER_CHAGESETNUM){ |
|
12 | isEmpty(SOCEXPLORER_CHAGESETNUM){ | |
13 |
SOCEXPLORER_CHAGESETNUM= |
|
13 | SOCEXPLORER_CHAGESETNUM=e9c30654210d+ | |
14 | } |
|
14 | } | |
15 | SOCEXPLORER_CHAGESETNUMSTR = '\\"$${SOCEXPLORER_CHAGESETNUM}\\"' |
|
15 | SOCEXPLORER_CHAGESETNUMSTR = '\\"$${SOCEXPLORER_CHAGESETNUM}\\"' | |
16 | SOCEXPLORER_BRANCH=$$system(hg branch) |
|
16 | SOCEXPLORER_BRANCH=$$system(hg branch) | |
17 | isEmpty(SOCEXPLORER_BRANCH){ |
|
17 | isEmpty(SOCEXPLORER_BRANCH){ | |
18 | SOCEXPLORER_BRANCH=default |
|
18 | SOCEXPLORER_BRANCH=default | |
19 | } |
|
19 | } | |
20 | SOCEXPLORER_BRANCHSTR = '\\"$${SOCEXPLORER_BRANCH}\\"' |
|
20 | SOCEXPLORER_BRANCHSTR = '\\"$${SOCEXPLORER_BRANCH}\\"' | |
21 |
|
21 | |||
22 |
DEFINES += SOCEXPLORER_VERSION="\"\\\"0.6. |
|
22 | DEFINES += SOCEXPLORER_VERSION="\"\\\"0.6.2"\\\"\" | |
23 | DEFINES += SOCEXPLORER_CHAGESET=\"$${SOCEXPLORER_CHAGESETNUMSTR}\" |
|
23 | DEFINES += SOCEXPLORER_CHAGESET=\"$${SOCEXPLORER_CHAGESETNUMSTR}\" | |
24 | DEFINES += SOCEXPLORER_BRANCH=\"$${SOCEXPLORER_BRANCHSTR}\" |
|
24 | DEFINES += SOCEXPLORER_BRANCH=\"$${SOCEXPLORER_BRANCHSTR}\" | |
25 |
|
25 | |||
26 |
|
26 | |||
27 | message("Building SOCEXPLORER changeset $${SOCEXPLORER_CHAGESETNUM}") |
|
27 | message("Building SOCEXPLORER changeset $${SOCEXPLORER_CHAGESETNUM}") | |
28 |
|
28 | |||
29 | DEFINES += SOCEXPLORER_EXPORTS |
|
29 | DEFINES += SOCEXPLORER_EXPORTS | |
30 |
|
30 | |||
31 | include ( plugins/socexplorerplugin.prf ) |
|
31 | include ( plugins/socexplorerplugin.prf ) | |
32 | include ( PeripheralWidget/PeripheralWidget.pri) |
|
32 | include ( PeripheralWidget/PeripheralWidget.pri) | |
33 |
|
33 | |||
34 | win32:CONFIG += dll |
|
34 | win32:CONFIG += dll | |
35 | win32:CONFIG -= static |
|
35 | win32:CONFIG -= static | |
36 | win32:LIBS+=-L$${SOCEXPLORER_ROOT}/bin/win32 -lsocexplorercommon$${DEBUG_EXT} |
|
36 | win32:LIBS+=-L$${SOCEXPLORER_ROOT}/bin/win32 -lsocexplorercommon$${DEBUG_EXT} | |
37 |
|
37 | |||
38 | contains(SOCEXPLORER_PLUGIN_LOADER,"custom") |
|
38 | contains(SOCEXPLORER_PLUGIN_LOADER,"custom") | |
39 | { |
|
39 | { | |
40 | unix:LIBS+= -ldl |
|
40 | unix:LIBS+= -ldl | |
41 | unix:DEFINES += SOCEXPLORER_CUSTOM_PLUGIN_LOADER |
|
41 | unix:DEFINES += SOCEXPLORER_CUSTOM_PLUGIN_LOADER | |
42 | unix:HEADERS += \ |
|
42 | unix:HEADERS += \ | |
43 | pluginloader/unix/unixpluginloader.h |
|
43 | pluginloader/unix/unixpluginloader.h | |
44 | unix:SOURCES += \ |
|
44 | unix:SOURCES += \ | |
45 | pluginloader/unix/unixpluginloader.cpp |
|
45 | pluginloader/unix/unixpluginloader.cpp | |
46 | } |
|
46 | } | |
47 |
|
47 | |||
48 | target.path = $$[QT_INSTALL_LIBS] |
|
48 | target.path = $$[QT_INSTALL_LIBS] | |
49 | isEmpty(target.path) { |
|
49 | isEmpty(target.path) { | |
50 | error(can\'t get QT_INSTALL_LIBS) |
|
50 | error(can\'t get QT_INSTALL_LIBS) | |
51 | } |
|
51 | } | |
52 |
|
52 | |||
53 | header.path = $$[QT_INSTALL_HEADERS]/SocExplorer |
|
53 | header.path = $$[QT_INSTALL_HEADERS]/SocExplorer | |
54 | header.files = engine/socexplorerengine.h \ |
|
54 | header.files = engine/socexplorerengine.h \ | |
55 | pluginloader/pluginscache.h \ |
|
55 | pluginloader/pluginscache.h \ | |
56 | plugins/socexplorerplugin.h \ |
|
56 | plugins/socexplorerplugin.h \ | |
57 | proxy/socexplorerproxy.h \ |
|
57 | proxy/socexplorerproxy.h \ | |
58 | engine/socexplorerxmlfile.h \ |
|
58 | engine/socexplorerxmlfile.h \ | |
59 | SOC/socexplorerenumdevice.h \ |
|
59 | SOC/socexplorerenumdevice.h \ | |
60 | XmlEngine/XMLmodel.h \ |
|
60 | XmlEngine/XMLmodel.h \ | |
61 | XmlEngine/XMLdata.h \ |
|
61 | XmlEngine/XMLdata.h \ | |
62 | XmlEngine/xmldriver.h \ |
|
62 | XmlEngine/xmldriver.h \ | |
63 | SOC/socmodel.h \ |
|
63 | SOC/socmodel.h \ | |
64 | SOC/registerdata.h \ |
|
64 | SOC/registerdata.h \ | |
65 | SOC/socclk.h \ |
|
65 | SOC/socclk.h \ | |
66 | PeripheralWidget/src/peripheralwidget.h \ |
|
66 | PeripheralWidget/src/peripheralwidget.h \ | |
67 | PeripheralWidget/src/registerwidget.h \ |
|
67 | PeripheralWidget/src/registerwidget.h \ | |
68 | PeripheralWidget/src/socregsviewer.h \ |
|
68 | PeripheralWidget/src/socregsviewer.h \ | |
69 | PeripheralWidget/src/socregsviewernew.h \ |
|
69 | PeripheralWidget/src/socregsviewernew.h \ | |
70 | memtester/memtester.h |
|
70 | memtester/memtester.h | |
71 |
|
71 | |||
72 |
|
72 | |||
73 |
|
73 | |||
74 | isEmpty(header.path) { |
|
74 | isEmpty(header.path) { | |
75 | error(can\'t get QT_INSTALL_HEADERS) |
|
75 | error(can\'t get QT_INSTALL_HEADERS) | |
76 | } |
|
76 | } | |
77 |
|
77 | |||
78 | pluginif.files = pluginsInterface/*.h \ |
|
78 | pluginif.files = pluginsInterface/*.h \ | |
79 | pluginsInterface/*.cpp |
|
79 | pluginsInterface/*.cpp | |
80 |
|
80 | |||
81 | pluginif.path = $$[QT_INSTALL_HEADERS]/SocExplorer/pluginsInterface |
|
81 | pluginif.path = $$[QT_INSTALL_HEADERS]/SocExplorer/pluginsInterface | |
82 |
|
82 | |||
83 |
|
83 | |||
84 | INSTALLS += target header pluginif |
|
84 | INSTALLS += target header pluginif | |
85 |
|
85 | |||
86 | INCLUDEPATH += engine \ |
|
86 | INCLUDEPATH += engine \ | |
87 | pluginloader \ |
|
87 | pluginloader \ | |
88 | pluginsInterface \ |
|
88 | pluginsInterface \ | |
89 | proxy \ |
|
89 | proxy \ | |
90 | plugins \ |
|
90 | plugins \ | |
91 | pluginManagerWdgt \ |
|
91 | pluginManagerWdgt \ | |
92 | ../common \ |
|
92 | ../common \ | |
93 | ../common/genericBinaryFiles \ |
|
93 | ../common/genericBinaryFiles \ | |
94 | ../ \ |
|
94 | ../ \ | |
95 | RegisterMVS \ |
|
95 | RegisterMVS \ | |
96 | XmlEngine \ |
|
96 | XmlEngine \ | |
97 | SOC \ |
|
97 | SOC \ | |
98 | PeripheralWidget/src \ |
|
98 | PeripheralWidget/src \ | |
99 | memtester |
|
99 | memtester | |
100 |
|
100 | |||
101 |
|
101 | |||
102 | HEADERS += \ |
|
102 | HEADERS += \ | |
103 | pluginloader/pluginscache.h \ |
|
103 | pluginloader/pluginscache.h \ | |
104 | pluginloader/pluginloader.h \ |
|
104 | pluginloader/pluginloader.h \ | |
105 | pluginManagerWdgt/plugintree.h \ |
|
105 | pluginManagerWdgt/plugintree.h \ | |
106 | pluginManagerWdgt/pluginmanagerWDGT.h \ |
|
106 | pluginManagerWdgt/pluginmanagerWDGT.h \ | |
107 | pluginManagerWdgt/pluginlist.h \ |
|
107 | pluginManagerWdgt/pluginlist.h \ | |
108 | pluginManagerWdgt/plugininfoswdgt.h \ |
|
108 | pluginManagerWdgt/plugininfoswdgt.h \ | |
109 | XmlEngine/XMLmodel.h \ |
|
109 | XmlEngine/XMLmodel.h \ | |
110 | XmlEngine/XMLdata.h \ |
|
110 | XmlEngine/XMLdata.h \ | |
111 | SOC/socmodel.h \ |
|
111 | SOC/socmodel.h \ | |
112 | SOC/registerdata.h \ |
|
112 | SOC/registerdata.h \ | |
113 | XmlEngine/xmldriver.h \ |
|
113 | XmlEngine/xmldriver.h \ | |
114 | PeripheralWidget/src/peripheralwidget.h \ |
|
114 | PeripheralWidget/src/peripheralwidget.h \ | |
115 | PeripheralWidget/src/registerwidget.h \ |
|
115 | PeripheralWidget/src/registerwidget.h \ | |
116 | PeripheralWidget/src/socregsviewer.h \ |
|
116 | PeripheralWidget/src/socregsviewer.h \ | |
117 | SOC/socclk.h \ |
|
117 | SOC/socclk.h \ | |
118 | engine/socexplorerengine.h \ |
|
118 | engine/socexplorerengine.h \ | |
119 | engine/socexplorerxmlfile.h \ |
|
119 | engine/socexplorerxmlfile.h \ | |
120 | plugins/socexplorerplugin.h \ |
|
120 | plugins/socexplorerplugin.h \ | |
121 | pluginsInterface/socexplorerplugininterface.h \ |
|
121 | pluginsInterface/socexplorerplugininterface.h \ | |
122 | pluginsInterface/socexplorerplugininterface_global.h \ |
|
122 | pluginsInterface/socexplorerplugininterface_global.h \ | |
123 | proxy/socexplorerproxy.h \ |
|
123 | proxy/socexplorerproxy.h \ | |
124 | SOC/socexplorerenumdevice.h \ |
|
124 | SOC/socexplorerenumdevice.h \ | |
125 | PySocExplorerEngine.h \ |
|
125 | PySocExplorerEngine.h \ | |
126 | memtester/memtester.h\ |
|
126 | memtester/memtester.h\ | |
127 | PeripheralWidget/src/socregsviewernew.h \ |
|
127 | PeripheralWidget/src/socregsviewernew.h \ | |
128 | PeripheralWidget/src/collapsableperipheralwidget.h |
|
128 | PeripheralWidget/src/collapsableperipheralwidget.h | |
129 |
|
129 | |||
130 |
|
130 | |||
131 |
|
131 | |||
132 |
|
132 | |||
133 |
|
133 | |||
134 |
|
134 | |||
135 | SOURCES += \ |
|
135 | SOURCES += \ | |
136 | pluginloader/pluginscache.cpp \ |
|
136 | pluginloader/pluginscache.cpp \ | |
137 | pluginloader/pluginloader.cpp \ |
|
137 | pluginloader/pluginloader.cpp \ | |
138 | pluginManagerWdgt/plugintree.cpp \ |
|
138 | pluginManagerWdgt/plugintree.cpp \ | |
139 | pluginManagerWdgt/pluginmanagerWDGT.cpp \ |
|
139 | pluginManagerWdgt/pluginmanagerWDGT.cpp \ | |
140 | pluginManagerWdgt/pluginlist.cpp \ |
|
140 | pluginManagerWdgt/pluginlist.cpp \ | |
141 | pluginManagerWdgt/plugininfoswdgt.cpp \ |
|
141 | pluginManagerWdgt/plugininfoswdgt.cpp \ | |
142 | XmlEngine/XMLmodel.cpp \ |
|
142 | XmlEngine/XMLmodel.cpp \ | |
143 | XmlEngine/XMLdata.cpp \ |
|
143 | XmlEngine/XMLdata.cpp \ | |
144 | SOC/socmodel.cpp \ |
|
144 | SOC/socmodel.cpp \ | |
145 | SOC/registerdata.cpp \ |
|
145 | SOC/registerdata.cpp \ | |
146 | XmlEngine/xmldriver.cpp \ |
|
146 | XmlEngine/xmldriver.cpp \ | |
147 | PeripheralWidget/src/peripheralwidget.cpp \ |
|
147 | PeripheralWidget/src/peripheralwidget.cpp \ | |
148 | PeripheralWidget/src/registerwidget.cpp \ |
|
148 | PeripheralWidget/src/registerwidget.cpp \ | |
149 | PeripheralWidget/src/socregsviewer.cpp \ |
|
149 | PeripheralWidget/src/socregsviewer.cpp \ | |
150 | SOC/socclk.cpp \ |
|
150 | SOC/socclk.cpp \ | |
151 | engine/socexplorerengine.cpp \ |
|
151 | engine/socexplorerengine.cpp \ | |
152 | engine/socexplorerxmlfile.cpp \ |
|
152 | engine/socexplorerxmlfile.cpp \ | |
153 | proxy/socexplorerproxy.cpp \ |
|
153 | proxy/socexplorerproxy.cpp \ | |
154 | SOC/socexplorerenumdevice.cpp \ |
|
154 | SOC/socexplorerenumdevice.cpp \ | |
155 | plugins/socexplorerplugin.cpp \ |
|
155 | plugins/socexplorerplugin.cpp \ | |
156 | memtester/memtester.cpp \ |
|
156 | memtester/memtester.cpp \ | |
157 | PeripheralWidget/src/socregsviewernew.cpp \ |
|
157 | PeripheralWidget/src/socregsviewernew.cpp \ | |
158 | PeripheralWidget/src/collapsableperipheralwidget.cpp |
|
158 | PeripheralWidget/src/collapsableperipheralwidget.cpp | |
159 |
|
159 | |||
160 |
|
160 | |||
161 | OTHER_FILES += \ |
|
161 | OTHER_FILES += \ | |
162 | plugins/socexplorerplugin.cpp \ |
|
162 | plugins/socexplorerplugin.cpp \ | |
163 | pluginsInterface/socexplorerplugininterface.cpp \ |
|
163 | pluginsInterface/socexplorerplugininterface.cpp \ | |
164 | plugins/socexplorerplugin.prf \ |
|
164 | plugins/socexplorerplugin.prf \ | |
165 | pythongenerator.sh \ |
|
165 | pythongenerator.sh \ | |
166 | pythonQtgeneratorCfg.txt |
|
166 | pythonQtgeneratorCfg.txt | |
167 |
|
167 | |||
168 | FORMS += \ |
|
168 | FORMS += \ | |
169 | PeripheralWidget/src/socregsviewernew.ui \ |
|
169 | PeripheralWidget/src/socregsviewernew.ui \ | |
170 | PeripheralWidget/src/collapsableperipheralwidget.ui |
|
170 | PeripheralWidget/src/collapsableperipheralwidget.ui | |
171 |
|
171 | |||
172 |
|
172 | |||
173 | RESOURCES += \ |
|
173 | RESOURCES += \ | |
174 | PeripheralWidget/ressources/peripheralwidget.qrc |
|
174 | PeripheralWidget/ressources/peripheralwidget.qrc |
General Comments 0
You need to be logged in to leave comments.
Login now