利用C

源代码在线查看: sconstruct

软件大小: 7436 K
上传用户: zhuying0000
关键词:
下载地址: 免注册下载 普通下载 VIP

相关代码

				# 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-config				compiler = commands.getoutput('pkg-config --variable=compiler dolfin')								# Create a SCons Environment based on the main os environment				env = Environment(ENV=os.environ, CXX=compiler)								# Get compiler flags from pkg-config				env.ParseConfig('pkg-config --cflags --libs dolfin')								# Program name				env.Program('demo', 'main.cpp')							

相关资源