[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Could kdecore depend on kjs?
From:       Thiago Macieira <thiago () kde ! org>
Date:       2007-03-14 15:58:34
Message-ID: 200703141658.35049.thiago () kde ! org
[Download RAW message or body]


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

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic