How to do condition compilation in .pro file?
-
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.
-
Hi and welcome to devnet,
qmake's QMAKE_HOST.arch might be what you are looking for.
@SGaist That does help yes. Now I have the problem of specifying how to build the .asm files. Is there a way to specify a rule in the .pro for that? Thanks.
-
You can add a custom compiler like shown here.