Hi Mike,
That sounds like a good solution to automate the build process for those of
us who compile with different environments. On windows I was using
makefiles with nmake to build. I have a top level makefile:
Release Debug clean:
cd "3rdParty"
nmake $@
cd "../../COLLADA_DOM"
nmake $@
cd "../Osg/OpenSceneGraph"
nmake $@
with makefiles such as an OpenSceneGraph makefile that builds the sln:
Release Debug:
cd "../3rdParty"
nmake $@
cd "../Producer"
nmake $@
devenv
"../../../../../../../External/Graphics/Osg/OpenSceneGraph/VisualStudio/Open
SceneGraph+xtra.sln" /build $@
xcopy /Y /R /S
"..\..\..\..\..\..\..\External\Graphics\Osg\OpenSceneGraph\include"
"$(VISAPI_ROOT)\Include"
xcopy /Y /R
"..\..\..\..\..\..\..\External\Graphics\Osg\OpenSceneGraph\lib\win32\*.lib"
"$(VISAPI_ROOT)\Lib\"
xcopy /Y /R
"..\..\..\..\..\..\..\External\Graphics\Osg\OpenSceneGraph\bin\win32\*.dll"
"$(VISAPI_ROOT)\Bin\"
xcopy /Y /R
"..\..\..\..\..\..\..\External\Graphics\Osg\OpenSceneGraph\bin\win32\*.exe"
"$(VISAPI_ROOT)\Bin\"
clean:
devenv
"../../../../../../../External/Graphics/Osg/OpenSceneGraph/VisualStudio/Open
SceneGraph+xtra.sln" /clean Release
devenv
"../../../../../../../External/Graphics/Osg/OpenSceneGraph/VisualStudio/Open
SceneGraph+xtra.sln" /clean Debug
Then my build process is down to clicking a batch file that nmakes the top
level makefile.
The problem with this is that I need to convert the various dsw/dsp files to
sln/vcproj files manually. Also, any files I create in one environment, I
have to replicate in the other. For example, if I add a file to a makefile
using gcc, I have to also add it to the project in Visual Studio. If
premake does what it says, this process will be more simple. I'll give it a
try sometime this year.
Thanks
Zach
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Weiblen
Sent: Monday, February 19, 2007 20:16
To: osg users
Subject: [osg-users] premake?
Hi all,
there's previously been mention of premake (http://premake.sf.net) as a soln
to OSG's multiplatform build requirements. has anyone come to any
conclusions? I was going to give it an eval.
cheers
-- mew
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/