Chinaunix首页 | 论坛 | 博客
  • 博客访问: 540513
  • 博文数量: 83
  • 博客积分: 6010
  • 博客等级: 准将
  • 技术积分: 1169
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-29 22:34
文章分类

全部博文(83)

文章存档

2011年(3)

2010年(29)

2009年(30)

2008年(21)

我的朋友

分类: LINUX

2009-09-01 20:22:27

1,打包

打包比较简单,可以ant一句命令就行:


2,编译


以该文章为入口就可以找到所有需要的安装文档。
下面说下大概的过程:

2.1 安装VS2005 Pro版或者VS2008

因为要编译的是VC++,所以多余的东西可以不选。另外,如果是VS2008,则不需2.2了。

2.2 安装Windows Vista SDK


因为编译PageSpeed是与FF一起编译的,所以,还需要配置编译FF的软件

2.3 安装MozillaBuild


MozillaBuild是一个打包,里面包含了很多软件,包括vim,emacs,python,svn等等,让你可以在Windows下模拟linux下的终端。

2.4 安装Ant

Windows下应该也可以安装Ant。不过我刚好Linux下有Ant,而Windows没有,于是借用了Linux下的Ant来完成。

2.5 编译

  1. .
  2. 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:

  1. Download mozilla Firefox source:
  2. Run tar xjf firefox-*-source.tar.bz2 (you should probably do this somewhere outside of the Page Speed source tree, e.g. /tmp.
  3. 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.
  4. cd mozilla
  5. make -f client.mk build This will build Firefox as well as Page Speed. It can take an hour or more.
  6. 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”。


阅读(1286) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~