1 Star 0 Fork 121

blog/kbengine

forked from likecg/kbengine 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
SConscript 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
kbengine 提交于 2012-09-05 14:02 +08:00 .
import os, sys, platform
# Work around stupid cwd bug in scons
mypath=os.getcwd()
while not os.path.exists(os.path.join(mypath, "SConscript")):
mypath=os.path.dirname(mypath)
Import("env")
# Test program
sources = [ "test.c" ]
objects = env.Object("test_c", source = sources)
testprogram_c = env.Program("test_c", source = objects)
sources = Command(os.path.join(mypath, 'test.cpp'), 'test.c', Copy(os.path.join(mypath, 'test.cpp'), os.path.join(mypath, 'test.c')))
objects = env.Object("test_cpp", source = sources)
testprogram_cpp = env.Program("test_cpp", source = objects)
# Benchmark program
sources = Command(os.path.join(mypath, 'benchmark.c'), 'benchmark.cpp', Copy(os.path.join(mypath, 'benchmark.c'), os.path.join(mypath, 'benchmark.cpp')))
objects = env.Object("benchmark_c", source = sources)
benchmarkprogram_c = env.Program("benchmark_c", source = objects)
sources = [ "benchmark.cpp" ]
objects = env.Object("benchmark_cpp", source = sources)
benchmarkprogram_cpp = env.Program("benchmark_cpp", source = objects)
Default([testprogram_c, benchmarkprogram_c, testprogram_cpp, benchmarkprogram_cpp])
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/blog/kbengine.git
git@gitee.com:blog/kbengine.git
blog
kbengine
kbengine
0.1.3

搜索帮助