This is a multi-part message in MIME format. --------------000609080602000800060106 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I've found the option 'useIDE' in info.py which configures cmake to generate Visual Studio solution files. What's the official way to set useIDE to true without touching info.py? It seems this is not fully suppoted, or I'm wrong? I prefer this generators because then it is possible to build at least projects in parallel using msvc. (vcbuild with the option /M) It is also possible to use the IDE when something went from while compiling. And not to forget: debugging becames simpler with the IDE ;) What is the current workflow to get VC projects files? Attached my hardcoded solution handling. On problem is that the name of the solution, defined by cmake (for instance 'project(Automoc4)') must match the internal emerge name self.subinfo.options.make.slnBaseName or self.package, maybe someone could help me there. Currently it breaks because there is no automoc.sln but automoc4.sln or no qimageblitz.sln but only blitz.sln. Peter --------------000609080602000800060106 Content-Type: text/plain; name="useIDE.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="useIDE.patch" Index: bin/info.py =================================================================== --- bin/info.py (revision 1047164) +++ bin/info.py (working copy) @@ -74,7 +74,7 @@ class OptionsCMake: def __init__(self): - self.useIDE = False + self.useIDE = True ## main option class class Options: Index: bin/BuildSystem/CMakeBuildSystem.py =================================================================== --- bin/BuildSystem/CMakeBuildSystem.py (revision 1047164) +++ bin/BuildSystem/CMakeBuildSystem.py (working copy) @@ -97,9 +97,9 @@ if self.compiler() == "msvc2008" and self.subinfo.options.cmake.useIDE: if self.subinfo.options.make.slnBaseName: - command = "start %s.sln" % self.subinfo.options.make.slnBaseName + command = "vcbuild /M2 %s.sln \"Debug|Win32\"" % self.subinfo.options.make.slnBaseName else: - command = "start %s.sln" % self.package + command = "vcbuild /M2 %s.sln \"Debug|Win32\"" % self.package else: command = self.makeProgramm @@ -122,14 +122,17 @@ if not self.noFast: fastString = "/fast" - if self.subinfo.options.install.useMakeToolForInstall == True: - command = "%s DESTDIR=%s install%s" % ( self.makeProgramm, self.installDir(), fastString ) + if self.subinfo.options.install.useMakeToolForInstall == True: + if self.compiler() == "msvc2008" and self.subinfo.options.cmake.useIDE: + command = "vcbuild INSTALL.vcproj \"Debug|Win32\"" + else: + command = "%s DESTDIR=%s install%s" % ( self.makeProgramm, self.installDir(), fastString ) else: command = "cmake -DCMAKE_INSTALL_PREFIX=%s -P cmake_install.cmake" % self.installDir() self.system( command, "install" ) - if self.subinfo.options.install.useMakeToolForInstall == True: + if self.subinfo.options.install.useMakeToolForInstall == True and not self.subinfo.options.cmake.useIDE: utils.fixCmakeImageDir( self.installDir(), self.mergeDestinationDir() ) return True --------------000609080602000800060106 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-windows mailing list Kde-windows@kde.org https://mail.kde.org/mailman/listinfo/kde-windows --------------000609080602000800060106--