如何从SCons中删除特定的文件

     关键一点就在于记住python中的返回类型为list.

 

如何从SCons中删除特定的文件# Grab all *.cpp or *.cxx files in current directory and store all the *.cpp/*.cxx info in GfxSrc
如何从SCons中删除特定的文件
VDGLSrc = VDGLenv.Glob('*.cpp')
如何从SCons中删除特定的文件
if OS == 'windows':  
如何从SCons中删除特定的文件    VDGLSrc.extend(VDGLenv.Glob(
'./win/*.cpp'))
如何从SCons中删除特定的文件    
if buildMode == 'debug':
如何从SCons中删除特定的文件         VDGLenv.Append(LIBS 
= ['kCg''OGSObjects''OGSDevices','OpenGL32''cg_d''cgGL_d'])
如何从SCons中删除特定的文件    
elif buildMode == 'release':
如何从SCons中删除特定的文件        VDGLenv.Append(LIBS 
= ['kCg''OGSObjects''OGSDevices','OpenGL32''cg''cgGL'])
如何从SCons中删除特定的文件
elif OS == 'darwin':
如何从SCons中删除特定的文件    VDGLSrc.extend(VDGLenv.Glob(
'./macos/*.cpp'))
如何从SCons中删除特定的文件    
# Exclude ModuleGL.cpp and nv_dds.cpp in VDGLSrc
如何从SCons中删除特定的文件
    VDGLRm1 = VDGLenv.Glob('./ModuleGL.cpp')
如何从SCons中删除特定的文件    VDGLSrc.remove(VDGLRm1[0])
如何从SCons中删除特定的文件    VDGLRm1 
= VDGLenv.Glob('./nv_dds.cpp')
如何从SCons中删除特定的文件    VDGLSrc.remove(VDGLRm1[0])
如何从SCons中删除特定的文件    
if buildMode == 'debug':
如何从SCons中删除特定的文件        VDGLenv.Append(LIBS 
= ['kCg_d''OGSObjects_d''OGSDevices_d''tbb_debug'])
如何从SCons中删除特定的文件    
elif buildMode == 'release':
如何从SCons中删除特定的文件        VDGLenv.Append(LIBS 
= ['kCg''OGSObjects''OGSDevices''tbb'])
如何从SCons中删除特定的文件
elif OS == 'linux':
如何从SCons中删除特定的文件    VDGLSrc.extend(VDGLenv.Glob(
'./unix/*.cpp'))

 

相关文章:

  • 2021-08-02
  • 2021-07-26
  • 2021-07-02
  • 2021-09-10
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
猜你喜欢
  • 2021-12-01
  • 2021-10-29
  • 2021-06-07
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-10-27
相关资源
相似解决方案