Hi, someone has a better idea on how to make a package both for delphi and lazarus?
This will be a private package, so I will not make it public.
I need to use some libs with lazarus, and some other with delphi.
What I planned to do, is to have a common component, that calls code from another object, that object is separated in two files, both having the same functionality.
Say:
- component (TComponent descendant, to place in form, non visual)
-- uses 'connection_lazarus'
-- uses 'connection_delphi'
depending of course of the platform used.
I already found
{$IFDEF FPC}
// fpc unit
{$ELSE}
// delphi unit
{$ENDIF}
I know that packages are handled in a different way, but I'm new to Delphi. Never made a Delphi package.
What I know, is that in delphi the 'Register' method must be into a separate file. So we have design and runtime separated. These must be 2 different packages, or just 2 different files?
And any sample 'cross product' packages to see and study are welcome.