dea*_*mer 6 google-chrome chromium
我是铬源代码的新手.我对铬源代码制作文件(gyp,gypi)几乎没有疑问.
1).gyp和.gypi文件有什么区别?
./Source/WebCore/WebCore.gyp/WebCore.gyp
./Source/WebCore/WebCore.gyp/gyp/WebCore.gypi
Run Code Online (Sandbox Code Playgroud)
2)我如何检查哪个文件正在编译linux/mac/windows铬代码.因为当我检查文件中的.gyp文件时,我显示它几乎列出了webcore for mac/linux/android /等的所有文件.
以上疑问是杀了我:(
按照惯例,包含的文件具有后缀 .gypi(gyp include)。一个 .gyp 文件可能在其包含字段中包含多个 .gypi 文件。像这儿:
'includes': [
'../build/win/precompile.gypi',
'../build/features.gypi',
'../build/scripts/scripts.gypi',
'../modules/modules.gypi',
'../bindings/bindings.gypi',
'core.gypi',
],
Run Code Online (Sandbox Code Playgroud)
要了解正在为您的平台编译哪些代码,您可以检查代码中的条件,如下所示:
['OS=="win"', {
# In generated bindings code: 'switch contains default but no case'.
# Disable c4267 warnings until we fix size_t to int truncations.
'msvs_disabled_warnings': [ 4065, 4267 ],
'include_dirs': [
'<@(webcore_include_dirs)',
'<(DEPTH)/gpu',
'<(angle_path)/include',
],
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1787 次 |
| 最近记录: |