Add ability to generate lazarus package file. #6
Replies: 3 comments 2 replies
-
|
I just tested and this empty package totally works in lazarus. I put it in target/lazpkg/fpgui_framework.lpk
|
Beta Was this translation helpful? Give feedback.
-
|
It was already discussed elsewhere, but for other reading this after the fact, my initial response was here: #7 (comment) In short, PasBuild 1.7.0 now has plug-in support, so such a feature can easily be added, and can hook into any of the existing build goals. It's document with two example plug-in implementation (bash script & Object Pascal version) here: https://github.com/graemeg/PasBuild/tree/master/extras/plugins/hello-world To answer your other question about the For example, lets say you installed the v2.0.3 Any other PasBuild project can then reference that as a dependency, using the following in the <dependencies>
<dependency>
<name>fpgui-framework</name>
<version>2.0.3</version>
</dependency>
</dependencies>When you run On a side note: This is also one of the building blocks for soon to be released online package manager support, where packages can be uploaded by the community, and pasbuild will automatically download and install locally (if they don't already exist locally). Tip: For Lazarus or MSEide users creating projects that use fpGUI, and where those IDE's don't have native pasbuild support, those developers can simply add a |
Beta Was this translation helpful? Give feedback.
-
|
So I've put some idle thought into this in the last days and have some ideas.
Is that something that fits in pasbuild resolve? |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
I am using lazarus to edit/compile freepascal code. This build system is likely useful/flexible. But to use, for instance, fpgui I have to add one or more paths to the project search path. Not the end of the world, but this is very inflexible. If the project is shared etc, fpgui will likely be in another path.
What if, for libraries an option/flag in the project.xml file could cause a lpk to be generated? The lpk could even have pasbuild run before compilation to recompile the units and/or the lpk. I'm not sure how much lazarus would like that. Compiler Options -> Compiler Commands - Execute Before. Potentially the package could be empty and just adds an -Fu~/.pasbuild/repository/fpgui-framework/{version}/{target}. Not really sure if that's effective.
Alternatively a pasbuild package for lazarus could be made that somehow integrates support for pasbuild projects. A much more difficult solution.
I see that 'install' puts things in ~/.pasbuild. why not ~/.local/[lib,share]/pasbuild. I put pasbuild in ~/.local/bin/ so that I didn't install it globally and it would be in the PATH. This is pretty standarized now.
Also why are projects installing all the unit files? pasbuild install (in the pasbuild project) copies all the ppu/o files but not the binary. Maybe I don't understand fully what it's purpose is.
It's late, my brain is done :)
Beta Was this translation helpful? Give feedback.
All reactions