@@ -1,166 +1,166 | |||||
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=7e54838aea98+ | |
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.4. |
|
22 | DEFINES += SOCEXPLORER_VERSION="\"\\\"0.4.8"\\\"\" | |
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 | plugins/genericPySysdriver.h \ |
|
60 | plugins/genericPySysdriver.h \ | |
61 | XmlEngine/XMLmodel.h \ |
|
61 | XmlEngine/XMLmodel.h \ | |
62 | XmlEngine/XMLdata.h \ |
|
62 | XmlEngine/XMLdata.h \ | |
63 | XmlEngine/xmldriver.h \ |
|
63 | XmlEngine/xmldriver.h \ | |
64 | SOC/socmodel.h \ |
|
64 | SOC/socmodel.h \ | |
65 | SOC/registerdata.h \ |
|
65 | SOC/registerdata.h \ | |
66 | SOC/socclk.h \ |
|
66 | SOC/socclk.h \ | |
67 | PeripheralWidget/src/peripheralwidget.h \ |
|
67 | PeripheralWidget/src/peripheralwidget.h \ | |
68 | PeripheralWidget/src/registerwidget.h \ |
|
68 | PeripheralWidget/src/registerwidget.h \ | |
69 | PeripheralWidget/src/socregsviewer.h \ |
|
69 | PeripheralWidget/src/socregsviewer.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 | plugins/genericPySysdriver.h \ |
|
105 | plugins/genericPySysdriver.h \ | |
106 | pluginManagerWdgt/plugintree.h \ |
|
106 | pluginManagerWdgt/plugintree.h \ | |
107 | pluginManagerWdgt/pluginmanagerWDGT.h \ |
|
107 | pluginManagerWdgt/pluginmanagerWDGT.h \ | |
108 | pluginManagerWdgt/pluginlist.h \ |
|
108 | pluginManagerWdgt/pluginlist.h \ | |
109 | pluginManagerWdgt/plugininfoswdgt.h \ |
|
109 | pluginManagerWdgt/plugininfoswdgt.h \ | |
110 | XmlEngine/XMLmodel.h \ |
|
110 | XmlEngine/XMLmodel.h \ | |
111 | XmlEngine/XMLdata.h \ |
|
111 | XmlEngine/XMLdata.h \ | |
112 | SOC/socmodel.h \ |
|
112 | SOC/socmodel.h \ | |
113 | SOC/registerdata.h \ |
|
113 | SOC/registerdata.h \ | |
114 | XmlEngine/xmldriver.h \ |
|
114 | XmlEngine/xmldriver.h \ | |
115 | PeripheralWidget/src/peripheralwidget.h \ |
|
115 | PeripheralWidget/src/peripheralwidget.h \ | |
116 | PeripheralWidget/src/registerwidget.h \ |
|
116 | PeripheralWidget/src/registerwidget.h \ | |
117 | PeripheralWidget/src/socregsviewer.h \ |
|
117 | PeripheralWidget/src/socregsviewer.h \ | |
118 | SOC/socclk.h \ |
|
118 | SOC/socclk.h \ | |
119 | engine/socexplorerengine.h \ |
|
119 | engine/socexplorerengine.h \ | |
120 | engine/socexplorerxmlfile.h \ |
|
120 | engine/socexplorerxmlfile.h \ | |
121 | plugins/socexplorerplugin.h \ |
|
121 | plugins/socexplorerplugin.h \ | |
122 | pluginsInterface/socexplorerplugininterface.h \ |
|
122 | pluginsInterface/socexplorerplugininterface.h \ | |
123 | pluginsInterface/socexplorerplugininterface_global.h \ |
|
123 | pluginsInterface/socexplorerplugininterface_global.h \ | |
124 | proxy/socexplorerproxy.h \ |
|
124 | proxy/socexplorerproxy.h \ | |
125 | SOC/socexplorerenumdevice.h \ |
|
125 | SOC/socexplorerenumdevice.h \ | |
126 | PySocExplorerEngine.h \ |
|
126 | PySocExplorerEngine.h \ | |
127 | memtester/memtester.h |
|
127 | memtester/memtester.h | |
128 |
|
128 | |||
129 |
|
129 | |||
130 |
|
130 | |||
131 |
|
131 | |||
132 |
|
132 | |||
133 |
|
133 | |||
134 | SOURCES += \ |
|
134 | SOURCES += \ | |
135 | pluginloader/pluginscache.cpp \ |
|
135 | pluginloader/pluginscache.cpp \ | |
136 | pluginloader/pluginloader.cpp \ |
|
136 | pluginloader/pluginloader.cpp \ | |
137 | pluginManagerWdgt/plugintree.cpp \ |
|
137 | pluginManagerWdgt/plugintree.cpp \ | |
138 | pluginManagerWdgt/pluginmanagerWDGT.cpp \ |
|
138 | pluginManagerWdgt/pluginmanagerWDGT.cpp \ | |
139 | pluginManagerWdgt/pluginlist.cpp \ |
|
139 | pluginManagerWdgt/pluginlist.cpp \ | |
140 | pluginManagerWdgt/plugininfoswdgt.cpp \ |
|
140 | pluginManagerWdgt/plugininfoswdgt.cpp \ | |
141 | XmlEngine/XMLmodel.cpp \ |
|
141 | XmlEngine/XMLmodel.cpp \ | |
142 | XmlEngine/XMLdata.cpp \ |
|
142 | XmlEngine/XMLdata.cpp \ | |
143 | SOC/socmodel.cpp \ |
|
143 | SOC/socmodel.cpp \ | |
144 | SOC/registerdata.cpp \ |
|
144 | SOC/registerdata.cpp \ | |
145 | XmlEngine/xmldriver.cpp \ |
|
145 | XmlEngine/xmldriver.cpp \ | |
146 | PeripheralWidget/src/peripheralwidget.cpp \ |
|
146 | PeripheralWidget/src/peripheralwidget.cpp \ | |
147 | PeripheralWidget/src/registerwidget.cpp \ |
|
147 | PeripheralWidget/src/registerwidget.cpp \ | |
148 | PeripheralWidget/src/socregsviewer.cpp \ |
|
148 | PeripheralWidget/src/socregsviewer.cpp \ | |
149 | SOC/socclk.cpp \ |
|
149 | SOC/socclk.cpp \ | |
150 | plugins/genericPySysdriver.cpp \ |
|
150 | plugins/genericPySysdriver.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 |
|
157 | |||
158 |
|
158 | |||
159 | OTHER_FILES += \ |
|
159 | OTHER_FILES += \ | |
160 | plugins/socexplorerplugin.cpp \ |
|
160 | plugins/socexplorerplugin.cpp \ | |
161 | pluginsInterface/socexplorerplugininterface.cpp \ |
|
161 | pluginsInterface/socexplorerplugininterface.cpp \ | |
162 | plugins/socexplorerplugin.prf \ |
|
162 | plugins/socexplorerplugin.prf \ | |
163 | pythongenerator.sh \ |
|
163 | pythongenerator.sh \ | |
164 | pythonQtgeneratorCfg.txt |
|
164 | pythonQtgeneratorCfg.txt | |
165 |
|
165 | |||
166 |
|
166 |
General Comments 0
You need to be logged in to leave comments.
Login now