gyp相关网站:
http://code.google.com/p/gyp/w/list
http://code.google.com/p/gyp/wiki/GypUserDocumentation
http://code.google.com/p/gyp/wiki/GypLanguageSpecification
http://www.cnblogs.com/dirlt/archive/2011/05/29/2061937.html
http://blog.csdn.net/bertzhang/article/details/7387954
一个action执行python文件的例子:
- {
- 'targets': [
- {
- 'target_name': 'libdep_2',
- 'type':'static_library',
- 'actions': [
- {
- 'action_name': 'plug_in_dep_2',
- 'inputs': [''],
- 'outputs': ['plug_in_dep_2.out'],
- 'action': ['python', 'build.py','11111111','<@(_target_name)','<!(pwd)']
- },
- ],
- }],
- }
附件中修改了chrome自己的gyp,可以供自己的项目使用,不限于chome了
转载于:https://blog.51cto.com/dailyc/1051722