version script for libkdeui

Lubos Lunak l.lunak at suse.cz
Sat Mar 13 21:06:15 CET 2004


Dne so 13. března 2004 17:23 Luciano Montanaro napsal(a):
> I have spent some time trying to build a version script for the kdeui
> library, like those currently available for libkjs and libkhtml.
> It contains all the classes which are in the NOINST includes,
> plus a few that seem to be marked as private.
>
> I am trying the library just now, and it does not seem to have any
> bad effect. Using the script, 313 "T" symbols are hidden in the library,
> out out of 5435. That's not much. I'd like to try the same for libkio and
> libkdecore. Do you think the effort is worth it?
>

 No. You'd have to update the files until the end of your life ;). I suggest 
writing a script that will read all to-be-installed *.h files, check for 
KDE_EXPORT/KDE_NO_EXPORT, and build the file from that. Given that the 
kdemacros.h file even gives specific instructions where to put all the macros 
in the various kinds of type definitions, the script could be even quite 
simple. It'd most probably also require adding the macros also to all the 
places in the .h files though.

-- 
 Lubos Lunak
 KDE Developer


More information about the Kde-optimize mailing list