From: <and...@us...> - 2008-04-01 04:05:34
|
Revision: 582 http://python-ogre.svn.sourceforge.net/python-ogre/?rev=582&view=rev Author: andy_miller Date: 2008-03-31 21:05:25 -0700 (Mon, 31 Mar 2008) Log Message: ----------- Pygccxml to rev 1234 Revision Links: -------------- http://python-ogre.svn.sourceforge.net/python-ogre/?rev=1234&view=rev Modified Paths: -------------- trunk/python-ogre/environment.py Modified: trunk/python-ogre/environment.py =================================================================== --- trunk/python-ogre/environment.py 2008-03-31 00:27:47 UTC (rev 581) +++ trunk/python-ogre/environment.py 2008-04-01 04:05:25 UTC (rev 582) @@ -178,18 +178,22 @@ class gccxml: pythonModule = False active = True + base = 'gccxml' + source = [ + [cvs, " -d :pserver:an...@ww...:/cvsroot/GCC_XML co "+base, os.getcwd()] + ] if isLinux() or isMac(): - base = 'gccxml' - source = [ - [cvs, " -d :pserver:an...@ww...:/cvsroot/GCC_XML co "+base, os.getcwd()] - ] - buildCmds = [ [0,"mkdir -p gccxml-build", ''], [0,"cmake ../gccxml -DCMAKE_INSTALL_PREFIX:PATH="+ PREFIX,os.path.join(os.getcwd(),'gccxml-build')], [0,"make", os.path.join(os.getcwd(),'gccxml-build')], [0,"make install",os.path.join(os.getcwd(),'gccxml-build')] ] + else: +# print "Use cmake to create a build file for gccxml (point cmake at your ./gccxml directory" +# print "Then use MSVC to build gccxml" + buildCmds=[] + class install: pythonModule = False active = True @@ -236,7 +240,7 @@ class pygccxml: pythonModule = False active = True - if isLinux() or isMac(): + if isLinux() or isMac() or isWindows(): base = 'pygccxml' source = [ [svn, " co -r 1234 http://pygccxml.svn.sourceforge.net/svnroot/pygccxml "+base, os.getcwd()] @@ -342,6 +346,10 @@ [0,tar + " xzf "+ os.path.join(downloadPath,base) + ".tar.gz --overwrite", ''], # unpack it [0,cp + "-R * " + PREFIX, os.path.join (os.getcwd(), base) ] # copy to our bin area ] + if isWindows(): + print "Retrieve latest from http://www.cmake.org and install it yourself" + source=[] + buildCmds=[] class scons: pythonModule = False @@ -352,7 +360,7 @@ ] # the utils in Windows don't handle paths or tar spawing gzip hence the work arounds - if isLinux(): + if isLinux() or isMac(): buildCmds = [ [0, tar + " zxf " + os.path.join(downloadPath,base)+".tar.gz --overwrite",'' ], [0,"python setup.py install --prefix=%s" % PREFIX , os.path.join (os.getcwd(), base) ] @@ -361,7 +369,7 @@ else: buildCmds = unTarGz( base, downloadPath ) +\ [ - [0,"python setup.py install --prefix=%s" % PREFIX , os.path.join (os.getcwd(), base) ] + [0,"python setup.py install" , os.path.join (os.getcwd(), base) ] ] class boost: ## also included bjam @@ -1496,7 +1504,7 @@ cls.__dict__[key] = value print "Set %s.%s to %s" % (name, key, value) - + ##CheckPaths( cls, name ) cls.root_dir = os.path.join( root_dir, 'code_generators', name ) cls.dir_name = name + '_' + str(cls.version) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |