Could kdecore depend on kjs?
Thiago Macieira
thiago at kde.org
Wed Mar 14 15:58:34 GMT 2007
Chusslove Illich wrote:
>> I wonder too if you can't make this some kind of fixed plugin. If it's
>> there, dlopen it and hook the function "kjs_translate".
>
>I have little knowledge of dynamic loading: would it mean that there
> would still be a build-time dependency (headers...)?
It means there's a plugin somewhere in kdelibs that has a build-time and
run-time dependency on kjs/kjsembed (or QtScript).
Such plugin implements an interface that is defined up above in the chain
(probably at kdecore). And kdecore, when it realises it needs the
JavaScript facilities, loads the plugin. This brings in kjs into the
program's memory.
But note kjs is loaded into the program if and only if it's necessary.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070314/103dd0b5/attachment.sig>
More information about the kde-core-devel
mailing list