Hi,
I am writing two different Qt creator plugin applications. Some of their dependencies(plugins) are common. So i am trying to switch the included plugins.
For first application I renamed qtcreator.pro to app1.pro and th second application to app2.pro.
In the first .pro file Ive added " CONFIG += BUILD_FOR_APP1 " , and for the second .pro file I ve added " CONFIG += BUILD_FOR_APP2 " on top of the pro file.
To check the configuration setting; in qtcreator.pri I wrote:
for(p, CONFIG) {
message($${p})
}
for(p, CONFIG) {
message($${p})
}
To copy to clipboard, switch view to plain text mode
In debug output I can see that my BUILD_FOR_APPX configuration is active, no poblem. And also
BUILD_FOR_APPX{
message(APPX Plugin activated)
}
BUILD_FOR_APPX{
message(APPX Plugin activated)
}
To copy to clipboard, switch view to plain text mode
prints correctly to output pane.
But when i run the same qmake script in plugins.pro, i see that no such configuration exists; although plugins.pro includes qtcreator.pri . So i cannot select the right plugins according to the configuration.
What is the problem here. How can I make "BUILD_FOR_APPX configuration" global to all project including sub projects?
Thanks in advance,
Yigit
Bookmarks