It is currently Fri Apr 03, 2020 5:25 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: [Feature Request] - Define which compiler to use?
PostPosted: Sun May 10, 2009 1:13 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Oct 16, 2003 8:09 pm
Posts: 182
Hi,

Would it be possible to add an optional parameter to the command line, to enable the user to define which compiler to use?

For instance;


...> Tailbite.exe /COMP "C:\Program Files\Purebasic"


This would be greatly appreciated.


Thanks


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun May 10, 2009 8:04 pm 
Offline
Addict
Addict

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3361
+1, although I assume that it would be whichever PureBasic compiler is local to the Tailbite folder.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun May 10, 2009 8:18 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Oct 16, 2003 8:09 pm
Posts: 182
Though in the case that Tailbite isn't in the Purebasic folder, (for instance, an external ide ;)), it would be a beneficial feature, especially if the external IDE has ability to compile to different compilers


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon May 11, 2009 9:01 am 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1027
Location: Australia
Currently what you need to do is copy Tailbite into a separate dir and create a tailbite.prefs file in that same directory so that it runs in 'portable' (or 'old') mode.
Or rename the prefs file when you're not using it

When using the prefs in appdata TB looks at the registry (for the file association) and determines to use the x64 or x86 prefs (though this does not work when you run the x86 ide in /noext mode like me nor for external editors)

It should be fairly easy however to add a /PREFS parameter (that will create the file if need be)


@kawasaki: in SVN there is a .pb file for making a dll out of TailBite that you can use in an application (though for vista you would need to compile the IDE in admin mode, or make a command line tbcompiler yourself)

_________________
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon May 11, 2009 11:15 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Oct 16, 2003 8:09 pm
Posts: 182
Was actually unaware of the SVN on sourceforge.. Thanks :)

If anyone else needs it, since it took me a little while to find it;

http://tailbite.svn.sourceforge.net


Question: Can I use the TailBite DLL Source code, and directly include that into what I am doing currently, instead of having a separate DLL?

It will be announced that TailBite is included with the release in the products documentation if I can.



Thanks again.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon May 11, 2009 12:04 pm 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1027
Location: Australia
kawasaki wrote:
Question: Can I use the TailBite DLL Source code, and directly include that into what I am doing currently, instead of having a separate DLL?

I've not tried it, but I would assume so; however you would need to be careful about global variables, catalog locations, etc.
However it would be inconvenient, as the user would have to update the whole IDE when there was an update just to TB.
Plus as mentioned before, the app would need to have the Vista admin manifest - something that is kind of frowned upon (someone can correct me on this if I'm wrong)

I will however add the prefs command line option in the next few days, when my university workload quietens down a bit :)
(well unless ABBKlaus wants to add it :lol:)
That way all you need do is generate a Tailbite.prefs file

For SVN, its better to link to this page: http://sourceforge.net/scm/?type=svn&group_id=252593 (for the checkout URL as well as the ViewVC browse)

_________________
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon May 11, 2009 12:09 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Oct 16, 2003 8:09 pm
Posts: 182
lexvictory wrote:
kawasaki wrote:
Question: Can I use the TailBite DLL Source code, and directly include that into what I am doing currently, instead of having a separate DLL?

I've not tried it, but I would assume so; however you would need to be careful about global variables, catalog locations, etc.
However it would be inconvenient, as the user would have to update the whole IDE when there was an update just to TB.
Plus as mentioned before, the app would need to have the Vista admin manifest - something that is kind of frowned upon (someone can correct me on this if I'm wrong)

I will however add the prefs command line option in the next few days, when my university workload quietens down a bit :)
(well unless ABBKlaus wants to add it :lol:)
That way all you need do is generate a Tailbite.prefs file

For SVN, its better to link to this page: http://sourceforge.net/scm/?type=svn&group_id=252593 (for the checkout URL as well as the ViewVC browse)



The user would NOT have to update the entire IDE.. (hehe)


This would be integrated into a component I am writing to be included with the IDE itself.. A kind of MakeFile for PureBasic...

PureMake does all the leg work to all the compilers registered, compiles single source files, project files, and workspaces (solutions), where as the IDE just has to interface to it....

With this, PureMake being small, can be updated very easily electronically.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon May 11, 2009 12:13 pm 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1027
Location: Australia
Ah, I see. In any case I would advise against it... (using the dll source to directly integrate as a procedure(s))
Perhaps you could make a static lib out of it instead of a DLL?

_________________
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed May 13, 2009 2:15 pm 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1027
Location: Australia
Ok, feature added.

Use this format (for TBManager and/or Tailbite.exe)
Code:
/PREF "C:\absolute\path\to\a\file.prefs"

It MUST be an absolute path. (though the file doesn't have to exist, the path does)
Also, for TBManager, "/PREF" MUST be the first parameter.

SVN snapshot: https://sourceforge.net/project/downloa ... .05.09.zip
(let me know if you have troubles with the link, I had trouble getting it to build in 32 bit mode)
I'll probably test & add the linux snapshot tomorrow

_________________
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye