When importing a Qt project using the visual studio Add in v1.1.1 I get
the following example command line:-

--- (qmake) : Arguments: -spec $(QTDIR)\mkspecs\win32-msvc2005 -tp vc
"foo.pro" -o "foo.vcproj" QMAKE_INCDIR_QT=$(QTDIR)\include
QMAKE_LIBDIR_QT=  QMAKE_LIBDIR=$(QTDIR)\lib
QMAKE_UIC=$(QTDIR)\bin\uic.exe QMAKE_MOC=$(QTDIR)\bin\moc.exe
QMAKE_RCC=$(QTDIR)\bin\rcc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe

Then within the vcproj file generated, I find Mocable file paths defined
using _(QTDIR) eg.

        
AdditionalDependencies="_(QTDIR)\bin\moc.exe;include\foo.h"
        
CommandLine="_(QTDIR)\bin\moc.exe  -DUNICODE -DWIN32
-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQWT3D_DLL -DQWT3D_MAKEDLL
-DQT_THREAD_SUPPORT -DQT_DLL -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-I"$(QTDIR)\include\QtCore"
-I"$(QTDIR)\include\QtGui"
-I"$(QTDIR)\include\QtOpenGL" -I"$(QTDIR)\include"
-I"include" -I"$(QTDIR)\include\ActiveQt"
-I"lib\debug\VisualStudio\tmp" -I"."
-I$(QTDIR)\mkspecs\win32-msvc2005 -D_MSC_VER=1400 -DWIN32 include\foo.h
-o lib\debug\VisualStudio\tmp\moc_foo.cpp"
                                                Description="MOC
include\foo.h"
        
Outputs="lib\debug\VisualStudio\tmp\moc_foo.cpp"
                                                Path="_(QTDIR)\bin"/> 

The "_(QTDIR)" definition generates build errors for Mocable's.
I must search & replace all of these occurances before starting the
build. Is there a way to stop this happening?

Also is there a way to add a project level custom build step from a
definition within the .pro file imported?

Regards,        
David Robinson


Please refer to www.anite.com for individual Anite company details. The 
contents of this e-mail and any attachments are for the intended recipient 
only. If you are not the intended recipient, you are not authorised to and must 
not disclose, copy, distribute, or retain this message or any part of it. It 
may contain information which is confidential and/or covered by legal 
professional or other privilege. Contracts cannot be concluded with us nor 
legal service effected by email.  

Anite plc
Registered in England No.1798114
Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom 
VAT Registration No. GB 787 418187

Scanned for viruses by Mimecast.


_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to