sconscript

来自「dysii是一款非常出色的滤波函数库」· 代码 · 共 25 行

TXT
25
字号
import osimport os.pathImport(['env', 'objects', 'headers', 'releases'])# Build list of source files and subdirectoriescwd = os.getcwd()files = os.listdir(cwd)for file in files:  path = os.path.join(cwd, file)  if os.path.isdir(file):    file = os.path.join(file, 'SConscript')    if os.path.isfile(file):      env.SConscript(file)  elif os.path.isfile(file):    if file.endswith('.cpp') or file.endswith('.c'):      releases.append(path)      objects.append(env.StaticObject(file))    elif file.endswith('.hpp') or file.endswith('.h'):      releases.append(path)      headers.append(path)    elif file == 'SConscript':      releases.append(path)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?