Run ant pkg-moz
from the trunk of the source tree. This will package the Page Speed
sources for building in the Mozilla build system, in the file dist/page-speed-moz.zip.
Downloading and building in the Mozilla build system:
Run tar xjf firefox-*-source.tar.bz2 (you should probably do this somewhere outside of the Page Speed source tree, e.g. /tmp.
Unzip page-speed-moz.zip
in the same directory that you untarred the mozilla source. This will
overlay the Page Speed source in the mozilla extensions directory.
cd mozilla
make -f client.mk build This will build Firefox as well as Page Speed. It can take an hour or more.
The resulting shared object will be in obj-firefox/extensions/pagespeed/src/pagespeed 有个地方需要注意的是,我用的FF3.5.2的源码解压后是“mozilla-1.9.1”,而page-speed-moz.zip期待的是“mozilla”,所以要把FF解压的后的目录改名为“mozilla”。