You could use the same trick that the Mozscape API code uses to run its unit tests to pick up the .so files from the build directory without actually building them in the source tree.