我正在尝试对名为libchromiumcontent的内容进行一些更改。通过查看文件,看起来所有对代码所做的更改都是通过.patch
文件完成的,这是我以前没见过的,这个文件的一个例子是:
ffmpeg.patch
diff --git a/ffmpeg.gyp b/ffmpeg.gyp
index 31997bc..741d37a 100755
--- a/ffmpeg.gyp
+++ b/ffmpeg.gyp
@@ -414,14 +414,6 @@
'_snprintf=avpriv_snprintf',
'vsnprintf=avpriv_vsnprintf',
],
- }],
- ['target_arch == "x64"', {
- # TODO(wolenetz): We should fix this. http://crbug.com/171009
- 'msvs_disabled_warnings' : [
- 4267
- ],
- }],
- ['ffmpeg_component == "shared_library"', {
# Fix warnings about a local symbol being inefficiently imported.
'msvs_settings': {
'VCCLCompilerTool': {
@@ -431,6 +423,14 @@
],
},
},
+ }],
+ ['target_arch == "x64"', {
+ # TODO(wolenetz): We should fix this. http://crbug.com/171009
+ 'msvs_disabled_warnings' : [
+ 4267
+ ],
+ }],
+ ['ffmpeg_component == "shared_library"', {
'sources': [
'<(shared_generated_dir)/ffmpeg.def',
],
所以我的问题
libchromiumcontent
?答案 0 :(得分:0)
如回购页面所述, libchromiumcontent 是Chrome浏览器的content module(如下图所示)。它由Electron使用,因此也被Electron应用使用。为了支持这一点,Electron团队定期从上游和补丁进行更改。
Brendan Forster covered this in slightly more detail在NDC {Syndney}的“走进电子内部”演讲中。