On quinta-feira, 23 de janeiro de 2014 09:01:43, Thiago Macieira wrote:
> If you're running from the command-line, you need to escape it further:
>
> qmake 'DEFINES+=SERIAL=\\\"f9a/z\\\"'
> or
> qmake DEFINES+=SERIAL=\\"f9a/z\\"
I should have tested before sending. The number
On quinta-feira, 23 de janeiro de 2014 20:07:40, Soroush Rabiei wrote:
> I need to pass a string as a definition to my source code which is a base64
> encoded string (so may contain / and "). I'm using qmake and g++. I've
> tried so many combinations, but neither works:
>
> qmake DEFINES+=SERIAL=\
Hi,
This works for me in the .pro
DEFINES += SERIAL=\\\"f9a/z\\\"
produces:
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DSERIAL=\"f9a/z\" -DQT_DLL -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT
-DQT_HAVE_SSE2 -DQT_THREA