Originally Posted by
yagabey
The variables are set in app1.pro or app2.pro. "plugins.pro" does not include these pro files but it includes "qtcreator.pri"
From what you've written earlier the variable is either set in app1.pro or app2.pro, not in qtcreator.pri
If plugin.pro does not include either, how would it get the value?
Lets look at the the same situation in C++
// app1.h
#define SOMEDEFINE 1
// app1.h
#define SOMEDEFINE 1
To copy to clipboard, switch view to plain text mode
// app2.h
#define SOMEDEFINE 0
// app2.h
#define SOMEDEFINE 0
To copy to clipboard, switch view to plain text mode
// common.h
#ifdef SOMEDEFINE
#else
#endif
// common.h
#ifdef SOMEDEFINE
#else
#endif
To copy to clipboard, switch view to plain text mode
// plugin.h
#include "common.h"
// plugin.h
#include "common.h"
To copy to clipboard, switch view to plain text mode
plugin.h does neither include app1.h nor app2.h, so it has not way of seeing the define, right?
Originally Posted by
yagabey
isEqual(SCADA_EDITOR,0) {
DEFINES += HELLO_WORLD_TEST
}else {
DEFINES += HELLO_MOON_TEST
}
Hmm, maybe isEqual($$SCADA_EDITOR,0)
Cheers,
_
Bookmarks