FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tango / Phobos Scripts

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> tango.phobos
View previous topic :: View next topic  
Author Message
zzzzrrr



Joined: 17 Feb 2007
Posts: 139
Location: Washington, DC

PostPosted: Fri Feb 23, 2007 3:23 pm    Post subject: Tango / Phobos Scripts Reply with quote

Anyone have a good Linux script for switching between Tango and Phobos?
Back to top
View user's profile Send private message
volcore



Joined: 22 Jan 2007
Posts: 19

PostPosted: Sat Feb 24, 2007 9:01 am    Post subject: Reply with quote

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
View user's profile Send private message
zzzzrrr



Joined: 17 Feb 2007
Posts: 139
Location: Washington, DC

PostPosted: Tue Feb 27, 2007 9:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> tango.phobos All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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