当前位置:网站首页>[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 insert pseudo code into word documents simply and quickly?
- The first commercial spacewalk of mankind is finalized! Musk SpaceX announced a new round of space travel plan, and the American rich became repeat customers
- What if modstart forgets the background user or password?
- Leetcode notes on question brushing (XIV) -- related topics of binary tree attributes in binary tree chapter
- Devops development, operation and maintenance Basics: using Jenkins to automatically build projects and notify by email
- February 14 institutional dragon and tiger list and operation of well-known hot money
- Direct derivation of Bessel function with MATLAB
- Structure training camp module II operation
- Private project practice sharing gtlab+jenkins architecture construction and document reference
- Agilent digital multimeter software ns multimeter, real-time data acquisition and automatic data saving
猜你喜欢

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

Devops development, operation and maintenance Basics: using Jenkins to automatically build projects and notify by email

Ti Click: quickly set up tidb online laboratory through browser | ti- team interview can be conducted immediately

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

Test content

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

Research Report on the new energy industry of recommended power equipment in 2022 industry development prospect market investment analysis (the attachment is a link to the network disk, and the report

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)

How to insert pseudo code into word documents simply and quickly?

2-nitro-5,10,15,20-tetra (3,5-dimethoxyphenyl) porphyrin (no2tdmpp) H2) /5,10,15,20-tetra (4-methylphenyl) porphyrin (TMPP) H2) Qiyue porphyrin products
随机推荐
ICLR is going to have a big discussion on the deep generation model. Max welling and the winner of the AAAI million dollar award are here. Bengio is one of the organizers
Complete collection of necessary documents for project management: you can't write these 14 project documents yet?
Software architecture final review summary
Common optimization items
Plugin
data management plan
HTTP Caching Protocol practice
《软件体系结构》期末复习总结
想问问,券商选哪个比较好尼?本人小白不懂,现在网上开户安全么?
Ti Click: quickly set up tidb online laboratory through browser | ti- team interview can be conducted immediately
Est - ce que l'ouverture d'un compte de titres est sécurisée? Y a - t - il un danger?
The fresh student who was born in Ali after 2000: it's really fragrant to mend this
(practice C language every day) matrix
The easiest GUI to compile: dgui
开启生态新姿势 | 使用 WordPress 远程附件存储到 COS
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)
Robot reinforcement learning -- first person vs third person
Difference between parametric continuity and geometric continuity
Research on heuristic intelligent task scheduling
C語言用 printf 打印 《愛心》《火星撞地球》等,不斷更新
