View previous topic :: View next topic |
Author |
Message |
zzzzrrr
Joined: 17 Feb 2007 Posts: 139 Location: Washington, DC
|
Posted: Fri Feb 23, 2007 3:23 pm Post subject: Tango / Phobos Scripts |
|
|
Anyone have a good Linux script for switching between Tango and Phobos? |
|
Back to top |
|
|
volcore
Joined: 22 Jan 2007 Posts: 19
|
Posted: Sat Feb 24, 2007 9:01 am Post subject: |
|
|
Since its usually project dependant which one to use, I've been doing the following thing:
Globally installed is the phobos library, into /usr/local/include/phobos and /usr/local/lib.
However, /etc/dmd.conf does not contain any default include directory.
If a project uses tango (and since tango is a moving target), it includes an svn:external import of the corresponding tango tree.
To compile a phobos program, I simply type
dmd -I/usr/local/include/phobos (or an alias 'pdmd')
To compile a tango program, adding the library path of the tango libphobos and the include path of the tango library is sufficient, e.g.
dmd -L-Lext/tango/libs -Iext/tango (or sort of that).
hope that gives you an idea, cheers |
|
Back to top |
|
|
zzzzrrr
Joined: 17 Feb 2007 Posts: 139 Location: Washington, DC
|
Posted: Tue Feb 27, 2007 9:19 pm Post subject: |
|
|
volcore wrote: | hope that gives you an idea, cheers |
Great, thanks a lot for the help. I created a good set of scripts that work well for me. I can now easily switch back and forth between Phobos and Tango, and can also use Derelict for both!
Mason |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|