Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work

源代码在线查看: symlink.py

软件大小: 35482 K
上传用户: sinba
关键词: libraries peer-reviewed emphasize provides
下载地址: 免注册下载 普通下载 VIP

相关代码

				#!/usr/bin/python								# Copyright 2003 Dave Abrahams				# Copyright 2003 Vladimir Prus				# Distributed under the Boost Software License, Version 1.0.				# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)								# Test the 'symlink' rule.								import os				import BoostBuild												if os.name != 'posix':				    print "The symlink tests can be run on posix only."				    import sys				    sys.exit(1)												t = BoostBuild.Tester()								t.write("jamroot.jam", "import gcc ;")								t.write("jamfile.jam", """				exe hello : hello.cpp ;				symlink hello_release : hello/release ;				symlink hello_debug : hello/debug ;				symlink links/hello_release : hello/release ;				""")								t.write("hello.cpp", """				int main() {}				""")								t.run_build_system()				t.expect_addition([				    'hello_debug.exe',				    'hello_release.exe',				    'links/hello_release.exe'])								t.cleanup()							

相关资源