[Geany] Improve project support
Michal Kurgan
michal.kurgan at xxxxx
Mon May 21 17:03:26 UTC 2007
On Mon, 21 May 2007 17:01:51 +0100
Nick Treleaven <nick.treleaven at btinternet.com> wrote:
> On 05/20/2007 03:40:05 AM, Michal Kurgan wrote:
> > Hello!
> >
> > Another useful idea for me.
> >
> > Currently in geany Compile, Build and Execute commands are associated
> > with file types and have two nice, additional variables (%f and %e). It
> > would be very useful to add one more variable that would stand as project
> > base directory (i.e. %p).
>
> Could you give an example usage of %p?
>
In all my projects i use cmake, it uses out of the source builds. Here is
example layout:
project/
.cmake/
src/
CMakeLists.txt
.cmake directory will hold all Makefiles, there is none in src directory.
To populate .cmake directory you can use following command (in geany it can
be run command):
cd %p/.cmake && cmake .. (currently this will work: cd .cmake && cmake ..)
It's not hard to imagine that to compile sources it would be very useful to
have %p variable:
make -C %p/.cmake <target>
> > This could bring problems in case when project is not open. To resolve
> > that it could be interesting to add certain project properties: compile,
> > build and run that would overwrite default ones. Currently there is a
> > similar "override" run option, but it does not provide %f, %e and
> > possibly %p variables.
>
> You're right, %f and %e could be useful for the project run command.
> I'll add this soon.
> I see that project compile and build commands could be useful, I'll
> think about this.
>
Thanks, it would be very nice.
> Regards,
> Nick
--
Michal Kurgan
More information about the Users
mailing list