Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

QMake DEFINES variable

$
0
0
Hi, I’ve got a function call in a SDK that is not defined any more so I need to remove it. I don’t really want to touch the SDK source code so I thought that I could use a macro to remove the call, this works fine: #define functionToRemove(arg) functionToRemove("test"); But this implies to modify the SDK or one of the included files and as I said, I’d rather not. Is it possible to write that #define inside the .pro file? I tried many combinations with the DEFINES variable but none seems to work. DEFINES += functionToRemove(arg) DEFINES += functionToRemove(arg)= DEFINES += "functionToRemove(arg)=" DEFINES += functionToRemove(arg)=/**/ DEFINES += "functionToRemove(arg)=/**/" Did I miss something or is it just not possible to do that kind of things?

Viewing all articles
Browse latest Browse all 18427

Trending Articles