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文件的例子:

 
  
  1.   'targets': [ 
  2.     { 
  3.       'target_name': 'libdep_2', 
  4.       'type':'static_library', 
  5.       'actions': [ 
  6.         { 
  7.           'action_name': 'plug_in_dep_2', 
  8.           'inputs': [''], 
  9.           'outputs': ['plug_in_dep_2.out'], 
  10.           'action': ['python', 'build.py','11111111','<@(_target_name)','<!(pwd)'] 
  11.         }, 
  12.       ], 
  13.     }], 

 

附件中修改了chrome自己的gyp,可以供自己的项目使用,不限于chome了