[Qt-interest] Seeking example qmake project file supporting both 32 and 64-bit targets?
Bo Thorsen
bo at fioniasoftware.dk
Sat May 14 08:43:43 CEST 2011
Den 13-05-2011 18:36, Ed Sutton skrev:
>
>>> 1 - How is output conditionally sent to either /build32 or
>>> /build64 destination folders?
>>
>> By being in that directory:
>>
>> $ pwd /home/me/myapp
>>
>> $ cd .. $ mkdir build32 $ cd build32 $ qmake ../myapp/myapp.pro $
>> make
>
> Simple enough. Thank you Bo!
>
>
> 2 - Any tips on how conditionals are typically done in the qt project
> file? For example, to conditionally compiler flags flags or to link
> with either "lib-3rd-party32" or "lib-3rd-party64" based on
> "linux-g++-32" or "linux-g++-64"?
You can do this:
linux-g++32 {
# 32 bit stuff here
}
linux-g++-64 {
#64
}
Bo Thorsen,
Fionia Software.
--
Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk
More information about the Qt-interest-old
mailing list