sconstruct

来自「利用C」· 代码 · 共 17 行

TXT
17
字号
# This is an example of a simple SConstruct file for building# programs against DOLFIN. To build this demo, just type 'scons'.import os, commands# Get compiler from pkg-configcompiler = commands.getoutput('pkg-config --variable=compiler dolfin')# Create a SCons Environment based on the main os environmentenv = Environment(ENV=os.environ, CXX=compiler)# Get compiler flags from pkg-configenv.ParseConfig('pkg-config --cflags --libs dolfin')# Program nameenv.Program('test', 'main.cpp')

⌨️ 快捷键说明

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