digitalmars.D - installing Phobos and Tango
- BCS (4/4) Aug 13 2007 What is the current best reactance for installing phobos and tango at th...
- Lutger (21/28) Aug 13 2007 Windows? I use the junction tool somebody recommended in a previous
- Kirk McDonald (9/16) Aug 13 2007 There are a veriety of solutions on Windows.
- Vladimir Panteleev (18/22) Aug 13 2007 alive
- Chris Miller (3/7) Aug 13 2007 I just run a script that changes my PATH to a different compiler
- BCS (7/13) Aug 13 2007 Thank All. I'll try these.
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
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
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
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 =thesame time? I really don't want to have to maintain a VM just to keep both setups =aliveand 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
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
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
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
Reply to Lutger,BCS wrote: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.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