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

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

Re: [Mingw-cross-env-list] Crosscompile and native Windows compile in sa


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] Crosscompile and native Windows compile in same .pro file
Date: Sat, 27 Jul 2013 21:07:10 +1000

On 26/07/2013, at 4:54 PM, Richel Bilderbeek <address@hidden> wrote:

> 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 cross compile?

win32 {
    cross_compile: message(crosscompile from Linux to Windows?)
    else:          message(compile under Windows)
}

Cheers,

Tony




reply via email to

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