#1 2016-12-12 15:23:46

mohsenti
Member
Registered: 2015-04-11
Posts: 72

Lazarus package

Hi,

Is there any particular reason not having a Lazarus package?
Now for each project I should add path to units but with Lazarus package just adding a package is enough.

Offline

#2 2016-12-12 17:28:02

hnb
Member
Registered: 2015-06-15
Posts: 290

Re: Lazarus package

We have initial idea of packages (see packages directory): https://github.com/maciej-izak/mORMot/tree/packages

I think we can add some script *.bat/*.sh file for auto-reorganizing source directory for packages.

Proposed packages:

unnamed.png

* Package mORMot_Commons
  modules:
    PasZip, SynBidirSock, SynBigTable, SynCommons, SynCrtSock, SynCrypto,
    SynFastWideString, SynFPCTypInfo, SynLog, SynLZ, SynLZO, SynMustache,
    SynSSPIAuth, SynWinSock, SynZip, SynZipFiles, SynTests
  required packages:
    FCL (standard basic package for packages)

* Package mORMot_SQLite3
  modules:
    mORMot, mORMotSQLite3, SynSQLite3
  required packages:
    mORMot_Commons

* Package mORMot_REST
  modules:
    mORMotHttpClient, mORMotHttpServer, mORMotWrappers,
  required packages:
    mORMot_SQLite3

* Package mORMot_SQLite3Static
  modules:
    SynSQLite3Static
  required packages:
    mORMot_SQLite3

* Package mORMot_DB
  modules:
    mORMotDB, mORMotMongoDB, SynDB, SynDBODBC, SynDBOracle, SynDBRemote,
    SynDBSQLite3, SynMongoDB
  required packages:
    mORMot_SQLite3

* Package mORMot_ZEOS (needs some work/idea for paths to ZEOS)
  modules:
    SynDBZeos
  required packages:
    * zdbc
    * mORMot_DB


best regards,
Maciej Izak

Offline

#3 2016-12-14 10:05:46

mohsenti
Member
Registered: 2015-04-11
Posts: 72

Re: Lazarus package

It is good to have ab opinion.

Offline

#4 2016-12-14 12:16:19

hnb
Member
Registered: 2015-06-15
Posts: 290

Re: Lazarus package

IIRC for packages we need to refresh mORMot source code tree and that is main problem...


best regards,
Maciej Izak

Offline

#5 2016-12-14 15:55:58

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,706
Website

Re: Lazarus package

What do you mean by "refresh mORMot source code tree"?

Offline

#6 2016-12-14 18:15:16

hnb
Member
Registered: 2015-06-15
Posts: 290

Re: Lazarus package

I mean moving units to directories. We should for example move

PasZip, SynBidirSock, SynBigTable, SynCommons, SynCrtSock, SynCrypto, SynFastWideString, SynFPCTypInfo, SynLog, SynLZ, SynLZO, SynMustache, SynSSPIAuth, SynWinSock, SynZip, SynZipFiles, SynTests

to "Common" directory or something similar.

Note: Zeos is excellent example of good designed packages for Lazarus.


best regards,
Maciej Izak

Offline

#7 2016-12-19 15:54:57

mohsenti
Member
Registered: 2015-04-11
Posts: 72

Re: Lazarus package

Why there is a need for that?
@ab with a package making new projects in Lazarus and mORMot will be easier with no need of adding paths.
Lazarus encourage using packages not adding paths.

Offline

#8 2016-12-23 16:42:52

mohsenti
Member
Registered: 2015-04-11
Posts: 72

Re: Lazarus package

Any comment dear @ab?

Offline

#9 2019-04-16 12:43:33

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,706
Website

Re: Lazarus package

I would rather move no unit just to make a package looks better - more deep refactoring may eventually take place in the future (mORMot version 2?)

Offline

#10 2019-04-28 15:18:17

mdbs99
Member
From: Rio de Janeiro, Brazil
Registered: 2018-01-20
Posts: 139
Website

Re: Lazarus package

Hello,

Packages have been included and now I'm trying to add it in Online Package Manager (OPM).
I've already asked about the author but it seems that he has an issue to compile.

It looks like something related with the version. I'm using Lazarus 2.1.0 r59757M FPC 3.3.1.

Someone knows if we can compile mORMot using FPC 3.0.4, at least the base package?
If it's not possible now, can we make some changes to do it?

I think they only accepted packages that run in the current FPC version.

--

EDIT: he added, but is good to have it working on current version of FPC.

Last edited by mdbs99 (2019-04-28 15:58:04)

Offline

#11 2019-04-29 06:35:10

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: Lazarus package

FPC 3.2 is required even for base package because of changes in RTTI.
Lets wait a little, 3.2 should be released in this year

Offline

#12 2019-04-29 14:31:05

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,706
Website

Re: Lazarus package

Perhaps https://github.com/synopse/mORMot/commi … b453ab834b may enhance the compatibility with FPC 3.0.4.

Feedback is welcome!

Offline

#13 2019-05-07 14:31:24

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 337

Re: Lazarus package

I trying migrate from Delphi 7 to FPC 3.3.1 and Lazarus 2.1.0 (I don't know anything of Lazarus/FPC), the OPM is very interesting and I have two questions:

1) Is posible that every time @ab update mORMot it is uploaded to http://packages.lazarus-ide.org/ automatically as with github ?
2) Is posible put in the OPM package version the content the synopsecommit.inc ? This way the last update is knowed.

Thanks.


Esteban

Offline

Board footer

Powered by FluxBB