How to do condition compilation in .pro file?
Unsolved
General and Desktop
-
I've got several asm files that are each custom code suited to the CPU type. I need to be able to use NASM or AS to compile the correct asm file for the CPU type to generate the needed .o file. Has the .pro file format got any support for conditional compilation like this?
-
Hi and welcome to devnet,
qmake's QMAKE_HOST.arch might be what you are looking for.
-
You can add a custom compiler like shown here.