[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-windows
Subject:    Using msvc solution files
From:       Peter_Kümmel <syntheticpp () gmx ! net>
Date:       2009-11-10 17:59:51
Message-ID: 4AF9AA17.6000609 () gmx ! net
[Download RAW message or body]

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

["useIDE.patch" (text/plain)]

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
 



_______________________________________________
Kde-windows mailing list
Kde-windows@kde.org
https://mail.kde.org/mailman/listinfo/kde-windows


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic