Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Identifier for win64 configuration in Qmake

Is there a "win64" identifier in Qmake project files? Qt Qmake advanced documentation does not mention other than unix / macx / win32.

So far I've tried using:

win32:message("using win32") win64:message("using win64") amd64:message("using amd64") 

The result is always "using win32".

Must I use a separate project-file for x32 and x64 projects, so they would compile against correct libraries? Is there any other way to identify between 32-bit and 64-bit environments?

like image 494
Tuminoid Avatar asked Dec 10 '08 16:12

Tuminoid


1 Answers

I do it like this

win32 {      ## Windows common build here      !contains(QMAKE_TARGET.arch, x86_64) {         message("x86 build")          ## Windows x86 (32bit) specific build here      } else {         message("x86_64 build")          ## Windows x64 (64bit) specific build here      } } 
like image 102
did Avatar answered Sep 21 '22 17:09

did