当前位置:网站首页>[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
边栏推荐
- Review of MySQL knowledge points
- 2022 recommended tire industry research report industry development prospect market analysis white paper
- Loosely matched jest A value in tohavebeencalledwith - loose match one value in jest toHaveBeenCalledWith
- Research on heuristic intelligent task scheduling
- HTTP Caching Protocol practice
- C language uses printf to print love, Mars strikes the earth, etc., which are constantly updated
- HTTP Caching Protocol practice
- JS messagechannel transport
- Why Houdini made the pyside2 plug-in crash
- How to insert pseudo code into word documents simply and quickly?
猜你喜欢

HTTP Caching Protocol practice

In 2022, I haven't found a job yet. I have been unemployed for more than one year. What is the "old tester" for eight years?

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 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

The first in China! CICA technology database antdb appears at the performance test tool conference of China Academy of communications technology

《软件体系结构》期末复习总结

What has urbanization brought to our mental health and behavior?
![[high concurrency] deeply analyze the callable interface](/img/dc/174f97fdd27180ed210d76768cc345.jpg)
[high concurrency] deeply analyze the callable interface

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

Quickly write MVVM code using source generators
随机推荐
软件体系结构实验汇总
5000+ word interpretation | Product Manager: how to do a good job in component selection?
C语言用 printf 打印 《爱心》《火星撞地球》等,不断更新
An efficient flutter hybrid stack management scheme with zero intrusion, you deserve it!
Cipher
[CV] wuenda machine learning course notes Chapter 13
2022 recommended cloud computing industry research report investment strategy industry development prospect market analysis (the attachment is a link to the online disk, and the report is continuously
Embedded RTOS
2022-2028 global and Chinese industrial digital electronic blasting detonator Market Status and future development trend
Summary of redis basic knowledge points
《软件体系结构》期末复习总结
64 commonly used terms for data analysis, really all!
2022 recommended tire industry research report industry development prospect market analysis white paper
想问问,券商选哪个比较好尼?本人小白不懂,现在网上开户安全么?
Matlab直接求贝塞尔函数的导函数
Introduction to Photoshop (the first case)
机器人强化学习——Transferring End-to-End Visuomotor Control from Simulation to RealWorld (CoRL 2017)
Tcapulusdb Jun · industry news collection (V)
Notebook access desktop shared disk
HTTP Caching Protocol practice
