SHARE
TWEET

Untitled

a guest Jan 27th, 2016 444 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Building Chromium x64 with Visual Studio 2015
  2.  
  3. Requirements: Windows x64, 8GB RAM, free space ~30GB (sources ~20GB, each build (release/debug x32/x64) ~10GB)
  4. Software: MS Visual Studio 2015 with Update 1 (custom install, check "Visual C++" and "Tools and Win10 SDK")
  5.  
  6. Download https://src.chromium.org/svn/trunk/tools/depot_tools.zip and extract it (i.e. D:\depot_tools)
  7.  
  8. note: you can build with API keys or without:
  9. 1) without keys you must alter GYP_DEFINES to:
  10.     - google_api_key='no' google_default_client_id='no' google_default_client_secret='no'
  11. 2) with your API keys set:
  12.     - google_api_key='<your_api_key>' google_default_client_id='<your_client_id>' google_default_client_secret='<your_client_secret>'
  13.     - more info: https://www.chromium.org/developers/how-tos/api-keys
  14. 3) with google API keys set use_official_google_api_keys=1 and remove parameters above
  15.     - IMPORTANT: you need google API keys in D:\depot_tools\src\google_apis\internal\google_chrome_api_keys.h
  16.    
  17. let's try build chromium without google services:
  18. run CMD.exe
  19.  
  20. > cd /D D:\depot_tools
  21. > set PATH=D:\depot_tools;%PATH%
  22. > set DEPOT_TOOLS_WIN_TOOLCHAIN=0
  23. > set GYP_DEFINES=target_arch=x64 libyuv_enable_svn=1 proprietary_codecs=1 fastbuild=2 remove_webcore_debug_symbols=1 ffmpeg_branding=Chrome syzygy_optimize=1 google_api_key='no' google_default_client_id='no' google_default_client_secret='no'
  24. > set GYP_MSVS_VERSION=2015
  25. > gclient
  26. > fetch --nohooks chromium --nosvn=True
  27. downloaded ~20GB
  28. > cd /D D:\depot_tools\src
  29. > git rebase-update
  30. > gclient sync --with_branch_heads
  31. > ninja -C out/Release_x64 mini_installer.exe
  32.  
  33. done, now you have:
  34.     - D:\depot_tools\src\out\Release_x64\mini_installer.exe
  35.     - D:\depot_tools\src\out\Release_x64\chrome.7z
  36.  
  37. updating sources and make new build:
  38. run CMD.exe
  39.  
  40. > cd /D D:\depot_tools\src
  41. > set PATH=D:\depot_tools;%PATH%
  42. > set DEPOT_TOOLS_WIN_TOOLCHAIN=0
  43. > set GYP_DEFINES=target_arch=x64 libyuv_enable_svn=1 proprietary_codecs=1 fastbuild=2 remove_webcore_debug_symbols=1 ffmpeg_branding=Chrome syzygy_optimize=1 google_api_key='no' google_default_client_id='no' google_default_client_secret='no'
  44. > set GYP_MSVS_VERSION=2015
  45. > git rebase-update
  46. > gclient sync --with_branch_heads
  47. > ninja -C out/Release_x64 mini_installer.exe
  48.  
  49. Done!
  50.  
  51. (©nik)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top