Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Building Chromium x64 with Visual Studio 2015
- Requirements: Windows x64, 8GB RAM, free space ~30GB (sources ~20GB, each build (release/debug x32/x64) ~10GB)
- Software: MS Visual Studio 2015 with Update 1 (custom install, check "Visual C++" and "Tools and Win10 SDK")
- Download https://src.chromium.org/svn/trunk/tools/depot_tools.zip and extract it (i.e. D:\depot_tools)
- note: you can build with API keys or without:
- 1) without keys you must alter GYP_DEFINES to:
- - google_api_key='no' google_default_client_id='no' google_default_client_secret='no'
- 2) with your API keys set:
- - google_api_key='<your_api_key>' google_default_client_id='<your_client_id>' google_default_client_secret='<your_client_secret>'
- - more info: https://www.chromium.org/developers/how-tos/api-keys
- 3) with google API keys set use_official_google_api_keys=1 and remove parameters above
- - IMPORTANT: you need google API keys in D:\depot_tools\src\google_apis\internal\google_chrome_api_keys.h
- let's try build chromium without google services:
- run CMD.exe
- > cd /D D:\depot_tools
- > set PATH=D:\depot_tools;%PATH%
- > set DEPOT_TOOLS_WIN_TOOLCHAIN=0
- > 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'
- > set GYP_MSVS_VERSION=2015
- > gclient
- > fetch --nohooks chromium --nosvn=True
- downloaded ~20GB
- > cd /D D:\depot_tools\src
- > git rebase-update
- > gclient sync --with_branch_heads
- > ninja -C out/Release_x64 mini_installer.exe
- done, now you have:
- - D:\depot_tools\src\out\Release_x64\mini_installer.exe
- - D:\depot_tools\src\out\Release_x64\chrome.7z
- updating sources and make new build:
- run CMD.exe
- > cd /D D:\depot_tools\src
- > set PATH=D:\depot_tools;%PATH%
- > set DEPOT_TOOLS_WIN_TOOLCHAIN=0
- > 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'
- > set GYP_MSVS_VERSION=2015
- > git rebase-update
- > gclient sync --with_branch_heads
- > ninja -C out/Release_x64 mini_installer.exe
- Done!
- (©nik)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement