www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - installing Phobos and Tango

reply BCS <ao pathlink.com> writes:
What is the current best reactance for installing phobos and tango at the 
same time?

I really don't want to have to maintain a VM just to keep both setups alive 
and happy. <g>
Aug 13 2007
next sibling parent Lutger <lutger.blijdestijn gmail.com> writes:
BCS wrote:
 What is the current best reactance for installing phobos and tango at 
 the same time?
 
 I really don't want to have to maintain a VM just to keep both setups 
 alive and happy. <g>
 
 

Windows? I use the junction tool somebody recommended in a previous thread on the subject, and I'm happy with this situation. I guess linux supports this out of the box. http://www.microsoft.com/technet/sysinternals/FileAndDisk/Junction.mspx Then I have two batch files, something like this: //usetango.bat echo off echo creating junction point for dmd-tango junction -d f:\dev\dmd junction f:\dev\dmd f:\dev\_tango copy f:\dev\dsss\etc\rebuild\useTango f:\dev\dsss\etc\rebuild\default //usephobos.bat echo off echo creating junction point for dmd-phobos junction -d f:\dev\dmd junction f:\dev\dmd f:\dev\_phobos copy f:\dev\dsss\etc\rebuild\usePhobos f:\dev\dsss\etc\rebuild\default It does require to keep everything that is not phobos / tango dependant out of their respective paths or duplicate them. Haven't tried dsss net tango yet.
Aug 13 2007
prev sibling next sibling parent Kirk McDonald <kirklin.mcdonald gmail.com> writes:
BCS wrote:
 What is the current best reactance for installing phobos and tango at 
 the same time?
 
 I really don't want to have to maintain a VM just to keep both setups 
 alive and happy. <g>
 
 

There are a veriety of solutions on Windows. http://www.dsource.org/projects/tango/wiki/PhobosTangoCooperation I'm sure someone has come up with something clever on Linux. -- Kirk McDonald http://kirkmcdonald.blogspot.com Pyd: Connecting D and Python http://pyd.dsource.org
Aug 13 2007
prev sibling next sibling parent "Vladimir Panteleev" <thecybershadow gmail.com> writes:
On Mon, 13 Aug 2007 18:20:59 +0300, BCS <ao pathlink.com> wrote:

 What is the current best reactance for installing phobos and tango at =

 same time?

 I really don't want to have to maintain a VM just to keep both setups =

 and happy. <g>

I believe there is a Windows utility bundled with Tango, called revert.e= xe (or was it renamed to switch.exe?). It detects your current library b= ased on the .lib file, and renames some files like this: lib\tango_phobos.lib =3D> lib\phobos.lib <=3D lib\dmd_phobos.lib bin\build.cfg.tango <=3D> bin\build.cfg <=3D> bin\build.cfg.phobos bin\sc.ini.tango <=3D> bin\sc.ini <=3D> bin\sc.ini.phobos Or something like that. Check the source if you're dubious (SVN path is = install/windows/switch.d). Anyway, I made a tango.bat and phobos.bat, which call revert with the co= rresponding parameter. It works very well, combined with a similar syste= m for switching between DMD 1.x/2.x (this time using symlinks, much like= Lutger's method). -- = Best regards, Vladimir mailto:thecybershadow gmail.com
Aug 13 2007
prev sibling next sibling parent "Chris Miller" <chris dprogramming.com> writes:
On Mon, 13 Aug 2007 11:20:59 -0400, BCS <ao pathlink.com> wrote:

 What is the current best reactance for installing phobos and tango at  
 the same time?

 I really don't want to have to maintain a VM just to keep both setups  
 alive and happy. <g>

I just run a script that changes my PATH to a different compiler installation path; one for phobos, one for tango.
Aug 13 2007
prev sibling parent reply BCS <ao pathlink.com> writes:
Reply to Benjamin,

 What is the current best reactance for installing phobos and tango at
 the same time?
 
 I really don't want to have to maintain a VM just to keep both setups
 alive and happy. <g>
 

Thank All. I'll try these. Does anyone have experience doing this kind of stuff under Code::Blocks? I'd like to one project (or maybe even a build target) that uses Phobos and another that uses Tango. I'm puzzling around trying things. If no one known how to do this, I see what I can find.
Aug 13 2007
parent reply Lutger <lutger.blijdestijn gmail.com> writes:
BCS wrote:
 Does anyone have experience doing this kind of stuff under Code::Blocks? 
 I'd like to one project (or maybe even a build target) that uses Phobos 
 and another that uses Tango.
 
 I'm puzzling around trying things. If no one known how to do this, I see 
 what I can find.
 
 

Under project -> build options -> pre/post build steps, you can specify shell commands. They can be set to specific build-targets.
Aug 13 2007
parent BCS <ao pathlink.com> writes:
Reply to Lutger,

 BCS wrote:
 
 Does anyone have experience doing this kind of stuff under
 Code::Blocks? I'd like to one project (or maybe even a build target)
 that uses Phobos and another that uses Tango.
 
 I'm puzzling around trying things. If no one known how to do this, I
 see what I can find.
 

specify shell commands. They can be set to specific build-targets.

I found that, however they don't seem to be able to do things like set environment variable for the later steps. I'm somewhat hesitant to have them muck with global settings.
Aug 13 2007