python - excluding some files from Build in Scons -


Since I'm a newbie in Skins, I'm finding it difficult to migrate my existing Macfill into Skones.

Background: I have 50 files in a directory. I only want to filter the files with the * .cxx extension, which gives the file name even without the "win32" string.

Can anyone suggest an implementation for this argument in the scones:

Makefile implementation:

  WIN32FILTER = $ (wildcard * win32 * ) CSFBJS = $ (patsubst% .cxx,% .o, $ (filter-out $ (WIN32FILTER), $ (wildcard * .cxx)))   

In the scans, I am trying to: (file, '* .cxx') for the file name: 'win32' is not in the file name: moduleSources + = '' + filename env. StaticLibrary ("support_host", moduleSources)

module search should contain a list of all * .cxx files (except win32 string)) which will be used to create a static L ⇒.

Any help is appreciated.

You create a string with spaces in it to describe the set of source code files Do not do as you wish.

Instead, make a list of file names. The following synchronized what you need:

  import os import fnmatch env = environment () moduleSources = [] oswalk (in './') for root, dirs, file: fnmatch for file name In the .filter (files, '* .cxx'): If the "win32" file is not in the name: moduleSources.append (os.path.join (root, filename)) env.StaticLibrary ("support_host", moduleSources)    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -