[sldev] Source directory housekeeping / organizing?

Dale Mahalko dmahalko at gmail.com
Mon Apr 20 10:12:12 PDT 2009


The wiki is supposed to help with understanding the viewer source, but
certain pages are "stale" and don't reflect the current state of the
client anymore. One page that has gotten really stale is this one,
which is current as of 1.17.2 on 6/2007...

https://wiki.secondlife.com/wiki/Viewer_Source_Files

However, a second problem is that the viewer source seems to be in
need of some housekeeping and reorganizing, before the wiki page can
be reorganized. After the client changed to the new viewer waaaaaaaay
back going from \appviewer to \newview it seems that \newview has
become a catchall for a lot of new/changed stuff that seems like it
should be in folders outside of \newview.



For example, in the latest public release ZIP I see in \newview..

146 files named llfloater*.cpp
88 files named llpanel*.cpp
40 files named lltool*.cpp

Um, shouldn't all that be located in \llui ? All the dialog boxes aka
floaters and panels and tools are apparently part of the "user
interface"....



Of course this could go in the reverse direction. Does the source
really need subdirectores which contain only a few source files?
\llimage is extremely sparse, for example...

\llimage\llimage*.cpp -> \newview\.
\llimage\llpngwrapper.cpp -> \newview\llimage-llpngwrapper.cpp
\llimage\llpngwrapper.h -> \newview\llimage-llpngwrapper.h



Some people may like the flat-file view of things, without any
folders, since it eliminates digging through a chest of drawers to
find a few lonely socks in each one..

It would be nice if one organization method or the other would win,
rather than a mashup of some stuff in separate directories, and some
stuff all thrown together into \newview, as it is now.

Would moving files around from \newview into separate directories
screw up the SVN versioning? Do the files just have to stay where they
were created for SVN consistency, even if it is not ideal for
documentation and comprehension?


-- Dale Mahalko / Scalar Tardis


More information about the SLDev mailing list