Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-05

lazbuild output

7 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Henry Vermaak

Hi

Is there a way to silence the debug output of lazbuild? It spits out text like this:

TCompiler.Compile WorkingDir="/home/hcv/source/... ...
...
[TCompiler.Compile] CmdLine="/usr/local/lib/fpc/2.7.1/ppc386 -MO... ...
...

Also, is it possible to do a "clean" with lazbuild?

Henry

Reply by email

Mattias Gaertner
to Henry Vermaak
Show quoted text 9 lines
Hi Is there a way to silence the debug output of lazbuild? It spits out text like this: TCompiler.Compile WorkingDir="/home/hcv/source/... ... ... [TCompiler.Compile] CmdLine="/usr/local/lib/fpc/2.7.1/ppc386 -MO...

No.

Also, is it possible to do a "clean" with lazbuild?

If you mean a clean without build: no

Mattias

Reply by email

Henry Vermaak
to Mattias Gaertner
Mattias Gaertner wrote 19 lines
On Wed, 16 May 2012 16:44:55 +0100 Henry Vermaak wrote: > Hi > > Is there a way to silence the debug output of lazbuild? It spits out > text like this: > > TCompiler.Compile WorkingDir="/home/hcv/source/... > ... > ... > [TCompiler.Compile] CmdLine="/usr/local/lib/fpc/2.7.1/ppc386 -MO... No. > Also, is it possible to do a "clean" with lazbuild? If you mean a clean without build: no

Thanks. Is lazbuild the recommended way for lazarus users to build their applications (as part of a build system, for instance)? Would adding these features to lazbuild be hard?

I've rolled a custom Makefile to build my lazarus application, but it's tedious to keep it in sync with the project, hence why I wanted to use lazbuild. The output of my Makefile looks nice, though, and I'd like to be able to control the output from lazbuild.

Henry

P.s.: I see that the --create-makefile option of lazbuild doesn't work for projects, only packages. Is this intentional?

Reply by email

Henry Vermaak
to Henry Vermaak
Henry Vermaak wrote
P.s.: I see that the --create-makefile option of lazbuild doesn't work for projects, only packages. ?Is this intentional?

It would be nice to have an option to output an fpmake file for a project. Will lazarus move to fpmake in future?

Henry

Reply by email

Mattias Gaertner
to Henry Vermaak: Thanks. Is lazbuild the recommended way for lazarus users to build their applications…
Show quoted text 23 lines
On 17/05/12 08:56, Mattias Gaertner wrote: > On Wed, 16 May 2012 16:44:55 +0100 > Henry Vermaak wrote: > >> Hi >> >> Is there a way to silence the debug output of lazbuild? It spits out >> text like this: >> >> TCompiler.Compile WorkingDir="/home/hcv/source/... >> ... >> ... >> [TCompiler.Compile] CmdLine="/usr/local/lib/fpc/2.7.1/ppc386 -MO... > > No. > > >> Also, is it possible to do a "clean" with lazbuild? > > If you mean a clean without build: no Thanks. Is lazbuild the recommended way for lazarus users to build their applications (as part of a build system, for instance)?

yes

Would adding these features to lazbuild be hard?

Adding a verbosity flag should be easy.
A "clean" might be more complicated, because there are various levels of clean.

Show quoted text 9 lines
I've rolled a custom Makefile to build my lazarus application, but it's tedious to keep it in sync with the project, hence why I wanted to use lazbuild. The output of my Makefile looks nice, though, and I'd like to be able to control the output from lazbuild. Henry P.s.: I see that the --create-makefile option of lazbuild doesn't work for projects, only packages. Is this intentional?

Creating makefiles for projects can be arbitrary complicated. If someone writes such a generator I'm pretty sure there will soon be bug reports, because it is a can of worms.

Mattias

Reply by email

Mattias Gaertner
to Henry Vermaak: It would be nice to have an option to output an fpmake file for a project. Will lazarus…
Show quoted text 6 lines
On 17 May 2012 14:02, Henry Vermaak wrote: > P.s.: I see that the --create-makefile option of lazbuild doesn't work > for projects, only packages. ?Is this intentional? It would be nice to have an option to output an fpmake file for a project.

Yes, and for packages.

Will lazarus move to fpmake in future?

Yes. Although I'm not sure if everything that currently the Makefiles do can/will be replaced by fpmake. So maybe some Makefiles will stay.

Mattias

Reply by email

Henry Vermaak
to Mattias Gaertner
Mattias Gaertner wrote
> Will lazarus move to fpmake in future? Yes. Although I'm not sure if everything that currently the Makefiles do can/will be replaced by fpmake. So maybe some Makefiles will stay.

Glad to see that lazbuild handles cross-compilation very nicely, though. Just had to pass --operating-system=$(OS). Got a win32 exe that even works in `wine` :)

Henry

Reply by email