All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

STORM-1320 Create a 3p-libndofdev-linux repo based on version 0.3 of Jan Ciger's linux libndofdev.

Review Request #340 - Created June 16, 2011 and submitted

Log Linden Reviewers
viewer
OPEN-21, STORM-1320, STORM-312 oz.linden, boroondas.gupte, Sythos
None viewer-development
Checked in version 0.3 of Jan Ciger's libndofdev drop-in replacement for linux.
* Added cmake build configuration.
* Added autobuild package configuration.
* Created libndofdev.txt license file from ndofdev.c file header.
* Added README to explain that this is only for use in the linux viewer.

BUGFIXES:
* OPEN-21 STORM-312 This version of libndofdev supports kernel versions >= 2.6.33.

When reviewing, please provide extra scrutiny to autobuild.xml and CMakeLists.txt, since those are the files I actually edited.
This built successfully on TeamCity and the packaged library worked correctly when I extracted it into the packages directory of the viewer build tree ( build-linux-i686/packages ).  My spacenavigator, which hasn't worked in six months, started working with the new build.
Review request changed
Updated (June 17, 2011, 8:32 a.m.)
I incorporated the feedback I got here into a new revision.

* Got rid of the hardcoded -m32 in CMakeLists.txt
* Also got rid of hard coded cmake build type
* Corrected the static library file location to lib/release
* Added the new /lib/release folder to the autobuild manifest and removed /lib
* Added the location of the other libndofdev library to the cmake warnings
* Added a BuildParam to make the built package get uploaded to the public s3

The repo is also now up on bitbucket: http://bitbucket.org/lindenlab/3p-libndofdev-linux
TC Build of this revision: http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-libndofdev-linux/rev/233137/arch/Linux/installer/libndofdev-0.3-linux-20110617.tar.bz2
hash: 9bf7a96c1d2fadb180fda91740c945c6

I'll put up the viewer changeset shortly as a separate diff.
Ship it!
Posted (June 17, 2011, 9:42 a.m.)
My remaining comments are mere bike-shedding, thus giving "Ship it!".
libndofdev/CMakeLists.txt (Diff revisions 1 - 2)
 
 
 
 
 
 
 
 
Thanks for making this a bit future-proofer. :-)

ADD_DEFINITION actually adds definitions, keeping previously added ones, doesn't it?

So we could take the '-pipe' out of the conditional code:

    if (WORD_SIZE EQUAL 32)
        ADD_DEFINITIONS("-m32")
    elseif (WORD_SIZE EQUAL 64)
        ADD_DEFINITIONS("-m64")
    endif (WORD_SIZE EQUAL 32)

    ADD_DEFINITIONS("-pipe")


Dunno if that's better though ... if in doubt, keep your version.




(I also thought about replacing the whole block by

    ADD_DEFINITIONS("-m${WORD_SIZE} -pipe")

but I guess an if-elseif is clearer.)
libndofdev/CMakeLists.txt (Diff revisions 1 - 2)
 
 
 
 
 
 
Good message texts! Though, end the second sentence with a period rather than arbitrary whitespace.