当前位置:网站首页>[chromium] win10 vs2019 environment chromium configuration and compilation.
[chromium] win10 vs2019 environment chromium configuration and compilation.
2022-06-29 05:40:00 【Why so handsome】
List of articles
Hardware & software configuration
System requirements :
vs2019 demand : The best default path , Reduce the trouble .
- desktop c++
- mfc、atl
- .>= 10.0.19041 win10 SDK
- SDK Debugging Tools, Check install in the control panel program
Control Panel → Programs → Programs and Features → Select the “Windows Software Development Kit” → Change → Change → Check “Debugging Tools For Windows” → Change.
- SDK Debugging Tools, Check install in the control panel program


install depot_tools
- download
- environment variable path add to depot_tools The installation path
- System variables add DEPOT_TOOLS_WIN_TOOLCHAIN , And set to 0
- Press the following command in cmd Set up your own VS route
set vs2019_install=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professionalgclient- For installation windows Things needed , Such as mysysgit 、python
- determine python install
where pythondetermine python.bat stay python.exe. Before
get the code
You usually need to set up a proxy / There are global agents
$ git config --global user.name "My Name"
$ git config --global user.email "[email protected]"
$ git config --global core.autocrlf false
$ git config --global core.filemode false
$ git config --global branch.autosetuprebase always
- fetch Code
fetch --no-history chromiumDo not download historical information- Probability requires agency , interrupts , Use
gclient syncSync - If you need historical information , Debug fixed version with fallback , It's better to keep history .
- Probability requires agency , interrupts , Use
- There was a mistake : It should be an agency problem ? Not downloaded to this file .
Failed to download prebuilt clang package clang-llvmorg-14-init-17086-g38e16e1c-6.tgz Use build.py if you want to build locally. Exiting.- And then use
gclient syncSync .
- Problems arise : To the corresponding error Just delete all folders and resynchronize them .
Syncing projects: 85% (18/21) src/third_party/angle src/docs/website (ERROR)
compile
gn gen --ide=vs out\buildGenerate vs engineering ( have access to VS Compile the , Or use the command line ninja compile )- Get the results :
Generating Visual Studio projects took 12001ms Done. Made 17069 targets from 2996 files in 43099ms
- Get the results :
ninja -C out\build chromeUse ninja compile ( It will take a long time )( Errors can be repeated incrementally ?)- result :
[52062/52062] STAMP obj/chrome/chrome.stamp
- result :
Sure VS open .exe Step by step debugging .
Sure VS open all.sln GN Compile debugging .
Compilation acceleration
- By using
sccacheUse cache to speed up chromium compile ;
-sccachehave access toscoopToolsscoop install sccachedownload .
-scoopTool pass powershell download :Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
- Will usuallysccacheCapacity expansion to 30Gset SCCACHE_CACHE_SIZE="30G"
Basic concepts
gn & ninja
- gn amount to cmake;ninja amount to make;
- gn replace GYP,GYP replace CMake .gn use C++ Write , Increase speed .
- GYP Compare with CMake:GYP Configuration file writing method Emphasis on modularity 、 structured .
- gn Use Ninja replace Make As a new build tool .Ninja Pursue speed , Reduce features to speed up compilation ,
- ninja Use
build.ninjaDefine build rules , amount to make OfMakefile.
- ninja Use
- gn replace GYP,GYP replace CMake .gn use C++ Write , Increase speed .
- Chromium Use Ninja As a compiler , Use GN Generate .ninja The configuration file
- gn amount to cmake;ninja amount to make;
so many projects
- Solution file .sln There are too many projects in , Find what you want to see .
- then attach On the process debug
边栏推荐
- JS messagechannel transport
- patent filter
- 51 lines of code, self-made TX to MySQL software!
- Kubernetes backup disaster recovery service product experience tutorial
- D Author: import C programming in D
- PCI Verilog IP
- gan semi conductor
- 64 commonly used terms for data analysis, really all!
- real time AI based system questionaires
- Analysis report on the investment market situation of the development planning prospect of the recommended chip industry research industry in 2022 (the attachment is a link to the network disk, and th
猜你喜欢

Research Report on recommended specialized, special and new industries in 2022 industry development prospect and market investment analysis (the attachment is a link to the online disk, and the report

Design risc-v processor from scratch -- data adventure of five stage pipeline

Structure training camp module II operation

2022 recommended trend toy blind box industry research report industry development prospect market analysis white paper (the attachment is a link to the network disk, and the report is continuously up

Quickly write MVVM code using source generators

Analysis report on the investment market situation of the development planning prospect of the recommended chip industry research industry in 2022 (the attachment is a link to the network disk, and th

Kubernetes backup disaster recovery service product experience tutorial

5,10,15,20-tetra (3,5-dimethoxyphenyl) porphyrin ((tdmpp) H2) /2-nitro-5,10,15,20-tetra (3,5-dimethoxyphenyl) porphyrin copper (no2tdmpp) Cu) supplied by Qiyue

2022 recommended quantum industry research industry development planning prospect investment market analysis report (the attachment is a link to the online disk, and the report is continuously updated

Boost the digital economy and face the future office | the launch of the new version of spreadjsv15.0 is about to begin
随机推荐
Plugin
(practice C language every day) matrix
ES6 Modularization: export /import
D Author: import C programming in D
2022 community group buying industry research industry development planning prospect investment market analysis report (the attachment is the online disk link, and the report is continuously updated)
RTOS embarqués
Modularization and modular specification commonjs
2022 recommended precious metal industry research report industry development prospect market analysis white paper (the attachment is a link to the online disk, and the report is continuously updated)
patent filter
HTTP Caching Protocol practice
Would like to ask, which is the better choice for securities companies? I don't understand. Is it safe to open an account online now?
Slot
How to use thread stack location
Design risc-v processor from scratch -- data adventure of five stage pipeline
Analysis of ArrayList set in teacher Yang's class
Is it safe to open a securities account? Is there any danger
PCI Verilog IP
New d reflection generates ABI of C for class
Research Report on the overall scale, major manufacturers, major regions, product and application segmentation of disposable hearing aid batteries in the global market in 2022
Tcapulusdb Jun · industry news collection (VI)
