mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] Crosscompile and native Windows compile in same .


From: Richel Bilderbeek
Subject: [Mingw-cross-env-list] Crosscompile and native Windows compile in same .pro file
Date: Fri, 26 Jul 2013 08:54:59 +0200

Hi,

Perhaps some of you struggle with the same:

I have .pro file that I want to
1) crosscompile from Linux to Windows, using MXE
2) compile under Windows
3) compile under Linux

Seperate Linux and Windows is easy in a .pro file:

#Start of .pro file
unix {
  message(Compile under Linux)
}

win32 {
  message(Compile under Windows)
  message(or crosscompile from Linux to Windows?)
}
# End of .pro file

Does anybody know an elegant trick how to seperate a native Windows compile from a Linux-to-Windows crosscompile?

Thanks, Richel Bilderbeek

reply via email to

[Prev in Thread] Current Thread [Next in Thread]