mesonbuild/meson

Generated files not regenerated when the generator changes

开放

#2,960 创建于 2018年1月22日

 (12 条评论) (0 个反应) (0 位负责人)Python (1,465 个派生)batch import
buggeneratorshelp wanted

仓库指标

星标
 (4,978 个星标)
PR 合并指标
 (平均合并 139天 13小时) (30 天内合并 51 个 PR)

描述

I have a bunch of files generated by a python script. When changing the gputop-oa-codegen.py script, files don't get regenerated. Is this expected?

oa_generator = generator(                                                          
  prog_python2,                                                                    
  arguments : ['@CURRENT_SOURCE_DIR@/../scripts/gputop-oa-codegen.py', '@INPUT@',  
               '--chipset', '@EXTRA_ARGS@', '--code', '@OUTPUT0@',                 
               '--header', '@OUTPUT1@'],                                           
  output : ['@BASENAME@.c', '@BASENAME@.h'],                                       
)                                                                                  
                                                                                   
oa_sources = []                                                                    
foreach hw : ['hsw', 'bdw', 'chv', 'sklgt2', 'sklgt3', 'sklgt4', 'bxt',            
              'kblgt2', 'kblgt3', 'glk', 'cflgt2', 'cflgt3', 'cnl']                
  _xml = '../gputop-data/oa-@0@.xml'.format(hw)                                    
  oa_sources += oa_generator.process(_xml, extra_args : hw)                        
endforeach                                                                         
                                                                                   
gputop_client_oa = static_library('gputop_client_oa', oa_sources,                              
                                  c_args : ['-Wno-unused-parameter', '-Wno-unused-function'],  
                                  dependencies : mesa_dep)                                     
                                                                                               

贡献者指南