The project tree is a bit complicated. I dont want to make any changes on .pri files. I am trying to solve the problem with 2 different .pro files. In one of them i have:
DEFINES += MIKRODIAGRAM_EDITOR
DEFINES += MIKRODIAGRAM_EDITOR
To copy to clipboard, switch view to plain text mode
and in the other one i have:
DEFINES += MIKROSCADA_EDITOR
DEFINES += MIKROSCADA_EDITOR
To copy to clipboard, switch view to plain text mode
The definition is not valid on the sub .pro and .pri files. The code below is in one of the sub .pro files:
contains(DEFINES, MIKRODIAGRAM_EDITOR) {
SUBDIRS += diagramEditor
warning(DiagramEditor Plugin activated)
}
else{
SUBDIRS += scadaEditor
warning(ScadaEditor Plugin activated)
}
contains(DEFINES, MIKRODIAGRAM_EDITOR) {
SUBDIRS += diagramEditor
warning(DiagramEditor Plugin activated)
}
else{
SUBDIRS += scadaEditor
warning(ScadaEditor Plugin activated)
}
To copy to clipboard, switch view to plain text mode
always returns "ScadaEditor Plugin activated". Isn't the scope of DEFINES valid through all the project?
Bookmarks