当前位置:网站首页>[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
边栏推荐
- Devops development, operation and maintenance Basics: using Jenkins to automatically build projects and notify by email
- 开启生态新姿势 | 使用 WordPress 远程附件存储到 COS
- gan semi conductor
- The first in China! CICA technology database antdb appears at the performance test tool conference of China Academy of communications technology
- The translation of those exquisite lines in the eighth season of the big bang
- innography
- 5000+ 字解读 | 产品经理:如何做好元器件选型?
- Domain name hack
- β- Tetraphenyl nickel porphyrin with all chlorine substitution| β- Thiocyano tetraphenyl porphyrin copper| β- Dihydroxy tetraphenyl porphyrin 𞓜 2-nitroporphyrin | supplied by Qiyue
- DataX connection MySQL cannot find driver
猜你喜欢

5000+ 字解读 | 产品经理:如何做好元器件选型?

5000+ word interpretation | Product Manager: how to do a good job in component selection?

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

innography

Tcapulusdb Jun · industry news collection (V)

Purple red solid meso tetra (o-alkoxyphenyl) porphyrin cobalt (meso-t (2-rop) PCO) / tetra (n, n-diphenyl-p-amino) phenyl porphyrin (tdpatph2)

Complete collection of necessary documents for project management: you can't write these 14 project documents yet?

5,10-di (4-aminophenyl) - 15,20-diphenylporphyrin (cis-dadph2) /5,15-di (4-aminophenyl) - 10,20-diphenylporphyrin (trans-dadph2) / (tri-apph2) supplied by Qiyue

2-nitro-5,10,15,20-tetra (4-methylphenyl) porphyrin copper (no2tmpp) Cu) /2-nitro-5,10,15,20-tetra (4-methylphenyl) porphyrin (no2tmpp) H2) Qiyue porphyrin supply

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)
随机推荐
Software architecture experiment summary
Analysis report on the investment market of the development planning prospect of the recommended NFT industry research industry in 2022 (the attachment is a link to the online disk, and the report is
IDENTITY
软件体系结构实验汇总
The win11 file resource manager has an explicit Caton, and Microsoft promises to improve the performance in 2022
51 single chip microcomputer learning notes 7 -- Ultrasonic Ranging
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
Leetcode notes on question brushing (XIV) -- related topics of binary tree attributes in binary tree chapter
The first in China! CICA technology database antdb appears at the performance test tool conference of China Academy of communications technology
C language uses printf to print love, Mars strikes the earth, etc., which are constantly updated
Ti Click: quickly set up tidb online laboratory through browser | ti- team interview can be conducted immediately
Kubernetes backup disaster recovery service product experience tutorial
Can use the mouse, will reinstall the computer system tutorial sharing
Love that can't be met -- what is the intimate relationship maintained by video chat
使用VS创建静态链接库.lib并使用
5- (4-benzoimide phenyl) - 10,15,20-triphenylporphyrin (battph2) and its Zn complex (battpzn) / tetra (4-aminophenyl) porphyrin (tapph2) Qiyue supply
Modularization and modular specification commonjs
机器人强化学习——第一人称 VS 第三人称
On February 15, the market hot money operation and the dragon and tiger list
Devops development, operation and maintenance Basics: using Jenkins to automatically build projects and notify by email
