On Thu, Aug 09, 2007 at 10:30:23AM +0100, Tom (JDi Solutions) wrote: > Hi all, > > I'm currently experimenting with compressing OpenLayers and have been > running build.py to create a compressed version of the library, however the > smallest version I seem to be able to make is 220K and from the output at > the command line it seems to be including loads more stuff than I actually > need despite my library.cfg file looking like this: > > > I'm assuming I may actually need Rico, SingleFile, OpenLayers and > BaseTypes? But is it possible to get rid of the likes of virtualearth, > yahoo and all that stuff? All I want in this version is WMS, some mouse > controls and point and I want the file as small as possible. 220K just > seems like more than it ought to be? > > Do I need to specifically include all the stuff I don't want in the exclude > list or are things included as dependencies?
http://trac.openlayers.org/wiki/Profiles "If you wish to create a build where you must specify each file you wish to include, you should then add files to an '[include]' stanza, as lite.cfg does. If you wish to create a build where all files in the lib/ directory are included by default, and you wish to *exclude* certain files, you can do this by putting filenames under the [exclude] header. Look at the files library.cfg and lite.cfg in the build/ directory for examples of this behavior." Dependancies are/should be added automatically, though there are many files that are missing dependancies that you may have to add manually. missing dependancies can be filed as bugs. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
