Hi Ralf, I normally don't use the Visual Studio, to compile, but only to debug. For doing so you can call Visual Studio with the program you want to debug as parameter, and then he creates an empty solution with a target for the executable. So devenv <program.exe> for Visual Studio Pro and vcexpress <program.exe> for the express edition. And then you can drag and drop the source code you want to debug into Visual Studio and set Breakpoints and run the application. For compiling you can use emerge or directly nmake/jom. I do this also because the CMake generator cannot always produce a proper solution, and its far easier to just debug something, you don't need to setup everything(and do not need to recompile). And yes for the changed source it does not recompile everything.
Ok I hope that helps a bit Andreas Holzammer Am 28.08.2011 11:57, schrieb Ralf Habacker: > Hi, > > while using the Microsoft Visual Studio 2010 Express Edition to debug > KDE appliations I'm faced with the problem that all source from a > project are rebuild all the time although no source has been changed. > This cost much useless compile time and is very annoying. > > In my case (there may other other reasons for this) I found a workaround > to fix this problem: > > In C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.targets > > > there is the following Target definition > > <Target Name="ClCompile" > Condition="'@(ClCompile)' != ''" > DependsOnTargets="SelectClCompile"> > <ItemGroup> > <ClCompile> > <PrecompiledHeaderOutputFile > Condition="'%(ClCompile.PrecompiledHeader)' == 'NotUsing' or > '%(ClCompile.PrecompiledHeader)' == ''"></PrecompiledHeaderOutputFile> > <PrecompiledHeaderOutputFile > Condition="'%(ClCompile.PrecompiledHeader)' != 'NotUsing' and > '$(RunCodeAnalysisOnce)'=='true' and '%(ClCompile.PrecompiledHeader)' != > ''">%(ClCompile.PrecompiledHeaderOutputFile).codeanalysis</PrecompiledHeaderOutputFile> > > <PrecompiledHeaderFile > Condition="'%(ClCompile.PrecompiledHeader)' == 'NotUsing' or > '%(ClCompile.PrecompiledHeader)' == ''"></PrecompiledHeaderFile> > <AssemblerListingLocation Condition="'%(ClCompile.AssemblerOutput)' > == 'NoListing' or '%(ClCompile.AssemblerOutput)' == > ''"></AssemblerListingLocation> > <CompileAs Condition="'%(ClCompile.CompileAs)' == > 'Default' and '%(ClCompile.Extension)' == '.c'">CompileAsC</CompileAs> > <CompileAs Condition="'%(ClCompile.CompileAs)' == > 'Default' and '%(ClCompile.Extension)' != '.c'">CompileAsCpp</CompileAs> > <MinimalRebuildFromTracking Condition="'$(BuildType)' != 'Build' or > '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking> > </ClCompile> > </ItemGroup> > > I changed the line > > <MinimalRebuildFromTracking Condition="'$(BuildType)' != 'Build' or > '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking> > > to > <MinimalRebuildFromTracking Condition="'$(BuildType)' != 'Build' or > '$(ForceRebuild)' == 'true'">true</MinimalRebuildFromTracking> > > Ralf > > > _______________________________________________ > Kde-windows mailing list > [email protected] > https://mail.kde.org/mailman/listinfo/kde-windows -- Andreas Holzammer | [email protected] | Software Engineer KDAB (Deutschland) GmbH&Co KG, a KDAB Group company Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090 KDAB - Qt Experts - Platform-independent software solutions
smime.p7s
Description: S/MIME Kryptografische Unterschrift
_______________________________________________ Kde-windows mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-windows
