win7 64 vs2010 编译chrome

1.安装vs2010 + sp1
2.安装win8 sdk
3.安装 DirectX SDK 

4.打补丁 参考 http://dev.chromium.org/developers/how-tos/build-instructions-windows

DirectX SDK 安装完成后,会在系统环境变量里面多一个DXSDK_DIR的环境变量出来。


配置DirectX SDK
在C:\Users\{your name}\AppData\Local\Microsoft\MSBuild\v4.0目录下面:
1)编辑Microsoft.Cpp.Win32.user.props文件
在IncludePath 和LibraryPath节点处,添加DirectX SDK相应的路径(刚开始没太注意,直接新加了IncludePath和
LibraryPath,结果编译Chromium报一大堆.h文件找不到,切记不要和我一样**了,呵呵)

[plain]  view plain copy print ?
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  
  3.   <PropertyGroup>  
  4.     <IncludePath>$(DXSDK_DIR)\include;$(IncludePath)</IncludePath>  
  5.     <LibraryPath>$(DXSDK_DIR)\lib\x86;$(LibraryPath)</LibraryPath>  
  6.   </PropertyGroup>  
  7. </Project>  

2)编辑Microsoft.Cpp.x64.user.props,和上面相同只是libraryPath需要把路径修改为x64
[plain]  view plain copy print ?
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  
  3.   <PropertyGroup>  
  4.     <IncludePath>$(DXSDK_DIR)\include;$(IncludePath)</IncludePath>  
  5.     <LibraryPath>$(DXSDK_DIR)\lib\x64;$(LibraryPath)</LibraryPath>  
  6.   </PropertyGroup>  
  7. </Project>  

你可能感兴趣的:(win7 64 vs2010 编译chrome)