当前位置:网站首页>[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
边栏推荐
- How to choose congestion model and anemia model
- Agilent digital multimeter software ns multimeter, real-time data acquisition and automatic data saving
- 2022 recommended REITs Industry Research Report investment strategy industry development prospect market analysis (the attachment is a link to the online disk, and the report is continuously updated)
- CodeIgniter active record not equal - CodeIgniter active record not equal
- patent filter
- Robot reinforcement learning - transferring end-to-end videomotor control from simulation to realworld (curl 2017)
- What if modstart forgets the background user or password?
- Love that can't be met -- what is the intimate relationship maintained by video chat
- D parallel and rotator
- 嵌入式RTOS
猜你喜欢

机器人强化学习——Transferring End-to-End Visuomotor Control from Simulation to RealWorld (CoRL 2017)

What has urbanization brought to our mental health and behavior?

2022 recommended tire industry research report industry development prospect market analysis white paper

How to use thread stack location

Sailing with karmada: multi cluster management of massive nodes

I haven't encountered these three problems. I'm sorry to say that I used redis

Parsing rshub document auto generation API

Cipher

Agilent digital multimeter software ns multimeter, real-time data acquisition and automatic data saving

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
随机推荐
AttributeError: module ‘torch. nn. Parameter 'has no attribute' uninitializedparameter 'solution
Continue yesterday's plan: February 16, 2022
Research on heuristic intelligent task scheduling
Le langage C imprime "Love", "Mars hit Earth" et ainsi de suite en utilisant printf, qui est constamment mis à jour
Is it safe to open a securities account? Is there any danger
【IoT】公众号“简一商业”更名为“产品人卫朋”说明
20年秦皇岛D - Exam Results(二分+思维,附易错数据)
Research Report on the overall scale, major manufacturers, major regions, products and application segments of semiconductor wafer metal stripping platform in the global market in 2022
Est - ce que l'ouverture d'un compte de titres est sécurisée? Y a - t - il un danger?
Can use the mouse, will reinstall the computer system tutorial sharing
2022-2028 global and Chinese industrial electronic detonator Market Status and future development trend
gan semi conductor
The easiest GUI to compile: dgui
Matlab直接求贝塞尔函数的导函数
See how I do it step by step (I)
3 frequently tested SQL data analysis questions (including data and code)
D parallel and rotator
Mongodb basic knowledge summary
Research Report on the recommended lithography industry in 2022 industry development prospect market investment analysis (the attachment is a link to the network disk, and the report is continuously u
Cipher
