Sign in Join

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

Mailing lists / pas2js / 2020-07

Does lazbuild support pas2js?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Ondrej Pokorny

Hello,

I use lazbuild to automate builds of my Lazarus projects. Now I wanted to do the same for a pas2js project, which does not seem to work.

For this command:
lazbuild.exe --quiet --no-write-project
--primary-config-path="C:\lazarus\laz_profile"
--build-mode=pas2js.Release "clientsrc\testclient.lpi"

I get this output:
SetPrimaryConfigPath NewValue="C:\lazarus\laz_profile" -> "C:\lazarus\laz_profile"
Hint: (lazarus) [RunTool] "C:\lazarus\fpc_exp\bin\i386-win32\fpc.exe" "-iWTOTP" "-Tbrowser"
TCompiler.WriteError Error: invalid compiler: file "" does not exist TCompiler.WriteError Hint: you can set the compiler path in Tools -> Options-> Files -> Compiler Path
Error: (lazbuild) failed compiling of project
C:\Data\Delphi_Programme\GWMServer\clientsrc\gwmclient.lpi

Build from the Lazarus IDE works fine. Is this not supposed to work? I'd like to spare me all the extra compiler options Lazarus cares for me :)

Ondrej

Reply by email

Mattias Gaertner
to Ondrej Pokorny
Show quoted text 5 lines
Hello, I use lazbuild to automate builds of my Lazarus projects. Now I wanted to do the same for a pas2js project, which does not seem to work.

True.
The IDE has the addon pas2jsdsgn, which registers the $(pas2js) macro. lazbuild does not have addons, so it does not know the macro.

Maybe some command line flag can be added to lazbuild to define macro values.
--macro=name=value

Mattias

Reply by email

Ondrej Pokorny
to Mattias Gaertner
Mattias Gaertner wrote 15 lines
On Tue, 7 Jul 2020 14:20:02 +0200 Ondrej Pokorny wrote: > Hello, > > I use lazbuild to automate builds of my Lazarus projects. Now I > wanted to do the same for a pas2js project, which does not seem to > work. True. The IDE has the addon pas2jsdsgn, which registers the $(pas2js) macro. lazbuild does not have addons, so it does not know the macro. Maybe some command line flag can be added to lazbuild to define macro values. --macro=name=value

Great, thanks!

Ondrej

Reply by email