I have only recently started to study webrtc deeply. If I have any questions, please leave a message.
How to generate WEBRTC vs engineering under Windows see my last article.
But when I modify the project, such as adding cc and H files, adding a third-party dependency library, you will find that the VS modification is useless. VS can only be used when a code reader and editor are available.
This time we need to understand the principle of WEBRTC construction Engineering:
1, WEBRTC through GN to build the project.
2. GN generates ninja file by reading the Gn,gni file in the current directory
3, if you want to modify the relevant works, modify the corresponding GN file can be
In summary if you want to modify the WEBRTC project, you must use GN.
GN has few domestic explanations, and GN's own help commands are the best, followed by official documentation.
1. GN Command
# GN Help//General Assistance command
To view the use of configs
# GN Help Configs
Here's a question to note: The GN command executes under the normal directory, and can only be executed on project path.
2. Official documents
This is an introduction, there is a simple example
Https://gn.googlesource.com/gn/+/master/docs/quick_start.md
This is a detailed document
Https://gn.googlesource.com/gn/+/master/docs/reference.md
There is a Chinese blog written is also very good, recommend
72627138
How to modify the WEBRTC project (vs 2017)