📄 sconscript
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -