J'essaie d'apporter des modifications à quelque chose appelé libchromiumcontent. En regardant les fichiers, il ressemble à toutes les modifications apportées au code se fait via .patch
fichiers, que je ne l'ai pas vu auparavant, un exemple de ce fichier est:libchromiumcontent créer des fichiers de correctifs
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',
],
Donc à mes questions
- Quel type de fichier est-ce?
- Comment est-ce fait?
- C'est la bonne façon de faire des changements dans
libchromiumcontent
?