[Geany] Improve project support

Nick Treleaven nick.treleaven at xxxxx
Fri May 25 12:32:23 UTC 2007


On 05/24/2007 05:57:51 PM, Michal Kurgan wrote:
> On Thu, 24 May 2007 12:57:06 +0100
> Nick Treleaven <nick.treleaven at btinternet.com> wrote:
> 
> > Well, I'm not sure yet what is necessary.
> > I was too quick to reply in my last email.
> >
> > I am unsure about your example for the run command. If you're
> running
> > make, you should use the normal Make command, with the project base
> 
> > path set to "/path/to/project/.cmake".
> 
> Better do not change base paths in geany (this is done now, but it
> would be
> better to not change current behaviour and complicate things more).

Perhaps I will add a separate path for makefiles from the base path.  
Also I'll look at getting Make Object to work for non-recursive  
makefiles.

> For make
> it's best to use "-C" switch with path supplied.
> Example run command was about _cmake_ command not _make_. ;-)

OK, I was referring to:
make -C %p/.cmake <target>

In your examples, I'm not sure what's wrong with using relative paths,  
e.g. just leave off the '%p/'.

> 
> > The only reason why you might not want that is because then the
> project run
> > command will be run with that path as the current working directory,
> but
> > probably this doesn't matter too much. (You can use full paths or
> ../ in
> > the run command as a workaround). The run command is intended for
> running
> > the script or executable you just built.
> >
> 
> Yes, in example it initializes build system (cd .cmake && cmake ..).
> 
> > Anyway, even if you do want to use the run command for now, I don't
> 
> > think there is any need for %p. The base path is used for the
> current
> > working directory, so you can just use:
> > make -C .cmake <target>
> >
> 
> True, project run command works now. I have only problem with make
> build and
> compile commands. Problem with run command is that output is not
> parsed for
> errors in compilation as process is spawned in external terminal.

OK, so the solution is to make the project make command work with cmake.
I'm not familiar with cmake. Do you normally use make or cmake to build  
sources?

> 
> > Sorry I didn't reply with this earlier.
> >
> > I will add run command %e and %f support, but really it needs some
> code
> > refactoring, so maybe it will get done in the next week. So just use
> 
> > full paths for now.

Just added this to SVN.

> >
> 
> No problem.
> For now i run geany with special environmental variables and use them
> in run
> and compile dialogs like "make -C $VAR/.cmake".
[...]
> Maybe whole thing is a bit unclear now so i will summarize this
> request.
>  * add support for %p variable in project run dialog

But the run command always has %p as it's working directory. Surely all  
tools (and make -C) support relative paths?

>  * add project Run and Compile commands that would override these
> global
>    commands and support %p variable.

You mean project Compile and Build commands? Perhaps, but first I want  
to get the project Make commands working for non-recursive makefile  
layouts.

Regards,
Nick



More information about the Users mailing list