[Lazarus] Optional package dependencies

Alexander Klenin klenin at gmail.com
Sun Feb 20 23:49:02 CET 2011


On Sat, Sep 11, 2010 at 21:44, Alexander Klenin <klenin at gmail.com> wrote:
>>> However, I'd like those requirements
>>> to be optional -- so that TAggPasChartRenderer and
>>> TOpenGLChartRenderer components would be
>>> accessible only if AggPas/OpenGL is installed, but the rest of
>>> TAChart would be available regardless.
>>> Is there a way to achieve the above?
>>
>> Not automatically.
>
> Too bad. The only way I see is to place each renderer in a separate
> package dependent both on TAChart and a corresponding library.
>

I have committed an initial implementation of the AggPas-based drawing
backend for TAChart. To avoid TAChart -> AggPas dependency, I did not add
TADrawerAggPas unit to the package, which is of course suboptimal.
See components/tachart/demo/aggpas for an example.

So, how to proceed? Should I create TAChartAggPasPkg?

-- 
Alexander S. Klenin




More information about the Lazarus mailing list