PDA

View Full Version : Need help with QMAKE_EXTRA_UNIX_COMPILERS



lni
8th March 2007, 16:07
Hi,

I need to add additional config handler to generate pre-process header, as


ser.input = SER_HEADERS
ser.output = ser_${QMAKE_FILE_NAME}
ser.commands = $$SER_CC ${QMAKE_FILE_NAME}
QMAKE_EXTRA_UNIX_COMPILERS += ser


where $$SER_CC is my own compiler, which will generate a ASCII header file. The problem is that when linking to create the executable, the "ser.output" is treated as an object files and is linked in to create the executable. Of course the linking fails.

How can I have a rule not to link with the "ser" outputs?

Thanks.

lni
8th March 2007, 16:11
Got it, I need to add


ser.CONFIG = no_link


Thanks anyway