The gyp build can generate shared libraries on Linux (as of r14166).
You can set up to use shared libraries by setting the GYP_DEFINES variable
as follows:
$ export GYP_DEFINES='library=shared_library'
$ gclient runhooks --force
If it's not set when you run "gclient", it will silently generate .scons
files that build with static libraries, of course, so put it in your
.profile or .bashrc or whatever suits.
As an alternative to an environment variable, put the following text in the
~/.gyp/include.gypi startup file in your home directory:
{
'variables': {
'library': 'shared_library',
},
}
Note that you *can* build shared and static in the same tree by switching
back and forth (the shared object files will have a different suffix), but
the .a and .so files get built in the same sconsbuild/{Debug,Release}/lib
directory. This can throw you for a loop if the linker decides to use an
old .so in preference to the new .a you just built, so it's safer to clean
things out (at least the lib/ subdirectory, anyway).
--SK
--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected]
View archives, change email options, or unsubscribe:
http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---