From: k. h. <kla...@nl...> - 2005-11-28 08:56:00
|
Hi John, John Labenski wrote: >I don't know how to do this. I just wrote a script for cygwin to >remove all the obj, pdb, id*... everything that was not part of the >original checkout. > > > Franscesco made a deepclean target for wxArt2d, that works well. Maybe he can add it here too. >You can select them all using the shift key and then press <space> to >uncheck them all. This makes it a little less painful, since you only >have to check a few of them. > > > Thanks! >>Only thing left is precompiled headers, or i don't know why it takes so >>long to compile. >> >> > >IIRC this is only a command line switch for nmake, I think it's already on. > > To bad not, more is involved. We can take the tricks from wxArt2D, first switches IF ( MSVC ) IF ( WXART2D_USE_PCH ) SET( CMAKE_CXX_FLAGS "/W3 /GX" ) SET( CMAKE_C_FLAGS "/W3" ) ELSE ( WXART2D_USE_PCH ) A2D_ADD_DEFINITIONS( -DNOPCH ) ENDIF ( WXART2D_USE_PCH ) ENDIF ( MSVC ) There needs to be a central file somewhere. And in all files this ( also in binding files generated) : #include "wxluaprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif //else #include (only really needed wx or wxlua headers, this is without precomp headers, so needs to be small ). Contents Central file: =============== the wxluaprec.h ====== /*! \file wxluaprec.h Licence: wxWidgets License RCS-ID: $Id: a2dprec.h,v 1.2 2005/08/10 21:10:48 titato Exp $ */ #include "wx/wxprec.h" #ifdef WX_PRECOMP #include <wx/mstream.h> #include <wx/tokenzr.h> #include "wxlua_all.h" << here all header includes ( including wx/wx.h and wxluasetup.h ) #endif // WX_PRECOMP So it is not even that complicated, only a bit of work. Regards, Klaas Unclassified |