Re: [Interest] Fwd: Defining a string in qmake command line

2014-01-24 Thread Till Oliver Knoll
Am 24.01.2014 um 03:39 schrieb Thiago Macieira : > On quinta-feira, 23 de janeiro de 2014 23:05:26, Soroush Rabiei wrote: >> The problem is that bash (or qmake) eats the double quotation. Definition >> needs to be wrapped in quotations. So it should pass to compiler something >> like: >> >> -DSE

Re: [Interest] Fwd: Defining a string in qmake command line

2014-01-24 Thread Soroush Rabiei
On Fri, Jan 24, 2014 at 8:42 PM, Thiago Macieira wrote: > On sexta-feira, 24 de janeiro de 2014 14:18:59, Francisco Ares wrote: > > Is it really needed to enclose the string? > > > > What will it happens if you just do > > > > DEFINES += SERIAL=6b6ab0 > > He'll need to strigify the macro before us

Re: [Interest] Fwd: Defining a string in qmake command line

2014-01-24 Thread Soroush Rabiei
On Fri, Jan 24, 2014 at 7:48 PM, Francisco Ares wrote: > > Is it really needed to enclose the string? > > What will it happens if you just do > > DEFINES += SERIAL=6b6ab0 I'm using an encryption schema based on serial codes. These codes need to be secret and user-specific (we deliver a new comp

Re: [Interest] Fwd: Defining a string in qmake command line

2014-01-24 Thread Thiago Macieira
On sexta-feira, 24 de janeiro de 2014 14:18:59, Francisco Ares wrote: > Is it really needed to enclose the string? > > What will it happens if you just do > > DEFINES += SERIAL=6b6ab0 He'll need to strigify the macro before using it. -- Thiago Macieira - thiago.macieira (AT) intel.com Softwa

Re: [Interest] Fwd: Defining a string in qmake command line

2014-01-24 Thread Soroush Rabiei
On Fri, Jan 24, 2014 at 6:09 AM, Thiago Macieira wrote: > > You have to work back from what you want. You want a compiler argument > containing the string: > > -DSERIAL="6b6ab0" > > Since Make runs commands using the shell, you need to add one level of > escaping so the shell will do what

Re: [Interest] Fwd: Defining a string in qmake command line

2014-01-23 Thread Thiago Macieira
On quinta-feira, 23 de janeiro de 2014 23:05:26, Soroush Rabiei wrote: > The problem is that bash (or qmake) eats the double quotation. Definition > needs to be wrapped in quotations. So it should pass to compiler something > like: > > -DSERIAL\"6b6ab0\" You have to work back from what you want.

[Interest] Fwd: Defining a string in qmake command line

2014-01-23 Thread Soroush Rabiei
-- Forwarded message -- From: Soroush Rabiei Date: Thu, Jan 23, 2014 at 10:14 PM Subject: Re: [Interest] Defining a string in qmake command line To: Thiago Macieira On Thu, Jan 23, 2014 at 9:01 PM, Thiago Macieira wrote: > On quinta-feira, 23 de janeiro de 2014 09:01:43, Thiago