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: In the scans, I am trying to: 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:
WIN32FILTER = $ (wildcard * win32 * ) CSFBJS = $ (patsubst% .cxx,% .o, $ (filter-out $ (WIN32FILTER), $ (wildcard * .cxx)))
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
Post a Comment